1234567891011121314151617181920212223242526272829303132333435363738394041424344 |
- <?xml version="1.0" encoding="utf-8"?>
- <configuration>
- <appSettings>
- <add key="aspnet:UseTaskFriendlySynchronizationContext" value="true" />
- </appSettings>
- <system.web>
- <compilation debug="true" />
- </system.web>
- <!-- 部署服务库项目时,必须将配置文件的内容添加到
- 主机的 app.config 文件中。System.Configuration 不支持库的配置文件。 -->
- <system.serviceModel>
- <services>
- <service name="Winsoft.GOV.WCF.PowerMettersService">
- <endpoint address="" binding="basicHttpBinding" contract="Winsoft.GOV.WCF.IPowerMettersService">
- <identity>
- <dns value="localhost" />
- </identity>
- </endpoint>
- <endpoint address="mex" binding="mexHttpBinding" contract="IMetadataExchange" />
- <host>
- <baseAddresses>
- <add baseAddress="http://localhost:8733/Design_Time_Addresses/Winsoft.GOV.WCF/Service1/" />
- </baseAddresses>
- </host>
- </service>
- </services>
- <behaviors>
- <serviceBehaviors>
- <behavior>
- <!-- 为避免泄漏元数据信息,
- 请在部署前将以下值设置为 false -->
- <serviceMetadata httpGetEnabled="True" httpsGetEnabled="True" />
- <!-- 要接收故障异常详细信息以进行调试,
- 请将以下值设置为 true。在部署前设置为 false
- 以避免泄漏异常信息 -->
- <serviceDebug includeExceptionDetailInFaults="False" />
- </behavior>
- </serviceBehaviors>
- </behaviors>
- </system.serviceModel>
- <startup><supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.0,Profile=Client" /></startup></configuration>
|