Hosting ASP.NET in IIS7 gives Access is denied?(在 IIS7 中托管 ASP.NET 会导致访问被拒绝?)
问题描述
我在我的 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 会导致访问被拒绝?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!
本文标题为:在 IIS7 中托管 ASP.NET 会导致访问被拒绝?


- WebMatrix WebSecurity PasswordSalt 2022-01-01
- 输入按键事件处理程序 2022-01-01
- Web Api 中的 Swagger .netcore 3.1,使用 swagger UI 设置日期时间格式 2022-01-01
- 如何用自己压缩一个 IEnumerable 2022-01-01
- 在哪里可以找到使用中的C#/XML文档注释的好例子? 2022-01-01
- MoreLinq maxBy vs LINQ max + where 2022-01-01
- C#MongoDB使用Builders查找派生对象 2022-09-04
- C# 中多线程网络服务器的模式 2022-01-01
- 带有服务/守护程序应用程序的 Microsoft Graph CSharp SDK 和 OneDrive for Business - 配额方面返回 null 2022-01-01
- 良好实践:如何重用 .csproj 和 .sln 文件来为 CI 创建 2022-01-01