未处理的“System.Net.WebException”类型的异常出现
2007-12-05 22:10
253 查看
问题:
写了一个WEB SERVICE的服务端程序,用IE测试时运行正常,可是我在客户端添加WEB引用后,运行该客户程序,调用WEB SERVER的WEB METHOD方法时,老是报错:
未处理的“System.Net.WebException”类型的异常出现在System.web.services.dll 中。
其他信息: 请求因 HTTP 状态 401 失败:Access Denied。
解决方法:运行IIS管理器,把你的WebService所在的虚拟目录的"安全"->"允许匿名访问" 选上即可。
写了一个WEB SERVICE的服务端程序,用IE测试时运行正常,可是我在客户端添加WEB引用后,运行该客户程序,调用WEB SERVER的WEB METHOD方法时,老是报错:
未处理的“System.Net.WebException”类型的异常出现在System.web.services.dll 中。
其他信息: 请求因 HTTP 状态 401 失败:Access Denied。
解决方法:运行IIS管理器,把你的WebService所在的虚拟目录的"安全"->"允许匿名访问" 选上即可。
相关文章推荐
- 未处理的“System.Net.WebException”类型的异常出现
- 【转】SqlLite .Net 4.0 System.IO.FileLoadException”类型的未经处理的异常出现在XXX
- 解决vb.net 2003:未处理的“System.NullReferenceException”类型的异常出现在 system.data.dll 中
- 使用过多的递归出现错误,“System.StackOverflowException”类型的未经处理的异常在 mscorlib.dll 中发生
- “System.ArgumentException”类型的未经处理的异常出现在 mscorlib.dll 中。
- 未处理的“System.StackOverflowException”类型的异常出现在 mscorlib.dll
- C# B/S程序中出现“异常详细信息: System.Data.SqlClient.SqlException: 用户 'XXX/ASPNET' 登录失败。”的处理方法
- 处理[未处理的“System.StackOverflowException”类型的异常出现在 System.Windows.Fo ...
- C#之解决 未处理的“System.InvalidOperationException”类型的异常出现在 System.dll中...
- dataType参数不能为空,未处理的“System.ArgumentNullException”类型的异常出现在 mscorlib.dll 中
- 未处理的“System.StackOverflowException”类型的异常出现在 mscorlib.dll(转)
- 在用c++读取xml文件时,运行时出现以下错误:出现未处理的“System.Xml.XmlException”类型的异常出现在 system.xml.dll 中
- 未处理的“System.StackOverflowException”类型的异常出现在 mscorlib.dll
- C#之解决 未处理的“System.InvalidOperationException”类型的异常出现在 System.dll中...
- 无法在Web服务器上启动调试."System.Net.DigestClient"的类型初始值设定项引发异常,Unable to debug System.Net.DigestClient throws an exception
- “System.StackOverflowException”类型的未经处理的异常出现在 mscorlib.dll 中。
- 问题:运行时出现以下错误:出现未处理的“System.Xml.XmlException”类型的异常出现在 system.xml.dll 中
- 未处理的“System.StackOverflowException”类型的异常出现在 mscorlib.dll
- ”System.InvalidOperationException”类型的未经处理的异常出现在 mscorlib.dll 中
- “System.StackOverflowException”类型的未经处理的异常出现在...[解决方案]