Running an ASP.net project with an Application Poo

2019-08-20 06:51发布

I'm getting this error message when trying to start an ASP.net project from Visual Studio (it doesn't run):

Unable to start debugging on the web server. The remote server returned an error: (403) Forbidden.

enter image description here

Help takes me to this page which is unhelpful. Searching for the more general error yields me this page which is also unhelpful. I'm using IIS 10 with an Application Pool of my creation with a different Identity than mine.

1条回答
倾城 Initia
2楼-- · 2019-08-20 07:02

In Visual Studio, selecting Debug > Start Without Debugging gives me a webpage with a more useful error:

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

Navigating to that folder, right clicking Temporary ASP.NET Files, selecting Properties, Security tab, Edit, Add, and entering the Identity from my custom Application Pool solves this error.

查看更多
登录 后发表回答