gpt4 book ai didi

c# - System.Net.UnsafeNclNativeMethods.OSSOCK.recv 网络服务异常

转载 作者:太空狗 更新时间:2023-10-29 23:53:06 35 4
gpt4 key购买 nike

今天早上有一个面向 Web 服务的客户端开始抛出一个非常奇怪的异常。

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...

通过我所有的方法,但是当得到响应时失败。

有人以前见过这个异常吗?难倒我了!

谢谢

最佳答案

看起来您使用的是 Net 2.0,其中包含此错误。
remedy :
要获得此 QFE,请调用 Microsoft 产品支持服务 (http://support.microsoft.com) 并索取 KB 号 923028 的修补程序

关于c# - System.Net.UnsafeNclNativeMethods.OSSOCK.recv 网络服务异常,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/4150938/

35 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com