Monday, May 20, 2019

Cannot run IIS express from within Visual Studio.

So about two days ago, I stop being able to run web sites in Visual Studio.

I get this error:

http://localhost:54147 : error : Error opening web http://localhost:54147. Unable to open the Web site 'http://localhost:54147'. You do not have permission to access the IIS configuration file. Opening and creating web sites on IIS requires running Visual Studio under an Administrator account.

Now, I have done what it says, and run Visual Studio as an administrator (I am used to doing this as have a site running subdomains).

I have also gone to

C:\Users\[username]\Documents\IISExpress\config

Clicked through the permissions prompt, but still problem remains.

This happens in Visual Studio 2015, 2017.

Yesterday, I gave up. I reset windows. Today i had a nice shiny new windows install. I put on SQL server, several versions, and installed Visual Studio 2019 and looked forward to it working. But same problem.

My desktop machine continues to work fine on exactly same software (windows 10, vs 2015, 2017, etc.) and on exactly the same webs (I sync them via dropbox).

Tearing my hair out. Any ideas? I thought blowing my laptop away and resetting windows was the nuclear option, but this bug seems to survive even this.

And please don't post if you're just going to suggest I am not running as an admin, etc. Please read the steps I have taken before posting responses. There must be a solution, but it isn't the obvious one the error suggests, because I have tried it.

Cannot run IIS express from within Visual Studio. Click here
  • Blogger Comment
  • Facebook Comment

0 comments:

Post a Comment

The webdev Team