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

Add MIME mapping in web.config for IIS Express

Putting it in the “web.config” works fine. The problem was that I got the MIME type wrong. Instead of font/x-woff or font/x-font-woff it must be application/font-woff: <system.webServer> … <staticContent> <remove fileExtension=”.woff” /> <mimeMap fileExtension=”.woff” mimeType=”application/font-woff” /> </staticContent> </system.webServer> See also this answer regarding the MIME type: https://stackoverflow.com/a/5142316/135441 Update 4/10/2013 Spec is now a recommendation and … Read more

Creating virtual directories in IIS express

IIS express configuration is managed by applicationhost.config. You can find it in Users\<username>\Documents\IISExpress\config folder. Inside you can find the sites section that hold a section for each IIS Express configured site. Add (or modify) a site section like this: <site name=”WebSiteWithVirtualDirectory” id=”20″> <application path=”https://stackoverflow.com/” applicationPool=”Clr4IntegratedAppPool”> <virtualDirectory path=”https://stackoverflow.com/” physicalPath=”c:\temp\website1″ /> </application> <application path=”/OffSiteStuff” applicationPool=”Clr4IntegratedAppPool”> <virtualDirectory path=”https://stackoverflow.com/” … Read more

Configure IIS Express for external access to VS2010 project

1 After editing applicationhost.config file (located in the IISExpress folder in your documents), your site bindings should look like below: <bindings> <binding protocol=”http” bindingInformation=”*:8080:*” /> </bindings> Bindings consist of three parts. Firstly an IP address or list, or as in this case, a wildcard. Secondly the port number, and thirdly a hostname, or list, or … Read more