Link to home
Start Free TrialLog in
Avatar of Dovberman
DovbermanFlag for United States of America

asked on

error: Unable to launch the IIS Express Web server

I recently installed MySQL 5.6. I was able to successfully use the workbench. My Visual Studio project also worked without error.

Then I tried to define a MySQL connection in the web.config file. The Unable to launch the IIS Express Web server error was triggered when I tried to run in debug mode. I removed the MySQL connection definition from web.config.
This did not prevent the error.

Any ideas would be appreciated.

I researched the error and found that the applicationhost file may explain the error.

Applicationhost

<site name="StockPickerMax(1)" id="4">
    <application path="/" applicationPool="Clr4IntegratedAppPool">
        <virtualDirectory path="/"                         physicalPath="C:\Users\David\Documents\
            Visual Studio      2012\Projects\StockPickerMax\StockPickerMax" />
    </application>
    <bindings>
       <binding protocol="http" bindingInformation="*:54911:localhost" />
    </bindings>
</site>

<site name="StockPickerMax" id="2">
    <application path="/" applicationPool="Clr4IntegratedAppPool">
        <virtualDirectory path="/"
            physicalPath="C:\Users\David\Documents\
                  Visual Studio 2012\Projects\StockPickerMax\StockPickerMax" />
    </application>
    <bindings>
       <binding protocol="http" bindingInformation="*:54911:localhost" />
    </bindings>
 </site>

My application name is referenced twice. Could this be the problem?
<site name="StockPickerMax(1)" id="4">
<site name="StockPickerMax" id="2">

Thanks,
ASKER CERTIFIED SOLUTION
Avatar of lcohan
lcohan
Flag of Canada image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Dovberman

ASKER

That's a good start. I will try it.

Thanks,
Thanks for the links. I learned a lot about IIS Express.

I discovered that my issue was in the Applicationhost config file.

My site name appeared twice. I removed the StockPickerMax(1) reference.
Now it works.

<site name="StockPickerMax(1)" id="4">
    <application path="/" applicationPool="Clr4IntegratedAppPool">
        <virtualDirectory path="/"                         physicalPath="C:\Users\David\Documents\
            Visual Studio      2012\Projects\StockPickerMax\StockPickerMax" />
    </application>
    <bindings>
       <binding protocol="http" bindingInformation="*:54911:localhost" />
    </bindings>
</site>

<site name="StockPickerMax" id="2">
    <application path="/" applicationPool="Clr4IntegratedAppPool">
        <virtualDirectory path="/"
            physicalPath="C:\Users\David\Documents\
                  Visual Studio 2012\Projects\StockPickerMax\StockPickerMax" />
    </application>
    <bindings>
       <binding protocol="http" bindingInformation="*:54911:localhost" />
    </bindings>
 </site>
Thanks for getting me started.