Posted with : Studying, ASP.NET MVC

Use custom domain with IISExpress

The testing purpose of requires to use a FQDN rather than using localhost as usual. So it requires to do some modification on IISExpress settings. Below steps are easily to make work.

  1. Besure that we use IISExpress in Visual Studio

  2. Change Project Url to the one we expect


  1. Modify the side definition in %USERPROFILE%\My Documents\IISExpress\config\applicationhost.config as below, two important attributes should be updated

physicalPath = D:\Projects\webapi-oauth-intergration\WebApiExternalAuth


<site name="WebApiExternalAuthDev" id="999122">
    <application path="/" applicationPool="Clr4IntegratedAppPool">
        <virtualDirectory path="/" physicalPath="D:\Projects\webapi-oauth-intergration\WebApiExternalAuth" />
        <binding protocol="http" bindingInformation="*" />
  1. Modify the host file, add a new line to maps your machine with

Written on October 15, 2015