Solved

error: Unable to launch the IIS Express Web server

Posted on 2014-11-05
4
844 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
4 Comments
 
LVL 40

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

Online Training Solution

Drastically shorten your training time with WalkMe's advanced online training solution that Guides your trainees to action. Forget about retraining and skyrocket knowledge retention rates.

Question has a verified solution.

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

A theme is a collection of property settings that allow you to define the look of pages and controls, and then apply the look consistently across pages in an application. Themes can be made up of a set of elements: skins, style sheets, images, and o…
This article explains how to reset the password of the sa account on a Microsoft SQL Server.  The steps in this article work in SQL 2005, 2008, 2008 R2, 2012, 2014 and 2016.
Via a live example, show how to backup a database, simulate a failure backup the tail of the database transaction log and perform the restore.
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.

726 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