Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?xml version="1.0" encoding="UTF-8"?>
- <configuration>
- <appSettings>
- <add key="aspnet:UseTaskFriendlySynchronizationContext" value="true" />
- </appSettings>
- <system.web>
- <compilation debug="true" targetFramework="4.7.1" />
- <httpRuntime targetFramework="4.7.1" />
- <authentication mode="Windows" />
- </system.web>
- <system.serviceModel>
- <bindings>
- <basicHttpBinding>
- <binding name="httpTransportCredentialOnlyBinding">
- <security mode="Transport">
- <transport clientCredentialType="Basic" />
- </security>
- </binding>
- </basicHttpBinding>
- </bindings>
- <services>
- <service name="WcfService1.Service1" behaviorConfiguration="ServiceWithMetaData">
- <endpoint name="Default" address=""
- binding="basicHttpBinding"
- bindingConfiguration="httpTransportCredentialOnlyBinding"
- contract="WcfService1.IService1" />
- </service>
- </services>
- <behaviors>
- <serviceBehaviors>
- <behavior name="ServiceWithMetaData">
- <serviceMetadata httpGetEnabled="true" httpsGetEnabled="true" />
- <serviceDebug includeExceptionDetailInFaults="false" />
- <serviceCredentials>
- <userNameAuthentication userNamePasswordValidationMode="Custom"
- customUserNamePasswordValidatorType="WcfService1.ServiceAuth, WcfService1" />
- </serviceCredentials>
- </behavior>
- </serviceBehaviors>
- </behaviors>
- <protocolMapping>
- <!-- <add binding="basicHttpsBinding" scheme="https" />-->
- </protocolMapping>
- <serviceHostingEnvironment aspNetCompatibilityEnabled="true" multipleSiteBindingsEnabled="true" />
- </system.serviceModel>
- <system.webServer>
- <modules runAllManagedModulesForAllRequests="true" />
- <!--
- To browse web app root directory during debugging, set the value below to true.
- Set to false before deployment to avoid disclosing web app folder information.
- -->
- <directoryBrowse enabled="true" />
- </system.webServer>
- </configuration>
Advertisement
Add Comment
Please, Sign In to add comment