Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Disabling Visual Studio Development Server - Any way to do this per project?

When debugging my website project I usually go to start options in the web project's properties and select 'Don't open a page' and 'Use custom server' with a url that's in my host file pointing to my local IIS.

Even when I do this though visual studio still spawns it's own Development Server instance every time I hit f5.

Is there any way to disable this?

Also for web application projects that have shared ascx files for instance Visual Studio will also launch an instance of Development Server each time I debug the solutions for each for these projects. This results in a million instances of Development Server running on my machine at any given moment.

Is there any way to disable development server for a given project completely? Without pointing it to a localhost sub application?

like image 545
BrooklynDev Avatar asked Aug 12 '10 17:08

BrooklynDev


2 Answers

I've just solved the same thing by doing the following

  1. Select the project
  2. Right click->Properties->Web Tab
  3. From the Start Action, select Dont open a page
  4. From Web Server select Use Custom Web Server, specify http://127.0.0.1 as start page
like image 94
Paleta Avatar answered Oct 22 '22 12:10

Paleta


Click on Project, Properties, Web. Under Servers,select Use Local IIS Web Server. If the site has not been created on IIS yet, click on Create Virual Directory. Your project will now run in IIS when you debug.

like image 30
Johnny DropTables Avatar answered Oct 22 '22 14:10

Johnny DropTables