By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
435,434 Members | 2,884 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 435,434 IT Pros & Developers. It's quick & easy.

.NET 1.1 Virtual Directory in a .NET 2.0 Website

P: n/a
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
Apr 19 '07 #1
Share this Question
Share on Google+
6 Replies


P: n/a
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/micro...8ec60e18f36ca5

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" <er**@hiddenemail.com.nospamwrote in message news:Oa**************@TK2MSFTNGP03.phx.gbl...
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


Apr 19 '07 #2

P: n/a
wow- that sucks for me; ha.
Thank you for responding Juan.
Regards,

Eric
"Juan T. Llibre" <no***********@nowhere.comwrote in message
news:OJ**************@TK2MSFTNGP04.phx.gbl...
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/micro...8ec60e18f36ca5

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" <er**@hiddenemail.com.nospamwrote in message
news:Oa**************@TK2MSFTNGP03.phx.gbl...
>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



Apr 19 '07 #3

P: n/a
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" <er**@hiddenemail.com.nospamwrote in message news:Oy**************@TK2MSFTNGP04.phx.gbl...
wow- that sucks for me; ha.
Thank you for responding Juan.
Regards,

Eric
"Juan T. Llibre" <no***********@nowhere.comwrote in message
news:OJ**************@TK2MSFTNGP04.phx.gbl...
>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/micro...8ec60e18f36ca5

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" <er**@hiddenemail.com.nospamwrote in message
news:Oa**************@TK2MSFTNGP03.phx.gbl...
>>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




Apr 20 '07 #4

P: n/a
.......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" <no***********@nowhere.comwrote in message
news:%2****************@TK2MSFTNGP04.phx.gbl...
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" <er**@hiddenemail.com.nospamwrote in message
news:Oy**************@TK2MSFTNGP04.phx.gbl...
>wow- that sucks for me; ha.
Thank you for responding Juan.
Regards,

Eric
"Juan T. Llibre" <no***********@nowhere.comwrote in message
news:OJ**************@TK2MSFTNGP04.phx.gbl...
>>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/micro...8ec60e18f36ca5

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" <er**@hiddenemail.com.nospamwrote in message
news:Oa**************@TK2MSFTNGP03.phx.gbl...
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




Apr 20 '07 #5

P: n/a
"John Timney (MVP)" <x_****@timney.eclipse.co.ukwrote in message
news:Id******************************@eclipse.net. uk...
......and we are all glad you did and not us :)
LOL!
Apr 20 '07 #6

P: n/a
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_****@timney.eclipse.co.ukwrote in message
news:Id******************************@eclipse.net. uk...
......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" <no***********@nowhere.comwrote in message
news:%2****************@TK2MSFTNGP04.phx.gbl...
>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" <er**@hiddenemail.com.nospamwrote in message
news:Oy**************@TK2MSFTNGP04.phx.gbl...
>>wow- that sucks for me; ha.
Thank you for responding Juan.
Regards,

Eric
"Juan T. Llibre" <no***********@nowhere.comwrote in message
news:OJ**************@TK2MSFTNGP04.phx.gbl...
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/micro...8ec60e18f36ca5

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" <er**@hiddenemail.com.nospamwrote in message
news:Oa**************@TK2MSFTNGP03.phx.gbl...
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
>
>




Apr 20 '07 #7

This discussion thread is closed

Replies have been disabled for this discussion.