Reputation: 7221
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?
Upvotes: 4
Views: 9124
Reputation: 7221
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:
"C:\Program Files\IIS Express\iisexpress.exe" /config:"C:\Users\{user_name}\Documents\IISExpress\config\applicationhost.config" /site:"{project_name}" /apppool:"Clr4IntegratedAppPool"
SOLUTION
Case "apppool"
The following switch requires a value:
apppool
Open file
%userprofile%\documents\iisexpress\config\applicationhost.config`
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.
<application path="/" applicationPool="Clr4IntegratedAppPool">
Now test it, close fully VS, open project again and build.
Case "config"
Ref
Upvotes: 4
Reputation: 21
I tried almost everything but it didn't work. Then I restarted my computer. and iis express worked :) I don't know maybe a reboot was needed for what I did.
Upvotes: 0
Reputation: 6925
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...
Upvotes: 0