PROBLEM
In some cases "Microsoft Visual Studio (VS)" when you use "Microsoft Internet Information Services Express (IIS)" and you have attached web site project to IIS after run Build shown this error message
Unable to launch the IIS Express Web server
.
How can I solve it if exception message does not shown nothing more?
PRE-REQUIREMENTS
The best step is catch what exactly is going on.
Download and use for it "Sysinternals Process Monitor (PM)".
Run PM and create filter "'Process Name' 'is' 'iisexpress.exe'". Now you show capture events only from IIS.
Run building your VS project with key F5 and watch PM results.
Open with double click first row with "Operation = Process Start" and look detail for full parameters to run IIS especially "Command line".
Open "Command Line Interface (CLI)" called "Command shell" with Win+R write "cmd" put IIS command line value and run with Enter. Now you see the exact error:
SOLUTION
Case "apppool"
Open file
Find in section "sites > site" your named project or by
bindingInformation
by attached from VS. Add to section "application" another parameter "applicationPool" from version what you use for your project.Now test it, close fully VS, open project again and build.
Case "config"
REFERENCES
Thanks to Finbar Ryan.
In my case i tried every post I found on net and nothing works, last thing I done is to change option on project right click/ use visual studio web server and all works well now...