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

multiple vitrual directories in one httpcontext

Hi,
I have two ASP.NET solutions in my website, located in two directories:

c:\projects\mainsite -- the main web site solution
c:\projects\newmodule -- a module I'm adding on solution

My web site's root is pointing to "c:\projects\mainsite", and I've
created a virtual directory called "newmodule" pointing to
"c:\projects\newmodule".

*** My goal is, I'd like to make it so that .aspx files within the
newmodule directory can access the HTTPContext of the mainsite.

In IIS settings, I've set the newmodule directory to be an application.
In this case, it seems to have its own HTTPContext separate to that of
the main site. If I remove the IIS Application designation from
newmodule and leave it just as a virtual directory, all its .aspx pages
give me a 404 when I try to bring them up in a browser.

Is it possible to have these two solutions share HTTPcontext? I realize
I could combine the solutions into a single directory with one bin
directory and web.config, but I need alternatives more this particular
problem. Thanks!
--Frank

Nov 19 '05 #1
1 1491
It might be easier to take a step back and say "how do I share state
across two applications on the same server?" - because this question
will have more workable options available. Possible answers include
cookies, web services, and common database tables.

You either have to be inside the same process or you can't share
context - it's application specific.

--
Scott
http://www.OdeToCode.com/blogs/scott/

On 3 Feb 2005 09:45:51 -0800, di**********@yahoo.com wrote:
Hi,
I have two ASP.NET solutions in my website, located in two directories:

c:\projects\mainsite -- the main web site solution
c:\projects\newmodule -- a module I'm adding on solution

My web site's root is pointing to "c:\projects\mainsite", and I've
created a virtual directory called "newmodule" pointing to
"c:\projects\newmodule".

*** My goal is, I'd like to make it so that .aspx files within the
newmodule directory can access the HTTPContext of the mainsite.

In IIS settings, I've set the newmodule directory to be an application.
In this case, it seems to have its own HTTPContext separate to that of
the main site. If I remove the IIS Application designation from
newmodule and leave it just as a virtual directory, all its .aspx pages
give me a 404 when I try to bring them up in a browser.

Is it possible to have these two solutions share HTTPcontext? I realize
I could combine the solutions into a single directory with one bin
directory and web.config, but I need alternatives more this particular
problem. Thanks!
--Frank


Nov 19 '05 #2

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

Similar topics

7
by: Evan Kontos | last post by:
I am using the window.open function to open a small window and I am using GET to get values back from that window. I want to be able to open another from the second window but I get an error...
13
by: David | last post by:
I have been working on trying to write a directory watcher service. One of the requirments is that it be able to watch multiple directories, not sub directories of one parent directory, but just...
5
by: BPearson | last post by:
Hello I would like to have several sites share a single web.config file. To accomplish this, I would point the root of these sites to the same folder. Is there any reason why I might not want to...
4
by: Grant Harmeyer | last post by:
How would I set up an httpHandler so that it would only apply to certain child directories of the application? I.E: <httpHandlers> <add verb="*" path="/files/*/*/*/*.aspx"...
5
by: Sammy | last post by:
On a Windows 2003 Server machine that has multiple IIS web sites, how does one control which web site the new web application gets created under? Thank you, Sammy
7
by: Matthias S. | last post by:
Hi, here is what I'm trying to do: I have a virtual directory called "WebApp". Under this one I've got 2 physical directories called "Customers" and "Admins". I implemented Forms-based...
0
by: Yogesh Pancholi | last post by:
For some unexplained reason, I am suddenly unable to browse to a virtual directory on my laptop. I have a number of sample websites to which I could happliy browse up until last week. As of Monday,...
6
by: Steven | last post by:
I have a problem with moving the backup of my database from machine to machine. The size is 17 Gig and my network keeps timing out when I try to ftp it from machine to machine. I have had the...
6
by: thomson | last post by:
Hi All, i do hae a solution in which i do have mulitple projects including Web Projects,, Depending on the functionality it gets redirected to different web projects and it is working fine, ...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
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...
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: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
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
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.