专注收集记录技术开发学习笔记、技术难点、解决方案
网站信息搜索 >> 请输入关键词:
您当前的位置: 首页 > Silverlight

服务器未提供有意义的回复;这可能是由协定不匹配、会话过早关闭或内部服务器异常引起的

发布时间:2011-06-27 19:56:19 文章来源:www.iduyao.cn 采编人员:星星草
服务器未提供有意义的回复;这可能是由协定不匹配、会话过早关闭或内部服务器错误引起的。
是发送文件的时候报的错
我感觉应该是集合的size太大了
所以我在服务端的behavior里加了一句
<dataContractSerializer maxItemsInObjectGraph="6553600"/>

因为发送小文件的时候没问题,超过20kb就有这个问题
可是我这么设了还是不行,请教

以下是我的错误信息
C# code

用户代码未处理 System.ServiceModel.CommunicationException
  Message=服务器未提供有意义的回复;这可能是由协定不匹配、会话过早关闭或内部服务器错误引起的。
  StackTrace:
       位于 System.ServiceModel.AsyncResult.End[TAsyncResult](IAsyncResult result)
       位于 System.ServiceModel.Channels.ServiceChannel.EndCall(String action, Object[] outs, IAsyncResult result)
       位于 System.ServiceModel.ClientBase`1.ChannelBase`1.EndInvoke(String methodName, Object[] args, IAsyncResult result)
       位于 SLA_Fax.FaxServiceProxy.FaxServiceClient.FaxServiceClientChannel.EndSendFax(CustomException& status, IAsyncResult result)
       位于 SLA_Fax.FaxServiceProxy.FaxServiceClient.SLA_Fax.FaxServiceProxy.IFaxService.EndSendFax(CustomException& status, IAsyncResult result)
       位于 SLA_Fax.FaxServiceProxy.FaxServiceClient.OnEndSendFax(IAsyncResult result)
       位于 System.ServiceModel.ClientBase`1.OnAsyncCallCompleted(IAsyncResult result)
  InnerException: 




------解决方案--------------------
<bindings>
<basicHttpBinding >
<binding name="ServiceSoap" maxBufferSize="2147483647" maxReceivedMessageSize="2147483647" transferMode="Streamed"
closeTimeout="00:10:00" openTimeout="00:10:00" receiveTimeout="00:30:00" sendTimeout="00:10:00"
>
<security mode="None" />
</binding>
</basicHttpBinding>
</bindings>

加到配置文件里试试
友情提示:
信息收集于互联网,如果您发现错误或造成侵权,请及时通知本站更正或删除,具体联系方式见页面底部联系我们,谢谢。

其他相似内容:

热门推荐: