我在WebService抛出了如下一个错误
Throw New SoapException("2", SoapException.ServerFaultCode)
在自己机器上调试的时候
上面这个异常的信息就是 "2"
我就可以写if ex.message = "2" ....
但是,把这个网页放到实际运行的环境中以后,异常的信息变成了
System.Web.Services.Protocols.SoapException: 2 at AuthenticationService.AuthenticationService.getName(String id, String pwd) at AuthenticationService.AuthenticationService.CheckAuthentication(String id, String pwd)
不知道这是什么原因。