读书人

啊为什么调用webservice方法的时候总提

发布时间: 2012-04-11 17:42:33 作者: rapoo

求救啊!为什么调用webservice方法的时候总提示SERVER ERROR的错误
我在本机上调用远程服务器的webservice没有任何问题,他调用我的也没问题。但是放到服务器的IIS上的时候就报错。注释掉webservice的时候没问题。
错误代码如下,权限我全开了,是.net 2.0的。

Server Error in '/message' Application.
--------------------------------------------

An existing connection was forcibly closed by the remote host
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.Net.Sockets.SocketException: An existing connection was forcibly closed by the remote host


大家帮我看看到底是怎么回事啊

[解决办法]
一个现有的连接被远程主机强制关闭!google
[解决办法]
ws有错误没捕捉吧。看日志。
[解决办法]
低版本的NET 法使用 HTTP GET 或 HTTP POST 叫用 Web 服的用程式就失

需要在webservice的web.config面加入下列的定:
<webServices>
<protocols>
<add name="HttpGet"/>
<add name="HttpPost"/>
</protocols>
</webServices>
就不生Internal Server Error的了!!

[解决办法]

读书人网 >Web Service

热点推荐