Run Two Projects on Same Visual Studio Development Server

978 views Asked by At

I have two web projects that I want to run in the same domain in VS2010. How do I do this, still keep edit and continue, and still load Http Modules?

I tried the following:

  • specifying the same port in project settings with different virtual paths on Visual Studio Development Server, but the second project won't start.
  • Local IIS 7.5 Server, but it won't let me edit and continue, and my HTTP Module projects aren't loaded.
  • Local IIS Express, but my HTTP Module projects aren't loaded.
2

There are 2 answers

0
John Tseng On

I finally found a way:

Use IIS Express and change the managed pipeline mode to classic (instructions: https://stackoverflow.com/a/5918197/2503659) so that HTTP modules will be loaded.

0
Ondrej On

For Edit and Continue working with Local IIS, you can set global environment variable using administrator command line:

setx /m COMPLUS_ForceEnC 1

and then restart IIS.

One disadvantage is that in this case every managed process will reserve extra memory for Edit and Continue. See more about this environment variable here.

In Windows 10, the variable can be defined per application pool, see my answer here.