Re: .NET 1.1 Virtual Directory in a .NET 2.0 Website

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



It's not my fault if ASP.NET behaves illogically.

;-)




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/
===================================
"John Timney (MVP)" <x_john@xxxxxxxxxxxxxxxxxxxx> wrote in message
news:Id-dnVzjrqfcJ7XbnZ2dnUVZ8rOdnZ2d@xxxxxxxxxxxxxxxxx
......and we are all glad you did and not us :)

--
--
Regards

John Timney (MVP)
http://www.johntimney.com
http://www.johntimney.com/blog


"Juan T. Llibre" <nomailreplies@xxxxxxxxxxx> wrote in message
news:%23duQUIugHHA.1240@xxxxxxxxxxxxxxxxxxxxxxx
re:
wow- that sucks for me; ha.

I got some egg on my face in that thread.
Like you, I expected to be able to inherit settings.

It took a lot of scenario testing to make me see the light.

:-(





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/
===================================
"Eric" <eric@xxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:OyKNidtgHHA.1240@xxxxxxxxxxxxxxxxxxxxxxx
wow- that sucks for me; ha.
Thank you for responding Juan.


Regards,

Eric


"Juan T. Llibre" <nomailreplies@xxxxxxxxxxx> wrote in message
news:OJ2PiRtgHHA.3472@xxxxxxxxxxxxxxxxxxxxxxx
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/microsoft.public.dotnet.framework.aspnet/browse_thread/thread/fe65a8938d193b5e/f88ec60e18f36ca5?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/
===================================
"Eric" <eric@xxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:OaJ$8NtgHHA.1220@xxxxxxxxxxxxxxxxxxxxxxx
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












.



Relevant Pages