收到的消息是意外的或格式错误

时间:2012-02-28 22:33:02

标签: c# ssl windows-server-2008 ssl-certificate

我正在尝试使用我的ASP.NET(C#)应用程序连接到SSL安全Web服务。在我的本地机器上一切正常,但在我的服务器上出现了下拉错误。


** System.Net.WebException:底层连接已关闭:接收时发生意外错误。 --->

System.IO.IOException:解密操作失败,请参阅内部异常。 ---> System.ComponentModel.Win32Exception:收到的消息是意外的或格式错误**

---内部异常堆栈跟踪结束---    在System.Net.Security._SslStream.ProcessReadErrorCode(SecurityStatus errorCode,Byte [] buffer,Int32 offset,Int32 count,AsyncProtocolRequest asyncRequest,Byte [] extraBuffer)    在System.Net.Security._SslStream.ProcessFrameBody(Int32 readBytes,Byte [] buffer,Int32 offset,Int32 count,AsyncProtocolRequest asyncRequest)    在System.Net.Security._SslStream.StartFrameBody(Int32 readBytes,Byte [] buffer,Int32 offset,Int32 count,AsyncProtocolRequest asyncRequest)    在System.Net.Security._SslStream.StartFrameHeader(Byte []缓冲区,Int32偏移量,Int32计数,AsyncProtocolRequest asyncRequest)    在System.Net.Security._SslStream.StartReading(Byte []缓冲区,Int32偏移量,Int32计数,AsyncProtocolRequest asyncRequest)    在System.Net.Security._SslStream.ProcessRead(Byte []缓冲区,Int32偏移量,Int32计数,AsyncProtocolRequest asyncRequest)    在System.Net.TlsStream.Read(Byte []缓冲区,Int32偏移量,Int32大小)    在System.Net.PooledStream.Read(Byte []缓冲区,Int32偏移量,Int32大小)    在System.Net.Connection.SyncRead(HttpWebRequest请求,布尔userRetrievedStream,布尔probeRead)    ---内部异常堆栈跟踪结束---    在System.Web.Services.Protocols.WebClientProtocol.GetWebResponse(WebRequest请求)    在System.Web.Services.Protocols.HttpWebClientProtocol.GetWebResponse(WebRequest请求)    在System.Web.Services.Protocols.SoapHttpClientProtocol.Invoke(String methodName,Object []参数)    在Skuldabrefaafleidur.Skyrsla(SkyrslaRequest SkyrslaRequest)的d:\ builds \ 36 \证券\ D_SIFeedDaemon_1.0 \ Sources \ SIFeedDaemon \ Models \ Skuldabrefaafleidur.cs:第44行    在SIFeedDaemon.Services.DaemonProgram.SendDataToWebService(SkyrslaType pSkyrslaType)的d:\ builds \ 36 \ Securities \ D_SIFeedDaemon_1.0 \ Sources \ SIFeedDaemon \ Services \ DaemonProgram.cs:第163行] - [beee4c0b-3a49-40ff-ad86-d14ba37b2bf5 ]

我已经使用winhttpcertcfg.exe授予ASP.NET(本地服务器上的NETWORK_SERVICE)对本地计算机上的证书存储的访问权限。我正在使用.net 4运行Windows 7,服务器是支持.net 4的Windows Server 2008。

Thx in advanced

AGH

0 个答案:

没有答案