System.Net.UnsafeNclNativeMethods.OSSOCK.recv webservice异常
Posted
技术标签:
【中文标题】System.Net.UnsafeNclNativeMethods.OSSOCK.recv webservice异常【英文标题】:System.Net.UnsafeNclNativeMethods.OSSOCK.recv webservice exception 【发布时间】:2011-05-08 05:56:32 【问题描述】:有一个面向客户端的网络服务,今天早上开始抛出一个非常奇怪的异常。
Thread was being aborted.
at System.Net.UnsafeNclNativeMethods.OSSOCK.recv(IntPtr socketHandle, Byte* pinnedBuffer, Int32 len, SocketFlags socketFlags)
at System.Net.Sockets.Socket.Receive(Byte[] buffer, Int32 offset, Int32 size, SocketFlags socketFlags, SocketError& errorCode)
at System.Net.Sockets.NetworkStream.Read(Byte[] buffer, Int32 offset, Int32 size)
at System.Net.PooledStream.Read(Byte[] buffer, Int32 offset, Int32 size)
at System.Net.Connection.SyncRead(HttpWebRequest request, Boolean userRetrievedStream, Boolean probeRead)
at System.Net.HttpWebRequest.EndWriteHeaders(Boolean async)
at System.Net.HttpWebRequest.WriteHeadersCallback(WebExceptionStatus errorStatus, ConnectStream stream, Boolean async)
at System.Net.ConnectStream.WriteHeaders(Boolean async)
at System.Net.HttpWebRequest.EndSubmitRequest()
at System.Net.HttpWebRequest.GetResponse()
at Microsoft.Web.Services2.SoapWebResponse..ctor(SoapWebRequest soapRequest)
at Microsoft.Web.Services2.SoapWebRequest.GetResponse()
at System.Web.Services.Protocols.WebClientProtocol.GetWebResponse(WebRequest request)
at System.Web.Services.Protocols.HttpWebClientProtocol.GetWebResponse(WebRequest request)
at Microsoft.Web.Services2.WebServicesClientProtocol.GetWebResponse(WebRequest request)
at System.Web.Services.Protocols.SoapHttpClientProtocol.Invoke(String methodName, Object[] parameters)
at MyMethodHere...
通过我所有的方法,但是当得到响应时失败了。
以前有人见过这个异常吗?我被难住了!
谢谢
【问题讨论】:
【参考方案1】:看起来您使用的是包含此错误的 Net 2.0。 那里有remedy: 要获得此 QFE,请致电 Microsoft 产品支持服务 (http://support.microsoft.com) 并索取 KB 编号 923028 的修补程序
【讨论】:
以上是关于System.Net.UnsafeNclNativeMethods.OSSOCK.recv webservice异常的主要内容,如果未能解决你的问题,请参考以下文章