Monday, March 7, 2016

Error loading web project: The URL is configured to use IIS Express as the web server but the URL is currently configured on the local IIS web server.

Today I tried to do a code review but when I tried to load the solution in Visual Studio, it failed with the following error message:

The URL is configured to use IIS Express as the web server but the URL is currently configured on the local IIS web server. To open this project, you must use IIS Manager to remove the bindings using this URL from the local IIS web server.

image

I wanted to use IIS to host this web project, so I had to find out why it was trying to use IIS Express…

Inside my csproj file everything looked correct:

Strange! However there is also a csproj.user file and indeed  there the UseIISExpress settting was enabled:

After changing this to false, I was able to load the web project and start my review.

No comments: