我有一个连接到 SQL 数据库的简单 ASMX Web 服务。我也有附带的网络服务测试器应用程序。
我已经在我的开发机器和我自己的 Windows 2008 服务器上测试了这两个组件。当我将它部署到客户的服务器时,webservices 服务登录页面在服务器上和远程调用都可以正常工作,但是,webservice 测试器在任何位置都无法正常工作。它抛出一个异常
System.Net.WebException: The underlying connection was closed: An unexpected error occurred on a receive.
System.IO.IOException: Unable to read data from the transport connection: An existing connection was forcibly closed by the remote host.
System.Net.Sockets.SocketException: An existing connection was forcibly closed by the remote host
at System.Net.Sockets.NetworkStream.Read(Byte[] buffer, Int32 offset, Int32 size)
--- End of inner exception stack trace ---
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)
--- End of inner exception stack trace ---
at System.Net.HttpWebRequest.GetResponse()
at WebServiceTester.frmMain.btnCallWS_Click`
发生错误时,Windows 事件查看器、SQL 日志或 IIS 日志中不显示任何内容。有什么想法可能导致这种情况吗?