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

HTTP Error 500.30 – ANCM In-Process Start Failure

In ASP.NET Core 2.2, a new Server/ hosting pattern was released with IIS called IIS InProcess hosting. To enable inprocess hosting, the csproj element AspNetCoreHostingModel is added to set the hostingModel to inprocess in the web.config file. Also, the web.config points to a new module called AspNetCoreModuleV2 which is required for inprocess hosting. If the … Read more

Unable to launch the IIS Express Web server

I had the exact same problem. The reason – bad IIS config file. Try deleting the automatically-created IISExpress folder, which is usually located at %userprofile%/Documents, e.g. C:\Users\[you]\Documents\IISExpress. Don’t worry, VS should create it again – correctly, this time – once you run your solution again. EDIT: Command line for deleting the folder: rmdir /s /q … Read more

Where is the IIS Express configuration / metabase file found?

The configuration file is called applicationhost.config. It’s stored here: My Documents > IIS Express > config usually, but not always, one of these paths will work %userprofile%\documents\iisexpress\config\applicationhost.config %userprofile%\my documents\iisexpress\config\applicationhost.config Update for VS2019 If you’re using Visual Studio 2019+ check this path: $(solutionDir)\.vs\{projectName}\config\applicationhost.config Update for VS2015 (credit: @Talon) If you’re using Visual Studio 2015-2017 check this … Read more

Using Custom Domains With IIS Express

This is what worked for me (Updated for VS 2013, see revision history for 2010, for VS 2015 see this: https://stackoverflow.com/a/32744234/218971): Right-click your Web Application Project ▶ Properties ▶ Web, then configure the Servers section as follows: Select IIS Express ▼ from the drop down Project Url: http://localhost Override application root URL: http://dev.example.com Click Create … Read more

IIS Express Windows Authentication

Visual Studio 2010 SP1 and 2012 added support for IIS Express eliminating the need to edit angle brackets. If you haven’t already, right-click a web-flavored project and select “Use IIS Express…”. Once complete, select the web project and press F4 to focus the Properties panel. Set the “Windows Authentication” property to Enabled, and the “Anonymous … Read more