Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?xml version="1.0" encoding="utf-8"?>
- <configuration>
- <system.web>
- <compilation debug="true" />
- </system.web>
- <!-- When deploying the service library project, the content of the config file must be added to the host's
- app.config file. System.Configuration does not support config files for libraries. -->
- <system.serviceModel>
- <bindings>
- <basicHttpBinding>
- <binding name="secureHttpBinding" messageEncoding="Text" maxReceivedMessageSize="1006710886">
- <security mode="Transport">
- <transport clientCredentialType="None" />
- </security>
- </binding>
- </basicHttpBinding>
- </bindings>
- <services>
- <service name="Service.Service1">
- <host>
- <baseAddresses>
- <add baseAddress="https://192.168.10.199:443/Service.svc" />
- <add baseAddress="http://192.168.10.199:8001/Service.svc" />
- </baseAddresses>
- </host>
- <!-- Service Endpoints -->
- <!-- Unless fully qualified, address is relative to base address supplied above -->
- <endpoint address="" binding="basicHttpBinding" contract="Service.IService1" />
- <endpoint address="" binding="basicHttpBinding" bindingConfiguration="secureHttpBinding" contract="Service.IService1">
- <!--
- Upon deployment, the following identity element should be removed or replaced to reflect the
- identity under which the deployed service runs. If removed, WCF will infer an appropriate identity
- automatically.
- -->
- </endpoint>
- <!-- Metadata Endpoints -->
- <!-- The Metadata Exchange endpoint is used by the service to describe itself to clients. -->
- <!-- This endpoint does not use a secure binding and should be secured or removed before deployment -->
- <endpoint address="mex" binding="mexHttpBinding" contract="IMetadataExchange" />
- </service>
- </services>
- <behaviors>
- <serviceBehaviors>
- <behavior>
- <!-- To avoid disclosing metadata information,
- set the value below to false before deployment -->
- <serviceMetadata httpsGetEnabled="true" />
- <!-- To receive exception details in faults for debugging purposes,
- set the value below to true. Set to false before deployment
- to avoid disclosing exception information -->
- <serviceDebug includeExceptionDetailInFaults="False" />
- </behavior>
- </serviceBehaviors>
- </behaviors>
- <serviceHostingEnvironment aspNetCompatibilityEnabled="true" />
- </system.serviceModel>
- <startup>
- <supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.0" />
- </startup>
- </configuration>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement