问题描述
我在我的 IIS7 中设置了一个使用 .NET Framework 4.0(由 NetworkService 运行)的应用程序,但是在浏览网站时我得到了这个:
I have setup a application in my IIS7 that uses .NET Framework 4.0 (runned by NetworkService) but when browsing the site I get this:
访问被拒绝.
说明:访问处理此请求所需的资源时出错.您可能无权查看请求的资源.
错误消息 401.3:您无权使用您提供的凭据查看此目录或页面(由于访问控制列表而拒绝访问).请求 Web 服务器的管理员授予您访问权限*
Access is denied.
Description: An error occurred while accessing the resources required to serve this request. You might not have permission to view the requested resources.
Error message 401.3: You do not have permission to view this directory or page using the credentials you supplied (access denied due to Access Control Lists). Ask the Web server's administrator to give you access to*
我已尝试授予 NetworkService 对保存网站的文件夹(IIS 中的 Web 应用程序指向的文件夹)的完全权限,但我仍然拒绝访问?
I have tried to give NetworkService full permission on the folder that holds the website (the one that the web application in IIS is pointing against) but I do still get the access denied?
为什么?
推荐答案
我授予了 "IIS_IUser" 的访问权限,但它应该是 "IUSR".这样就解决了问题.
I gave access to "IIS_IUser" but instead it should be "IUSR". That solved the problem.
这篇关于在 IIS7 中托管 ASP.NET 会导致访问被拒绝?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!