请求因 HTTP 状态 401 失败:Unauthorized
来源:互联网 发布:网络剪刀手 win7 64 编辑:程序博客网 时间:2024/05/17 06:23
How to Disable Anonymous Access
In this procedure, you will configure IIS to require Windows-integrated authentication for the WindowsSite site.
Minimize Visual Studio, and then start Internet Services Manager from the Administrative Tools program group.
Expand your server and its default Web site, right-click the WindowsSite site, and then click Properties.
On the Directory Security tab in the WindowsSite Properties dialog box, click the Edit button in the "Anonymous access and authentication control" section.
Click to clear the Anonymous access check box, verify that the Integrated Windows authentication check box is selected, and then click OK.
Click OK to close the WindowsSite Properties dialog box.
Switch back to Visual Studio, and then run the project. Confirm that the page is displayed with the following message:
In Windows 2000
You are: Your Windows user name
This page runs as: DomainOrServer/ASPNET
In Windows Server 2003
You are: Your Windows user name
This page runs as: DomainOrServer/NETWORK SERVICE
Note: You have been authenticated through your Windows account. If you had not been logged on to Windows, you would have been prompted for a Windows user name and password.
Quit Internet Explorer to stop the project.
启用匿名反之上面的动作。
Authorization
In ASP.NET, it is possible to allow authorization to the application when you make additional settings available within the Web.config file. You can allow certain users or certain groups access to these additional settings. The following examples describe this capability. To allow access to all users found in the Windows NT Group that is called "Managers," use the following code: <configuration>
<system.web>
<authorization>
<allow roles="domainname/Managers" />
<deny users="*" />
</authorization>
</system.web>
</configuration>
To allow access to only certain users, use the following code: <configuration>
<system.web>
<authorization>
<allow users="domainname/user1,domainname/user2,domainname/user3" />
<deny users="*" />
</authorization>
</system.web>
</configuration>
- 请求因 HTTP 状态 401 失败:Unauthorized
- 请求因 HTTP 状态 401 失败:Unauthorized
- WebService请求因 HTTP 状态 401 失败: Unauthorized。
- 解决 请求因 HTTP 状态 401 失败: Unauthorized。
- 调用Web服务:请求因HTTP状态401失败:Unauthorized
- 异常:"System.Net.WebException: 请求因 HTTP 状态 401 失败:Unauthorized。"
- SSRS:部署错误之“请求因 HTTP 状态 401 失败: Unauthorized。”
- SSRS:部署错误之“请求因 HTTP 状态 401 失败: Unauthorized。”
- Web service request SetParameters to Report Server http://host/reportserver failed. Error: 请求因 HTTP 状态 401 失败: Unauthorized
- 引用部署在IIS里的WebService时,解决“请求因 HTTP 状态 401 失败: Unauthorized。”的错误
- 请求因 HTTP 状态 401 失败:Access Denied
- 请求因 HTTP 状态 401 失败:Access Denied。
- 请求因 HTTP 状态 404 失败
- 请求因http状态404失败
- 有关报表服务器运行正确,但嵌入到网页中提示因 HTTP 状态 401 失败: Unauthorized。
- 代码调用服务--请求因 HTTP 状态 401 失败:Access Denied。(downmoon原创)
- 代码调用服务--请求因 HTTP 状态 401 失败:Access Denied。(downmoon原创)
- 調用WebService的時候提示錯誤,请求因 HTTP 状态 401 失败:Access Denied
- Hibernate学习(四):session.save()
- 敏捷思维: 架构设计中的方法学(4)
- 《深入BREW开发》——第三章 编译器基础
- 有关vb.net的调试
- 如何编写代码才能使得效率高
- 请求因 HTTP 状态 401 失败:Unauthorized
- fcs
- linux操作系统下C语言编程入门
- ASP.NET 数据绑定常用代码 (转贴)
- 欢迎使用淘宝销售分析(070825)
- 各种类型文件头
- C#基础概念二十五问
- 【转】关于EASYSIZE宏(动态调整控件位置、大小的宏)的小结
- .net 密码学