473,419 Members | 2,057 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,419 software developers and data experts.

ASP.NET 2.0 app with Virtual Directory running 1.1 (different pool

I am running on Window 2003. I have a website built in ASP.NET 2.0. I need to
have a Virtual Directory running an application in 1.1. I have configured
each in its own Application Pool. The 1.1 application picks up and parses the
2.0 web.config. It is complaining about the connectionstrings node. If I
comment out that node the applications both run.

I have tried running the 1.1 application under 2.0 but there are some
controls used in that application that don't function properly in that
scenario. The 1.1 app cannot be converted at this time.

The issue is that I cannot use any of the new nodes in 2.0 for my 2.0
application (connection string, url rewriting).

Thoughts?

Nate
Feb 7 '06 #1
8 2522
Hi Nate,

Thanks for posting!

From you description, I'm sorry I can not understand the issue very
clearly. Let me explain my understanding for the current issue: the current
ASP.NET application (v2.0) is running under the setting of v1.0. If I have
misunderstood anything, please let me know.

Based on my understanding, I don't think the application can work fine in
this scenario. I suggest you configure the "ASP.NET version" to "2.0.xxxx"
in the "ASP.NET" tab in IIS. Whatever the application pool is used, the
application will work well when the correct version setting.

I appreciate your understanding and hope the above information will be
helpful, if you have any issues or concerns please let me know. I will be
happy to be of further assistance.

Regards,

Yuan Ren [MSFT]
Microsoft Online Support

Feb 8 '06 #2
Your understanding of my situation is not correct. My site is layed out like
the diagram below.

Web Sites
--ABC Site (built in and configured to use 2.0.xxxx in App Pool 1)
----A Virtual Directory (built and configured to use 1.1.xxxx in App Pool 2)

When the virtual directoy application built in 1.1 starts it throws a parse
error if there are any nodes in the web.config file of the ABC Site 2.0 site
that are specific to ASP.NET 2.0 (e.g. <connectionStrings/> or <urlMappings
enabled="true">).

I have tried running the 1.1 application under 2.0 but it does not work.

Why does the 1.1 application care what is in the web.config file of the 2.0
application? Is there some further way to seperate the two?
Feb 8 '06 #3
re:
Why does the 1.1 application care what is in the web.config file of the 2.0
application? Is there some further way to seperate the two?
You need to understand the difference between a Virtual Directory and an Application.

A Virtual Directory will inherit from the Application which it's a Virtual Directory of.
It makes sense that 2.0 web.config settings create problems for a 1.1 App.

An Application stands alone and does not inherit from any other Application.

Try making your 1.1 Virtual Directory an Application.

You might need to implement session-sharing between them
if you are using session state for critical application data.

Juan T. Llibre
ASP.NET MVP
ASPNETFAQ.COM : http://www.aspnetfaq.com
==================================
"Nate" <co*******@noemail.noemail> wrote in message
news:55**********************************@microsof t.com... Your understanding of my situation is not correct. My site is layed out like
the diagram below.

Web Sites
--ABC Site (built in and configured to use 2.0.xxxx in App Pool 1)
----A Virtual Directory (built and configured to use 1.1.xxxx in App Pool 2)

When the virtual directoy application built in 1.1 starts it throws a parse
error if there are any nodes in the web.config file of the ABC Site 2.0 site
that are specific to ASP.NET 2.0 (e.g. <connectionStrings/> or <urlMappings
enabled="true">). I have tried running the 1.1 application under 2.0 but it does not work.

Why does the 1.1 application care what is in the web.config file of the 2.0
application? Is there some further way to seperate the two?

Feb 8 '06 #4
Hi.

I'm having the exact same problem as Nate.
My Virtual Directory has an application name, MyAppName, with a starting
point that is <Default Web Site>\MyAppName.
I have removed the application name and re-created, yet it still has a
starting point under <Default Web Site>.
I need the url for the 1.1 site to be remain under the 2.0 site like it is
now.
So how do I get my virtual directory to behave like an application of it's
own, yet still be accessed at the url http://myTopLevel2.0Site/my1.1site?

Thanks for the help.

Patrick Teas
"Juan T. Llibre" <no***********@nowhere.com> wrote in message
news:%2***************@TK2MSFTNGP15.phx.gbl...
re:
Why does the 1.1 application care what is in the web.config file of the
2.0
application? Is there some further way to seperate the two?


You need to understand the difference between a Virtual Directory and an
Application.

A Virtual Directory will inherit from the Application which it's a Virtual
Directory of.
It makes sense that 2.0 web.config settings create problems for a 1.1 App.

An Application stands alone and does not inherit from any other
Application.

Try making your 1.1 Virtual Directory an Application.

You might need to implement session-sharing between them
if you are using session state for critical application data.

Juan T. Llibre
ASP.NET MVP
ASPNETFAQ.COM : http://www.aspnetfaq.com
==================================
"Nate" <co*******@noemail.noemail> wrote in message
news:55**********************************@microsof t.com...
Your understanding of my situation is not correct. My site is layed out
like
the diagram below.

Web Sites
--ABC Site (built in and configured to use 2.0.xxxx in App Pool 1)
----A Virtual Directory (built and configured to use 1.1.xxxx in App Pool
2)

When the virtual directoy application built in 1.1 starts it throws a
parse
error if there are any nodes in the web.config file of the ABC Site 2.0
site
that are specific to ASP.NET 2.0 (e.g. <connectionStrings/> or
<urlMappings
enabled="true">).

I have tried running the 1.1 application under 2.0 but it does not work.

Why does the 1.1 application care what is in the web.config file of the
2.0
application? Is there some further way to seperate the two?


Feb 9 '06 #5
Hi Nate,

Thanks for your reply!

I'm sorry for misunderstood the current issue. As Juan mentioned, the
application is different of the virtual directory. So you should create the
application for the ASP.NET 1.1 application in IIS. I have performed the
test and there is no error has been encountered.

Regards,

Yuan Ren [MSFT]
Microsoft Online Support

Feb 9 '06 #6
I must admit I was mistaken.

I just reproduced your structure ( a 1.1 app running under a 2.0 app )
and have found that, indeed, the 1.1 app balks at 2.0-only web.config
configuration entries in the 2.0's app's web.config.

Now, I realize that we may have been trying to ignore Application boundaries.

An Application is defined as all the files in a subdirectory which has
been marked as an Application...and all the files in all subdirectories
of the Application's root.

Anything which is included under the application's subdirectory *must* run under
that application's "rules", and apparently that includes the target .Net Framework.

Testing further, I found that after I created the VS 2003 project and closed it,
I couldn't open it again, getting an "http 500 internal error" message.

Moreover, the 1.1 app ran OK...as long as I didn't assign it to a 1.1 AppPool.

As soon as I assigned it to a 1.1 AppPool, that caused an "Application Unavailable"
error message in all my 2.0 apps, which can only mean that it's running under 2.0 rules,
even though the ASP.NET tab is marked as targeting the 1.1 Framework.

Bottom line : you can't mix .Net Frameworks within the same application.

Sorry. I wish I had better news for you.


Juan T. Llibre
ASP.NET MVP
ASPNETFAQ.COM : http://www.aspnetfaq.com
==================================
"Patrick Teas" <pa************@nospam.com> wrote in message
news:%2*****************@TK2MSFTNGP14.phx.gbl...
Hi.

I'm having the exact same problem as Nate.
My Virtual Directory has an application name, MyAppName, with a starting point that is <Default
Web Site>\MyAppName.
I have removed the application name and re-created, yet it still has a starting point under
<Default Web Site>.
I need the url for the 1.1 site to be remain under the 2.0 site like it is now.
So how do I get my virtual directory to behave like an application of it's own, yet still be
accessed at the url http://myTopLevel2.0Site/my1.1site?

Thanks for the help.

Patrick Teas
"Juan T. Llibre" <no***********@nowhere.com> wrote in message
news:%2***************@TK2MSFTNGP15.phx.gbl...
re:
Why does the 1.1 application care what is in the web.config file of the 2.0
application? Is there some further way to seperate the two?


You need to understand the difference between a Virtual Directory and an Application.

A Virtual Directory will inherit from the Application which it's a Virtual Directory of.
It makes sense that 2.0 web.config settings create problems for a 1.1 App.

An Application stands alone and does not inherit from any other Application.

Try making your 1.1 Virtual Directory an Application.

You might need to implement session-sharing between them
if you are using session state for critical application data.

Juan T. Llibre
ASP.NET MVP
ASPNETFAQ.COM : http://www.aspnetfaq.com
==================================
"Nate" <co*******@noemail.noemail> wrote in message
news:55**********************************@microsof t.com...
Your understanding of my situation is not correct. My site is layed out like
the diagram below.

Web Sites
--ABC Site (built in and configured to use 2.0.xxxx in App Pool 1)
----A Virtual Directory (built and configured to use 1.1.xxxx in App Pool 2)

When the virtual directoy application built in 1.1 starts it throws a parse
error if there are any nodes in the web.config file of the ABC Site 2.0 site
that are specific to ASP.NET 2.0 (e.g. <connectionStrings/> or <urlMappings
enabled="true">).

I have tried running the 1.1 application under 2.0 but it does not work.

Why does the 1.1 application care what is in the web.config file of the 2.0
application? Is there some further way to seperate the two?



Feb 9 '06 #7
Yuan,

further testing leads me to believe that it's impossible to run a 1.1 app as a subapp
of a 2.0 app, or as an independent 1.1 App, as long as it's physically under a 2.0 App.

Read the details in my last post in this same thread.

I deleted my test files, but can repro them easily.

Juan T. Llibre
ASP.NET MVP
ASPNETFAQ.COM : http://www.aspnetfaq.com
==================================
""Yuan Ren[MSFT]"" <v-****@microsoft.com> wrote in message
news:OT**************@TK2MSFTNGXA01.phx.gbl...
Hi Nate,

Thanks for your reply!

I'm sorry for misunderstood the current issue. As Juan mentioned, the
application is different of the virtual directory. So you should create the
application for the ASP.NET 1.1 application in IIS. I have performed the
test and there is no error has been encountered.

Regards,

Yuan Ren [MSFT]
Microsoft Online Support

Feb 9 '06 #8
Hi Juan,

Thanks very much for your investigation.

So, now that we have proven that my current implementation will not work,
can you suggest a different way of achieving the url addressing that appears
below the default web site, yet refers to an application that is not
actually a child of the default web site?

What I need is a way to access a page like
www.myweb.com/mySubWeb/mypage.aspx while mySubWeb is not actually a child
site under myWeb.com in IIS, so it can be configured as it's own application
with it's own framework version.

Thanks for the help.

Patrick Teas

"Juan T. Llibre" <no***********@nowhere.com> wrote in message
news:Ou**************@tk2msftngp13.phx.gbl...
I must admit I was mistaken.

I just reproduced your structure ( a 1.1 app running under a 2.0 app )
and have found that, indeed, the 1.1 app balks at 2.0-only web.config
configuration entries in the 2.0's app's web.config.

Now, I realize that we may have been trying to ignore Application
boundaries.

An Application is defined as all the files in a subdirectory which has
been marked as an Application...and all the files in all subdirectories
of the Application's root.

Anything which is included under the application's subdirectory *must* run
under
that application's "rules", and apparently that includes the target .Net
Framework.

Testing further, I found that after I created the VS 2003 project and
closed it,
I couldn't open it again, getting an "http 500 internal error" message.

Moreover, the 1.1 app ran OK...as long as I didn't assign it to a 1.1
AppPool.

As soon as I assigned it to a 1.1 AppPool, that caused an "Application
Unavailable"
error message in all my 2.0 apps, which can only mean that it's running
under 2.0 rules,
even though the ASP.NET tab is marked as targeting the 1.1 Framework.

Bottom line : you can't mix .Net Frameworks within the same application.

Sorry. I wish I had better news for you.


Juan T. Llibre
ASP.NET MVP
ASPNETFAQ.COM : http://www.aspnetfaq.com
==================================
"Patrick Teas" <pa************@nospam.com> wrote in message
news:%2*****************@TK2MSFTNGP14.phx.gbl...
Hi.

I'm having the exact same problem as Nate.
My Virtual Directory has an application name, MyAppName, with a starting
point that is <Default Web Site>\MyAppName.
I have removed the application name and re-created, yet it still has a
starting point under <Default Web Site>.
I need the url for the 1.1 site to be remain under the 2.0 site like it
is now.
So how do I get my virtual directory to behave like an application of
it's own, yet still be accessed at the url
http://myTopLevel2.0Site/my1.1site?

Thanks for the help.

Patrick Teas
"Juan T. Llibre" <no***********@nowhere.com> wrote in message
news:%2***************@TK2MSFTNGP15.phx.gbl...
re:
Why does the 1.1 application care what is in the web.config file of the
2.0
application? Is there some further way to seperate the two?

You need to understand the difference between a Virtual Directory and an
Application.

A Virtual Directory will inherit from the Application which it's a
Virtual Directory of.
It makes sense that 2.0 web.config settings create problems for a 1.1
App.

An Application stands alone and does not inherit from any other
Application.

Try making your 1.1 Virtual Directory an Application.

You might need to implement session-sharing between them
if you are using session state for critical application data.

Juan T. Llibre
ASP.NET MVP
ASPNETFAQ.COM : http://www.aspnetfaq.com
==================================
"Nate" <co*******@noemail.noemail> wrote in message
news:55**********************************@microsof t.com...
Your understanding of my situation is not correct. My site is layed out
like
the diagram below.

Web Sites
--ABC Site (built in and configured to use 2.0.xxxx in App Pool 1)
----A Virtual Directory (built and configured to use 1.1.xxxx in App
Pool 2)

When the virtual directoy application built in 1.1 starts it throws a
parse
error if there are any nodes in the web.config file of the ABC Site 2.0
site
that are specific to ASP.NET 2.0 (e.g. <connectionStrings/> or
<urlMappings
enabled="true">).

I have tried running the 1.1 application under 2.0 but it does not
work.

Why does the 1.1 application care what is in the web.config file of the
2.0
application? Is there some further way to seperate the two?



Feb 10 '06 #9

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Mark | last post by:
Aside from a virtual directory sharing memory with other sites, are there security issues caused by using virtual directories? I have a collegue that claims that a hacker could screw around with...
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...
2
by: McGeeky | last post by:
Are there any best practices on releasing updates of an ASP.Net application to a virtual directory in a production environment? E.g. is it okay to simply copy over changes to ASP.Net pages in to...
0
by: Patrick Teas | last post by:
Hello. I have a default web site running in a separate application pool with ASP.Net 2.0 active. Under this default web site, I have a virtual directory running in a separate application pool...
8
by: Rak | last post by:
I am looking for a way to programatically change the .net version of the virtual directory that I am creating within a aspx page. As part of creating a new customer in my asp.net 2 application, it...
2
by: tshad | last post by:
I am trying to use my IIS web server on my local machine for testing my web site. The problem is that periodically it will not use the virtual directory for the root. This happens for my...
3
by: MarkusJNZ | last post by:
Hi, I have two different applications running on 2003 both in two different vitrual directories. One application runs on the .NET framework 1.1 whilst the other runs on 2.0. If I change the...
6
by: zissop | last post by:
Hello I have a strange situation with my ASP.Net applications running on Windows 2003 Server x64. As soon as they get instantiated (a visitor hits a page). the virtual memory they allocate goes to...
1
by: =?Utf-8?B?YW5raXQuc3Jp?= | last post by:
How can we Create or Delete a File on a Virtual Directory from asp.net ? The situation is I want the Application to Read and Write a Certain File on Virtual directory and when I do it from File...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...

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.