Search code examples
asp.net-mvcdebuggingvisual-studio-2015iis-express

Start site from cmd


I'm trying to start a ASP.NET MVC project on IIS Express from cmd using this command

iisexpress /site:MySiteName

but I get this message

The following site was not found in the configuration file

What I'm missing here !?


Solution

  • From documentation:

    /config:config-file The full path to the applicationhost.config file. The default value is the IISExpress8\config\applicationhost.config file that is located in the user's Documents folder.

    So you need to add config key /config: and write the path to your config.