调用webservice时报错The request failed with HTTP status 401: Access Denied. 的解决方案。

当尝试调用WebService时遇到HTTP状态401错误:Access Denied。本文档从MSDN中摘录,提供该问题的解决方案。
摘要由CSDN通过智能技术生成

Note: This is KB article is taken from MSDN as it is for my own reference.

SYMPTOMS

1. Create a new ASP.NET Web Service by using Visual C# .NET or Visual Basic .NET.
2. Name the project WebServiceTest.
3. By default, Service1.asmx is created.
4. Uncomment the default WebMethod "HelloWorld()".
5. On Build menu, click Build Solution.
6. Turn off Anonymous access to WebServiceTest. To do this, follow these steps:
a. In Control Panel, double-click Administrative Tools.
b. <
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值