Why and how to fix? IIS Express “The specified port is in use”

I had a similar issue running Visual Studio 2019 on Windows 10. Some solutions that worked for others seemed to include: Changing the application port number. Have Visual studio automatically assign a port number each time the application start. Restart Visual Studio Restart the computer. Unfortunately, none of these solutions worked for me, assigning another … Read more

How to solve ERR_CONNECTION_REFUSED when trying to connect to localhost running IISExpress – Error 502 (Cannot debug from Visual Studio)?

Try changing the port number in your project? Project Properties → Web → Servers → Project Url: Don’t forget to click Create Virtual Directory, or reply “Yes” to the prompt for creating virtual directory after you change your port number! (Thanks Connor) Note: I’m a little reluctant to post this as an answer, as I … Read more

IISExpress 8 Cannot read configuration file redirection.config

I had a similar issue to @Myles J but renaming %userprofile%\Documents\IISExpress\config\applicationhost.config didn’t work. What I had to do was the following: Close Visual Studio. Rename the %userprofile%\Documents\IISExpress\config directory. Start Visual Studio again. The %userprofile%\Documents\IISExpress\config directory will be recreated with the default config files. Copy the original applicationhost.config file over the autogenerated one. Before anyone asks: … Read more

Connecting to Visual Studio debugging IIS Express server over the lan

Update I made a video that better describes the process, https://youtu.be/5ZqDuvTqQVs If you are using Visual Studio 2013 or above, make sure you run it as an administrator for this to work. Open the %USERPROFILE%\My Documents\IISExpress\config\applicationhost.config (in VS2015 it may be $(solutionDir)\.vs\config\applicationhost.config) file. Inside you should see something like this: <site name=”WebSite1″ id=”1″ serverAutoStart=”true”> <application … Read more

IISExpress returns a 503 error from remote machines

It looks like you are missing a binding information entry in applicationhost.config file. Open your applicationhost.config file. Possible locations are: %userprofile%\Documents\IISExpress\config\applicationhost.config $(solutionDir)\.vs\config\applicationhost.config (VS2015) Failing that, inspect the output from iisexpress.exe to be sure. Locate your WebSite entry and add following binding with your machine name. <binding protocol=”http” bindingInformation=”:50333:your-machine-name” /> Restart IIS Express

Authentication issue when debugging in VS2013 – iis express

I had just upgraded to VS 2013 from VS 2012 and the current user identity (HttpContext.User.Identity) was coming through as anonymous. I tried changing the IIS express applicationhost.config, no difference. The solution was to look at the properties of the web project, hit F4 to get the project properties when you have the top level … Read more