尝试从 Visual Studio 启动 ASP.net 项目时收到此错误消息(它不运行):
无法在 Web 服务器上启动调试。远程服务器返回错误:(403) Forbidden。
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
,选择Properties
、Security
选项卡、Edit
>、添加
,并从我的自定义应用程序池
输入身份解决了此错误。
关于asp.net - 使用具有特定身份的应用程序池运行 ASP.net 项目会产生 "(403) Forbidden",我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/44337959/