asp.net - 使用具有特定身份的应用程序池运行 ASP.net 项目会产生 "(403) Forbidden"

标签 asp.net visual-studio iis

尝试从 Visual Studio 启动 ASP.net 项目时收到此错误消息(它不运行):

无法在 Web 服务器上启动调试。远程服务器返回错误:(403) Forbidden。

enter image description here

Help 将我带到 this page这是没有帮助的。搜索更一般的错误会产生 this page这也是没有帮助的。我正在将 IIS 10 与我创建的应用程序池一起使用,该应用程序池的身份与我的身份不同。

最佳答案

在 Visual Studio 中,选择调试 > 启动而不调试 会显示一个包含更有用错误的网页:

The current identity (username) does not have write access to C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files'.

导航到该文件夹​​,右键单击Temporary ASP.NET Files,选择PropertiesSecurity选项卡、Edit >、添加,并从我的自定义应用程序池输入身份解决了此错误。

关于asp.net - 使用具有特定身份的应用程序池运行 ASP.net 项目会产生 "(403) Forbidden",我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/44337959/

相关文章:

windows - 无法找到 Fusion 日志查看器 Windows Server 2012 Visual Studio 2013

python - IIS winserver 2016 wfastcgi 处理程序行 791 上的 django

angular - 在 IIS 的虚拟目录下运行 Angular

c# - 如何限制 MVC 文本框中字符的长度?

asp.net - 不使用 FormsAuthentication.RedirectFromLoginPage 时如何将 Request.IsAuthenticated 设置为 true?

javascript - ASP.NET MVC 5 - 将 div 的内容发送到 Controller 方法

c# - 使用本地应用程序从服务器获取文件

c# - 在占位符中查找控件

c++ - 如何使用未初始化的指针修复 C++ 中的 C4700 警告?

iis - 使用IIS NLB时如何将用户请求保留在同一服务器上?