Solved

error: Unable to launch the IIS Express Web server

Posted on 2014-11-05
4
733 Views
Last Modified: 2014-11-06
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,
0
Comment
Question by:Dovberman
  • 3
4 Comments
 
LVL 39

Accepted Solution

by:
lcohan earned 500 total points
ID: 40424331
0
 

Author Comment

by:Dovberman
ID: 40425003
That's a good start. I will try it.

Thanks,
0
 

Author Comment

by:Dovberman
ID: 40425790
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>
0
 

Author Closing Comment

by:Dovberman
ID: 40425793
Thanks for getting me started.
0

Featured Post

Complete VMware vSphere® ESX(i) & Hyper-V Backup

Capture your entire system, including the host, with patented disk imaging integrated with VMware VADP / Microsoft VSS and RCT. RTOs is as low as 15 seconds with Acronis Active Restore™. You can enjoy unlimited P2V/V2V migrations from any source (even from a different hypervisor)

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Entering time in Microsoft Access can be difficult. An input mask often bothers users more than helping them and won't catch all typing errors. This article shows how to create a textbox for 24-hour time input with full validation politely catching …
I have a large data set and a SSIS package. How can I load this file in multi threading?
Via a live example, show how to shrink a transaction log file down to a reasonable size.
Viewers will learn how to use the SELECT statement in SQL and will be exposed to the many uses the SELECT statement has.

920 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

14 Experts available now in Live!

Get 1:1 Help Now