473,657 Members | 2,270 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 connectionstrin gs 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 2528
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. <connectionStri ngs/> 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*******@noem ail.noemail> wrote in message
news:55******** *************** ***********@mic rosoft.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. <connectionStri ngs/> 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******** *******@TK2MSFT NGP15.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*******@noem ail.noemail> wrote in message
news:55******** *************** ***********@mic rosoft.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. <connectionStri ngs/> 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...a nd 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 "Applicatio n 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******** *********@TK2MS FTNGP14.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******** *******@TK2MSFT NGP15.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*******@noem ail.noemail> wrote in message
news:55******** *************** ***********@mic rosoft.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. <connectionStri ngs/> 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******** ******@TK2MSFTN GXA01.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******** ******@tk2msftn gp13.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...a nd 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 "Applicatio n
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******** *********@TK2MS FTNGP14.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******** *******@TK2MSFT NGP15.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*******@noem ail.noemail> wrote in message
news:55******** *************** ***********@mic rosoft.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. <connectionStri ngs/> 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
1124
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 your code by executing code for one project (virtual directory 2) from a different virtual directory 1. www.oursite.com/virtualdirectory1/virtualdirectory2/somepageinvirtualdirecto ry2.aspx True or false? Thanks in advance.
8
3383
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 it up as C:\domains\appA. Locally, my IIS root points to C:\domains. I don't point it to C:\domains\appA since if I have an appB under C:\domains I wouldn't be able to get to it. So to access it via my browser I go to localhost/appA.
2
1112
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 the virtual directory whilst IIS is still running or should IIS be stopped first? -- McGeeky http://mcgeeky.blogspot.com
0
1022
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 with ASP.Net 1.1 active. When I access any page in the virtual directory I get an error: Unrecognized configuration section 'xhtmlConformance' This xhtmlConformance tag is in up in the default web site's web.config, not in the virtual directory's...
8
7766
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 automatically creates a virtual directory and configures it. I am using the DirectoryServices.DirectoryEntry class in C# to do this. I am unable to set the .Net version of the virtual directory from 1.1 to version 2. All searches led me to the...
2
2152
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 logon page, for instance. If I have the following Virtual Directory: Staff.
3
3311
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 framework version (via IIS admin ASP.NET tab) for either application (Initally the 2.0 app was recognised by IIS as 1.1) does this force IIS to restart? ?? Any links to further reading would be good.
6
10719
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 something around 5GB! I can't explain the reason. I even made a very simple page (no Web.config, no global.asax, just text output) and it behaves the same. The applications uses 3 tier architecture with all (IIS, component, etc) running at 64...
1
2729
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 Stream it gives me an error saying Access Denied and I cannot add the IIS_WPG User to the Permission group to that Directory as that would not be a best way to do as it would void the security parameters, is there a solution or recomendations on...
0
8407
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8739
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
8612
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7347
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6175
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
4171
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4329
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
1969
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
2
1732
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.