App.config 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738
  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. <!-- 部署服务库项目时,必须将配置文件的内容添加到主机的 app.config 文件中。System.Configuration 不支持库的配置文件。-->
  10. <system.serviceModel>
  11. <services>
  12. <service name="Realm.Calculator">
  13. <endpoint address="" binding="basicHttpBinding" contract="RealmContract.ICalculator">
  14. <identity>
  15. <dns value="localhost" />
  16. </identity>
  17. </endpoint>
  18. <host>
  19. <baseAddresses>
  20. <add baseAddress="http://localhost:8733/Design_Time_Addresses/Realm/Calculator/" />
  21. </baseAddresses>
  22. </host>
  23. </service>
  24. </services>
  25. <behaviors>
  26. <serviceBehaviors>
  27. <behavior>
  28. <!-- 为避免泄漏元数据信息,请在部署前将以下值设置为 false -->
  29. <serviceMetadata httpGetEnabled="True" httpsGetEnabled="True"/>
  30. <!-- 要接收故障异常详细信息以进行调试,请将以下值设置为true。在部署前设置为false以避免泄漏异常信息-->
  31. <serviceDebug includeExceptionDetailInFaults="False" />
  32. </behavior>
  33. </serviceBehaviors>
  34. </behaviors>
  35. </system.serviceModel>
  36. </configuration>