Solved

error: Unable to launch the IIS Express Web server

Posted on 2014-11-05
4
684 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
Comment Utility
0
 

Author Comment

by:Dovberman
Comment Utility
That's a good start. I will try it.

Thanks,
0
 

Author Comment

by:Dovberman
Comment Utility
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
Comment Utility
Thanks for getting me started.
0

Featured Post

What Security Threats Are You Missing?

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

Suggested Solutions

Load balancing is the method of dividing the total amount of work performed by one computer between two or more computers. Its aim is to get more work done in the same amount of time, ensuring that all the users get served faster.
For both online and offline retail, the cross-channel business is the most recent pattern in the B2C trade space.
Via a live example, show how to extract insert data into a SQL Server database table using the Import/Export option and Bulk Insert.
Viewers will learn how to use the INSERT statement to insert data into their tables. It will also introduce the NULL statement, to show them what happens when no value is giving for any given column.

744 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

8 Experts available now in Live!

Get 1:1 Help Now