LYFZ.SWcfServiceLibrary.dll.config 3.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <configuration>
  3. <appSettings>
  4. <add key="aspnet:UseTaskFriendlySynchronizationContext" value="true" />
  5. <add key="ClientSettingsProvider.ServiceUri" value="" />
  6. </appSettings>
  7. <system.web>
  8. <compilation debug="true" />
  9. <membership defaultProvider="ClientAuthenticationMembershipProvider">
  10. <providers>
  11. <add name="ClientAuthenticationMembershipProvider" type="System.Web.ClientServices.Providers.ClientFormsAuthenticationMembershipProvider, System.Web.Extensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" serviceUri="" />
  12. </providers>
  13. </membership>
  14. <roleManager defaultProvider="ClientRoleProvider" enabled="true">
  15. <providers>
  16. <add name="ClientRoleProvider" type="System.Web.ClientServices.Providers.ClientRoleProvider, System.Web.Extensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" serviceUri="" cacheTimeout="86400" />
  17. </providers>
  18. </roleManager>
  19. </system.web>
  20. <!-- 部署服务库项目时,必须将配置文件的内容添加到
  21. 主机的 app.config 文件中。System.Configuration 不支持库的配置文件。-->
  22. <system.serviceModel>
  23. <services>
  24. <service name="LYFZ.SWcfServiceLibrary.CommunicationService">
  25. <endpoint address="" binding="basicHttpBinding" contract="LYFZ.SWcfServiceLibrary.ICommunication">
  26. <identity>
  27. <dns value="localhost" />
  28. </identity>
  29. </endpoint>
  30. <endpoint address="mex" binding="mexHttpBinding" contract="IMetadataExchange" />
  31. <host>
  32. <baseAddresses>
  33. <add baseAddress="http://localhost:8733/CommunicationService/" />
  34. </baseAddresses>
  35. </host>
  36. </service>
  37. <service name="LYFZ.SWcfServiceLibrary.WsConnectService">
  38. <endpoint address="" binding="basicHttpBinding" contract="LYFZ.SWcfServiceLibrary.IWsConnectService">
  39. <identity>
  40. <dns value="localhost" />
  41. </identity>
  42. </endpoint>
  43. <endpoint address="mex" binding="mexHttpBinding" contract="IMetadataExchange" />
  44. <host>
  45. <baseAddresses>
  46. <add baseAddress="http://localhost:8733/WsConnectService/" />
  47. </baseAddresses>
  48. </host>
  49. </service>
  50. </services>
  51. <behaviors>
  52. <serviceBehaviors>
  53. <behavior>
  54. <!-- 为避免泄漏元数据信息,
  55. 请在部署前将以下值设置为 false -->
  56. <serviceMetadata httpGetEnabled="True" httpsGetEnabled="True" />
  57. <!-- 要接收故障异常详细信息以进行调试,
  58. 请将以下值设置为 true。在部署前设置为 false
  59. 以避免泄漏异常信息-->
  60. <serviceDebug includeExceptionDetailInFaults="False" />
  61. </behavior>
  62. </serviceBehaviors>
  63. </behaviors>
  64. </system.serviceModel>
  65. <startup>
  66. <supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.0" />
  67. </startup>
  68. </configuration>