2

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.

DharmaTurtle
  • 6,858
  • 6
  • 38
  • 52

3 Answers3

2

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.

DharmaTurtle
  • 6,858
  • 6
  • 38
  • 52
0

In my case, I have changed Solution Configuration from Release to Debug mode.

Release Mode

To

Debug Mode

This solution may work for someone.

Rikin Patel
  • 8,848
  • 7
  • 70
  • 78
0

for me the issue was physical path pointed to some other folder, and below post helped fixed the issue

another site running on IISExpress

Ashu
  • 181
  • 1
  • 10