.NET 1.1 Virtual Directory in a .NET 2.0 Website

E

Eric

Hi Everyone,

I have an ASP 1.1 website being hosted in a virtual directory that is a
child node of an ASP 2.0 website. So I have:

http://mainapp (which is a 2.0 site)

And:

http://mainapp/subapp (which is a 1.1 site)

I've got the application pool stuff handled; the problem I'm having is that
each of the two sites has a web.config file in the root of the site. The
1.1 app in the virtual directory is complaining because it doesn't recognize
some of the elements that exist in the web.config file of the parent, 2.0
site (such as "xhtmlConformance" in "system.web" and "system.codedom"). I
thought I was supposed to be able to have a 1.1 virtual directory as a
sub-node of a 2.0 site- am I wrong?


Thank's for any/all help!

Eric
 
J

Juan T. Llibre

re:
!> I thought I was supposed to be able to have a 1.1 virtual directory as a
!> sub-node of a 2.0 site- am I wrong?

You can't. IIS webs will always inherit from the root node.

We went over this some time ago. See this discussion :

http://groups.google.com/group/micr...36ca5?lnk=st&q=&rnum=1&hl=en#f88ec60e18f36ca5

Web.config settings aren't inherited from 1.1 to 2.0, and they aren't inherited from 2.0 to 1.1.

Web.config settings *will* inherit from the root,
no matter whether the root is a 1.1 root or a 2.0 root.

That causes conflicts with settings you don't want to be inherited.



Juan T. Llibre, asp.net MVP
asp.net faq : http://asp.net.do/faq/
foros de asp.net, en español : http://asp.net.do/foros/
===================================
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top