Nested ASP.NET "Applications"

A

Alex Maghen

I want to be able to place ASP.NET applications inside each other (nested).
The idea would be that I want to be able to have a docroot that contains the
normal Web.config and App_Code directory, etc.

But then, under that docroot, I'd like to be able to have the following:
1. Some kinf of ability to refer to paths to objects using the "~" notation
- or something like it, but being able to decide wheher I want to reference
the actual docroot (all the way "up" at the top) or the root of my
application. I need the ability to reference *both*. Can I do that?

2. I also need to be able to have App_Code directories in the
"sub-application" but still have access to the App_Code in the top-level
docroot.

I guess that covers it. Can these things be done? If so, point me to how?

Thanks.

Alex
 
M

Mark Fitzpatrick

The closest thing to do this would be the Web Client Software Factory, a
primary component of which is called the Composite Web Application. This
guidance package helps to create a root Shell application that you can use
to plug-in other modular applications into directories under it.

http://www.codeplex.com/websf/

Hope this helps,
Mark Fitzpatrick
Microsoft MVP- Expression
 
S

Steven Cheng

Hi Alex,

As for make parent and child apps as separated application, do you mean
that both of them are a standard ASP.NET application? If so, that means you
need to make both of the two virtual directorys in IIS as "Application".

However, each ASP.NET application will has their own boundary and they can
not share many states and data. For example, Session, ApplicationState,
Cache are not shared. Also, App_XX folder, ~/ path are also not shared
since they're of different application domain. I think you may double
check on this to see whether such configuration really meet your
requirement.

Sincerely,

Steven Cheng

Microsoft MSDN Online Support Lead


This posting is provided "AS IS" with no warranties, and confers no rights.


--------------------
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,770
Messages
2,569,584
Members
45,077
Latest member
SangMoor21

Latest Threads

Top