Silverlight 调用WCF 远程服务器返回了错误: NotFound
2010-06-23 09:34
447 查看
silverlight调用wcf有时很不稳定,同样调用一个方法,有时正确,有时会报远程服务器返回了错误: NotFound。主要问题是:WCF服务本身对数据包进行了限制,最大不能超过65535。可是我想不通的是,当我发送200多记录时,都正常,可是发送一条记录时,才会报这样的错。按数据限制的说法,也说不通,真是头痛。
看一下如何来配置WCF服务器。
<system.serviceModel>
<bindings>
<basicHttpBinding>
<binding name="BasicHttpBinding_IDataService" maxBufferPoolSize="2147483647" maxReceivedMessageSize="2147483647" maxBufferSize="2147483647">
<readerQuotas maxArrayLength="2147483647" maxBytesPerRead="2147483647" maxDepth="2147483647" maxNameTableCharCount="2147483647" maxStringContentLength="2147483647" />
</binding>
</basicHttpBinding>
</bindings>
<behaviors>
<serviceBehaviors>
<behavior name="MyNetDisk.Web.FileServiceBehavior">
<serviceMetadata httpGetEnabled="true" />
<serviceDebug includeExceptionDetailInFaults="true"/>
<dataContractSerializer maxItemsInObjectGraph="2147483647"/>
</behavior>
</serviceBehaviors>
</behaviors>
<serviceHostingEnvironment aspNetCompatibilityEnabled="true" />
<services>
<service behaviorConfiguration="MyNetDisk.Web.FileServiceBehavior" name="MyNetDisk.Web.FileService">
<endpoint address="" binding="basicHttpBinding" contract="MyNetDisk.Web.FileService" bindingConfiguration="BasicHttpBinding_IDataService" />
<endpoint address="mex" binding="mexHttpBinding" contract="IMetadataExchange" />
</service>
</services>
</system.serviceModel>
看一下如何来配置WCF服务器。
<system.serviceModel>
<bindings>
<basicHttpBinding>
<binding name="BasicHttpBinding_IDataService" maxBufferPoolSize="2147483647" maxReceivedMessageSize="2147483647" maxBufferSize="2147483647">
<readerQuotas maxArrayLength="2147483647" maxBytesPerRead="2147483647" maxDepth="2147483647" maxNameTableCharCount="2147483647" maxStringContentLength="2147483647" />
</binding>
</basicHttpBinding>
</bindings>
<behaviors>
<serviceBehaviors>
<behavior name="MyNetDisk.Web.FileServiceBehavior">
<serviceMetadata httpGetEnabled="true" />
<serviceDebug includeExceptionDetailInFaults="true"/>
<dataContractSerializer maxItemsInObjectGraph="2147483647"/>
</behavior>
</serviceBehaviors>
</behaviors>
<serviceHostingEnvironment aspNetCompatibilityEnabled="true" />
<services>
<service behaviorConfiguration="MyNetDisk.Web.FileServiceBehavior" name="MyNetDisk.Web.FileService">
<endpoint address="" binding="basicHttpBinding" contract="MyNetDisk.Web.FileService" bindingConfiguration="BasicHttpBinding_IDataService" />
<endpoint address="mex" binding="mexHttpBinding" contract="IMetadataExchange" />
</service>
</services>
</system.serviceModel>
相关文章推荐
- Silverlight 调用WCF 远程服务器返回了错误: NotFound
- SilverLight调用WCF”远程服务器返回了错误: NotFound”的排解
- SilverLight调用WCF”远程服务器返回了错误: NotFound”的排解
- Silverlight连接WCF--错误"远程服务器返回了错误NotFound”
- 远程服务器返回了错误: NotFound。 WCF
- wcf 远程服务器返回了错误 NotFound原因之一
- WCF中远程服务器返回了一个错误: NotFound. 错误的解决思路
- WCF 远程服务器返回了错误: NotFound
- silverlight3程序部署在IIS7.5 出现 Error:Unhandled Error in Silverlight Application 远程服务器返回了错误: NotFound
- Silverlight提示“Load 操作失败。远程服务器返回了错误: NotFound”
- 一个关于WCF调用远程链接返回405错误不允许使用此方法的问题
- WCF(远程服务器返回错误: 400 错误的请求)
- 调用部署在本机IIS服务器的WCF服务并返回数据DataTable,一直报错:远程主机强迫关闭了一个现有的连接,但是服务访问正常
- WCF错误远程服务器返回了意外响应: (413) Request Entity Too Large。解决方案
- 有时会报远程服务器返回了错误: NotFound
- 远程服务器返回了错误: NotFound。 (大全)
- Silverlight :服务器返回错误: NotFound 错误
- 远程服务器返回了错误 NOTFOUND
- 远程服务器返回了错误 :NotFound
- 调用WCF时报错:服务器未提供有意义的回复;这可能是由协定不匹配、会话过早关闭或内部服务器错误引起的。