1

I have a .NET 3.5 web site in IIS 6. I created a virtual directory to host a .NET 4.0 app. However, I'm getting all kinds of errors that point to the .NET 4.0 app processing items from the parent app's web.config file, even though I have it set up to be its own virtual directory.

How can I stop this from happening?

Chris
  • 26,955
  • 23
  • 120
  • 219
  • without the actual error, you probebly have HttpModules being added, try using the Until it start working. Cheers – Iain Oct 12 '10 at 19:35

2 Answers2

0

give different applicaiton pools for the parent and child app from iis. Set framework 2.0 for the parent app's applicaiton pool and framework 4.0 for the child's.

sirmak
  • 3,729
  • 4
  • 29
  • 34
0

This may help you - although it explains what to do in the opposite situation.

Can I host a .net 2.0 virtual directory in asp.net 4.0 site?

Virtual directories will inherit the root directory web.config. This is by design.

Or, you can use the <remove /> element to, well, remove elements from the parent config.

Community
  • 1
  • 1
ScottE
  • 21,265
  • 18
  • 93
  • 130