【发布时间】:2010-12-26 03:32:40
【问题描述】:
我正在使用 VSTS 2008 + C# + .Net 3.5 + IIS 7.0。我创建了一个新网站并将一个 html 文件放入目录中。当我在IIS管理器中使用浏览功能浏览html文件时,我遇到了以下错误,有什么问题吗?
顺便说一句:我对未经授权的错误感到非常困惑,因为我在管理员帐户下运行工作进程。从错误消息中,我很困惑为什么登录方法是匿名的,而不是使用管理员帐户?
HTTP Error 401.3 - Unauthorized
You do not have permission to view this directory or page because of the access control list (ACL) configuration or encryption settings for this resource on the Web server.
Module IIS Web Core
Notification AuthenticateRequest
Handler StaticFile
Error Cde 0x80070005
Requested URL http://localhost:80/a.html
Physical Path C:\test\simplehosttest\a.html
Logon Method Anonymous
Logon User Anonymous
【问题讨论】:
-
您启用目录浏览了吗?
-
安装 iis 时是否启用了静态内容/静态文件处理程序?
-
感谢 mglmnc,“您是否启用了目录浏览”——如何检查?以前从未这样做过。
-
谢谢iwo,如何检查“安装iis时是否启用静态内容/静态文件处理程序”?
标签: c# .net iis visual-studio-2008 iis-7