<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<configSections>
</configSections>
<appSettings>
<add key="DBConnString" value="Data Source=acdw;Initial Catalog=Trans;User ID=sa;Password=d@t@bas3;Connect Timeout=20" />
</appSettings>
<system.serviceModel>
<services>
<service name="PolarisWcfServiceLibrary.PositionExposureAttribute.PositionAttributeDataService" behaviorConfiguration="DefaultBehavior">
<endpoint address="http://acdwdev01:8085/PolarisWcfServiceLibrary.PositionExposureAttribute.PositionAttributeDataService" binding="basicHttpBinding" bindingConfiguration="polarisBasicHttpBinding" contract="PolarisWcfServiceLibrary.PositionExposureAttribute.IPositionAttributeDataService"
/>
<endpoint address="mex" binding="mexHttpBinding" contract="IMetadataExchange" />
<host>
<baseAddresses>
<add baseAddress="http://acdwdev01:8085/PolarisWcfServiceLibrary.PositionExposureAttribute.PositionAttributeDataService" />
</baseAddresses>
</host>
</service>
</services>
<bindings>
<basicHttpBinding>
<binding name="polarisBasicHttpBinding" closeTimeout="00:01:00" openTimeout="00:01:00" receiveTimeout="00:10:00" sendTimeout="00:01:00" transferMode="Buffered" hostNameComparisonMode="StrongWildcard" maxBufferPoolSize="524288" maxBufferSize="65536" maxReceivedMessageSize="65536">
<readerQuotas maxDepth="32" maxStringContentLength="8192" maxArrayLength="16384" maxBytesPerRead="4096" maxNameTableCharCount="16384" />
<security mode="None" />
</binding>
</basicHttpBinding>
</bindings>
<behaviors>
<serviceBehaviors>
<behavior name="DefaultBehavior">
<serviceDebug includeExceptionDetailInFaults="true" />
<serviceMetadata httpGetEnabled="true" />
</behavior>
</serviceBehaviors>
</behaviors>
</system.serviceModel>
<system.web>
<membership defaultProvider="ClientAuthenticationMembershipProvider">
<providers>
<add name="ClientAuthenticationMembershipProvider" type="System.Web.ClientServices.Providers.ClientFormsAuthenticationMembershipProvider, System.Web.Extensions, Version=3.5.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=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" serviceUri="" cacheTimeout="86400" />
</providers>
</roleManager>
</system.web>
</configuration>
&#13;
我知道这是一个重复的问题,但我已经尝试了几乎所有关于相同的线程中讨论的所有修复,但仍未找到正确的解决方案。 我的一个Silverlight应用程序(IIS7中的webhosted)正在使用WCF Windows服务从SQL数据库中获取数据,并且在我的UAT服务器中托管时它工作正常。但是当在PROD服务器中托管相同的服务时,似乎每当我从我的Silverlight应用程序向服务发出请求之后,我收到来自服务的上一次调用的完成事件,我就会收到通信错误:找不到服务器。但是,如果我等待我之前的呼叫在完成新请求/致电服务之前完成,那么它将完美运行。
请建议需要更改或查看的内容。