Solved

error: Unable to launch the IIS Express Web server

Posted on 2014-11-05
4
770 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

Gigs: Get Your Project Delivered by an Expert

Select from freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely and get projects done right.

Question has a verified solution.

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

JSON is being used more and more, besides XML, and you surely wanted to parse the data out into SQL instead of doing it in some Javascript. The below function in SQL Server can do the job for you, returning a quick table with the parsed data.
This article shows gives you an overview on SQL Server 2016 row level security. You will also get to know the usages of row-level-security and how it works
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.

786 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