App.config 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <configuration>
  3. <appSettings>
  4. <add key="aspnet:UseTaskFriendlySynchronizationContext" value="true" />
  5. </appSettings>
  6. <system.web>
  7. <compilation debug="true" />
  8. </system.web>
  9. <!-- 部署服务库项目时,必须将配置文件的内容添加到
  10. 主机的 app.config 文件中。System.Configuration 不支持库的配置文件。 -->
  11. <system.serviceModel>
  12. <services>
  13. <service name="Winsoft.GOV.WCF.PowerMettersService">
  14. <endpoint address="" binding="basicHttpBinding" contract="Winsoft.GOV.WCF.IPowerMettersService">
  15. <identity>
  16. <dns value="localhost" />
  17. </identity>
  18. </endpoint>
  19. <endpoint address="mex" binding="mexHttpBinding" contract="IMetadataExchange" />
  20. <host>
  21. <baseAddresses>
  22. <add baseAddress="http://localhost:8733/Design_Time_Addresses/Winsoft.GOV.WCF/Service1/" />
  23. </baseAddresses>
  24. </host>
  25. </service>
  26. </services>
  27. <behaviors>
  28. <serviceBehaviors>
  29. <behavior>
  30. <!-- 为避免泄漏元数据信息,
  31. 请在部署前将以下值设置为 false -->
  32. <serviceMetadata httpGetEnabled="True" httpsGetEnabled="True" />
  33. <!-- 要接收故障异常详细信息以进行调试,
  34. 请将以下值设置为 true。在部署前设置为 false
  35. 以避免泄漏异常信息 -->
  36. <serviceDebug includeExceptionDetailInFaults="False" />
  37. </behavior>
  38. </serviceBehaviors>
  39. </behaviors>
  40. </system.serviceModel>
  41. <startup><supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.0,Profile=Client" /></startup></configuration>