Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Multiple web project are hosted on IIS Express in Visual Studio 2013

I have solution with 3 project. Out 3 project 2 of the projects are of type web API and other one is ASP.Net MVC 5 web project. My solution is having the setting of "Single Start up project" which is pointing to Asp.net MVC 5 project.

Problem here is when I run the ASP.Net web project, It is getting hosted on IIS Express on some port. But other two Web API projects also getting hosted, even though I have not set the "multiple start up projects".

Is there any issue in vs 2013, or do i need to do some settings not to host all the web projects.

Note : I am using Visual Studio 2013 community edition.

like image 933
Saran Avatar asked Dec 29 '14 04:12

Saran


People also ask

What is the difference between IIS and IIS Express?

An important difference is the way worker processes are managed. In IIS, the Windows Process Activation Service (WAS) silently activates and deactivates Web applications and the user has no direct control. In IIS Express, there is no WAS and the user has full control of application activation and deactivation.

How do I use Visual Studio with IIS Express?

Configure IIS express on visual studio Select the web application project and open properties -> select the web tab -> under server's select IIS express-> Specify the project URL. Now open the project folder and . vs folder (Hidden) -> Config -> applicationhost.

How do I host a website on IIS Express?

run this command "netsh http add urlacl url=http://*:44886/ user=Everyone" and try to start it again(press F5). This should work. Following link may also help learn.iis.net/page.aspx/1005/…


1 Answers

I just figured out by some more web search...

We have to set the project property "Always Start When Debugging" to false for which ever project we don't want to host.

See the link http://blog.geocortex.com/2010/06/04/always-start-when-debugging-preventing-multiple-visual-studio-development-servers-from-starting/

like image 117
Saran Avatar answered Sep 29 '22 04:09

Saran