为什么得到此异常“System.InvalidOperationException:此流不支持超时”不一致

时间:2014-12-12 05:27:50

标签: c# .net wpf wcf-binding

我收到异常" System.InvalidOperationException:此流不支持超时"从Web服务加载热门列表数据。 Plz在异常日志跟踪下面找到相同的内容。

  

[2014-12-09 09:38:10.4402]信息:0033216:< -Get Hot List   Started()[2014-12-09 09:38:33.9415]错误:0033217:   System.InvalidOperationException:不支持超时   流。

     

服务器堆栈跟踪:在System.IO.Stream.get_ReadTimeout()处   System.ServiceModel.Channels.HttpChannelUtilities.CreateResponseWebException(引发WebException   webException,HttpWebResponse响应)at   System.ServiceModel.Channels.HttpInput.WebResponseHttpInput.WebResponseInputStream.Read(字节[]   缓冲区,Int32偏移量,Int32计数)at   System.ServiceModel.Channels.MessageEncoder.BufferMessageStream(流   stream,BufferManager bufferManager,Int32 maxBufferSize)at   System.ServiceModel.Channels.MessageEncoder.ReadMessage(Stream stream,   BufferManager bufferManager,Int32 maxBufferSize,String contentType)   在   System.ServiceModel.Channels.HttpInput.ReadChunkedBufferedMessage(流   inputStream)at   System.ServiceModel.Channels.HttpInput.ParseIncomingMessage(HttpRequestMessage   httpRequestMessage,Exception& requestException)at   System.ServiceModel.Channels.HttpChannelFactory`1.HttpRequestChannel.HttpChannelRequest.WaitForReply(时间跨度   超时)at   System.ServiceModel.Channels.RequestChannel.Request(消息消息,   TimeSpan超时)at   System.ServiceModel.Dispatcher.RequestChannelBinder.Request(消息   消息,TimeSpan超时)at   System.ServiceModel.Channels.ServiceChannel.Call(String action,   Boolean oneway,ProxyOperationRuntime操作,Object [] ins,   对象[]出局,TimeSpan超时)at   System.ServiceModel.Channels.ServiceChannelProxy.InvokeService(IMethodCallMessage   methodCall,ProxyOperationRuntime operation)at   System.ServiceModel.Channels.ServiceChannelProxy.Invoke(即时聊天   消息)

     

在[0]处重新抛出异常:at   System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(即时聊天   reqMsg,IMessage retMsg)at   System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData&安培;   msgData,Int32类型)at   DMS.Integration.Proxy.Reference.ReferenceWebService.getHotlist(getHotlistRequest   请求)   DMS.Integration.Proxy.Reference.ReferenceWebServiceClient.DMS.Integration.Proxy.Reference.ReferenceWebService.getHotlist(getHotlistRequest   请求)   DMS.Integration.Proxy.Reference.ReferenceWebServiceClient.getHotlist(getHotlist   getHotlist1)在DMS.Services.HotListServiceProxy.GetHotList()at   DMS.GUI.Utils.AddToHotListHelper.b__5()at   DMS.Lib.Base.ServiceProxyWrapper`1.Execute()[2014-12-09   09:38:33.9415]错误:0033218:System.ApplicationException:   getHotList

     

[2014-12-09 09:38:33.9415]信息:0033219:服务呼叫时间,   94835ms,动作:getHotList

我可以确认在获取热门列表时,我们没有进行任何内存流操作。

请在下面找到app.config中服务的绑定:

 <bindings>
        <basicHttpBinding>
            <binding name="basicBinding" maxBufferSize="209715200" maxReceivedMessageSize="209715200">
                <readerQuotas maxDepth="2147483647" maxStringContentLength="2147483647"
                    maxArrayLength="2147483647" maxBytesPerRead="2147483647" maxNameTableCharCount="2147483647" />
                <security mode="TransportCredentialOnly">
                    <transport clientCredentialType="Basic"/>
                </security>
            </binding>
        </basicHttpBinding>
    </bindings>

isssue即将进入QA环境,应用程序安装在服务器上,只有连接到VPN才能访问应用程序进行测试。

0 个答案:

没有答案