Nested ASP.NET "Applications"

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • =?Utf-8?B?QWxleCBNYWdoZW4=?=

    Nested ASP.NET "Applications"

    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
  • Mark Fitzpatrick

    #2
    Re: Nested ASP.NET "Applicati ons"

    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.



    Hope this helps,
    Mark Fitzpatrick
    Microsoft MVP- Expression

    "Alex Maghen" <AlexMaghen@new sgroup.nospamwr ote in message
    news:68528951-674F-4139-9F63-A63AA565B476@mi crosoft.com...
    >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

    Comment

    • Steven Cheng

      #3
      RE: Nested ASP.NET &quot;Applicati ons&quot;

      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 "Applicatio n".

      However, each ASP.NET application will has their own boundary and they can
      not share many states and data. For example, Session, ApplicationStat e,
      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.


      --------------------
      >From: =?Utf-8?B?QWxleCBNYWd oZW4=?= <AlexMaghen@new sgroup.nospam>
      >Subject: Nested ASP.NET "Applicatio ns"
      >Date: Wed, 20 Feb 2008 10:26:00 -0800
      >
      >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
      >

      Comment

      Working...