12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970 |
- <?xml version="1.0" encoding="utf-8"?>
- <configuration>
- <appSettings>
- <add key="aspnet:UseTaskFriendlySynchronizationContext" value="true" />
- <add key="ClientSettingsProvider.ServiceUri" value="" />
- </appSettings>
- <system.web>
- <compilation debug="true" />
- <membership defaultProvider="ClientAuthenticationMembershipProvider">
- <providers>
- <add name="ClientAuthenticationMembershipProvider" type="System.Web.ClientServices.Providers.ClientFormsAuthenticationMembershipProvider, System.Web.Extensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" serviceUri="" />
- </providers>
- </membership>
- <roleManager defaultProvider="ClientRoleProvider" enabled="true">
- <providers>
- <add name="ClientRoleProvider" type="System.Web.ClientServices.Providers.ClientRoleProvider, System.Web.Extensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" serviceUri="" cacheTimeout="86400" />
- </providers>
- </roleManager>
- </system.web>
- <!-- 部署服务库项目时,必须将配置文件的内容添加到
- 主机的 app.config 文件中。System.Configuration 不支持库的配置文件。-->
- <system.serviceModel>
- <services>
- <service name="LYFZ.SWcfServiceLibrary.CommunicationService">
- <endpoint address="" binding="basicHttpBinding" contract="LYFZ.SWcfServiceLibrary.ICommunication">
-
- <identity>
- <dns value="localhost" />
- </identity>
- </endpoint>
- <endpoint address="mex" binding="mexHttpBinding" contract="IMetadataExchange" />
- <host>
- <baseAddresses>
- <add baseAddress="http://localhost:8733/CommunicationService/" />
- </baseAddresses>
- </host>
- </service>
- <service name="LYFZ.SWcfServiceLibrary.WsConnectService">
- <endpoint address="" binding="basicHttpBinding" contract="LYFZ.SWcfServiceLibrary.IWsConnectService">
- <identity>
- <dns value="localhost" />
- </identity>
- </endpoint>
- <endpoint address="mex" binding="mexHttpBinding" contract="IMetadataExchange" />
- <host>
- <baseAddresses>
- <add baseAddress="http://localhost:8733/WsConnectService/" />
- </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" />
- </startup>
- </configuration>
|