473,322 Members | 1,493 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,322 software developers and data experts.

.NET 1.1 Virtual Directory in a .NET 2.0 Website

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
6 2145
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
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
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
.......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
"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
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Jeffry van de Vuurst | last post by:
Hi, (sorry for the crosspost, I wasn't sure which was the best place to put this). I was just thinking about something and wondered if any of you has some ideas about this. I'm using the...
0
by: Tom Pester | last post by:
This is the simplified structure of my website in IIS : c:\Website -------> Home (normal directory) -------> Engine (*virtual directory* but not an application!) I made the Engine (which...
3
by: Amir Eshterayeh | last post by:
Dear Friends Would you please give me your professional idea about this asp.net problem. I need different virtual directory for different customer with their names like these:...
8
by: nick | last post by:
I have a problem and I've been using a cheezy work around and was wondering if anyone else out there has a better solution. The problem: Let's say I have a web application appA. Locally, I set...
16
by: B Letts | last post by:
Hi - I'm currently using the FileUpload control to allow people to upload files to my website. This all works fine, as long as I'm going to a physical path on my server. However, I need to...
3
by: Bob Peek | last post by:
I would like to share code between several web sites that exist as virtual directories under a single site. It appears that I have to create an app_code directory under each virtual root in order...
2
by: Rose winsle | last post by:
Hi guys ... I just wanted to create virtual directory using VB.net . i can manage that ... when i create the virtual directory how can i set anonymous access off. following is my code...
1
by: Gordowey | last post by:
Hi all, I have a questioion about how to configure my virtual directory I have my website at "c:\inteput\wwwroot", and I have also a virtual directory "c:\inteput\wwwroot\admin" I am using...
12
by: Pao | last post by:
Hi all For all NEW sites (virtual directories) that I create, I receive always the same error: (I translate so may be a little different) Impossible to visualize the XML page Impossible to...
5
by: rockdale | last post by:
Hi, all: Hope somebody can solve this problem for me. We are migrating 3 asp website into IIS 6.0 on a server 2003. we do not want to create 3 website since we do not want to acquire different...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.