Veikedo

Untitled

Feb 14th, 2018
215
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 2.13 KB | None | 0 0
  1. <?xml version="1.0" encoding="UTF-8"?>
  2.  
  3. <configuration>
  4.  
  5.   <appSettings>
  6.     <add key="aspnet:UseTaskFriendlySynchronizationContext" value="true" />
  7.   </appSettings>
  8.   <system.web>
  9.     <compilation debug="true" targetFramework="4.7.1" />
  10.     <httpRuntime targetFramework="4.7.1" />
  11.     <authentication mode="Windows" />
  12.   </system.web>
  13.   <system.serviceModel>
  14.     <bindings>
  15.       <basicHttpBinding>
  16.         <binding name="httpTransportCredentialOnlyBinding">
  17.           <security mode="Transport">
  18.             <transport clientCredentialType="Basic" />
  19.           </security>
  20.         </binding>
  21.       </basicHttpBinding>
  22.     </bindings>
  23.     <services>
  24.       <service name="WcfService1.Service1" behaviorConfiguration="ServiceWithMetaData">
  25.         <endpoint name="Default" address=""
  26.                  binding="basicHttpBinding"
  27.                  bindingConfiguration="httpTransportCredentialOnlyBinding"
  28.                  contract="WcfService1.IService1" />
  29.       </service>
  30.     </services>
  31.     <behaviors>
  32.       <serviceBehaviors>
  33.         <behavior name="ServiceWithMetaData">
  34.           <serviceMetadata httpGetEnabled="true" httpsGetEnabled="true" />
  35.           <serviceDebug includeExceptionDetailInFaults="false" />
  36.           <serviceCredentials>
  37.             <userNameAuthentication userNamePasswordValidationMode="Custom"
  38.                                    customUserNamePasswordValidatorType="WcfService1.ServiceAuth, WcfService1" />
  39.           </serviceCredentials>
  40.         </behavior>
  41.       </serviceBehaviors>
  42.     </behaviors>
  43.     <protocolMapping>
  44.       <!--      <add binding="basicHttpsBinding" scheme="https" />-->
  45.     </protocolMapping>
  46.     <serviceHostingEnvironment aspNetCompatibilityEnabled="true" multipleSiteBindingsEnabled="true" />
  47.   </system.serviceModel>
  48.   <system.webServer>
  49.     <modules runAllManagedModulesForAllRequests="true" />
  50.     <!--
  51.        To browse web app root directory during debugging, set the value below to true.
  52.        Set to false before deployment to avoid disclosing web app folder information.
  53.      -->
  54.     <directoryBrowse enabled="true" />
  55.   </system.webServer>
  56.  
  57. </configuration>
Advertisement
Add Comment
Please, Sign In to add comment