1

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.
Ondrej
  • 1,209
  • 1
  • 11
  • 21
John Tseng
  • 6,262
  • 2
  • 27
  • 35

2 Answers2

1

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.

Ondrej
  • 1,209
  • 1
  • 11
  • 21
0

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.

Community
  • 1
  • 1
John Tseng
  • 6,262
  • 2
  • 27
  • 35