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

Sharing HttpCache Across AppDomains?



I have a web page that instances a .cs class (lets call it ClassX) in
a code-behind. ClassX performs some work and saves a result into
HttpRuntime.Cache.

I plan to move ClassX out of the web app binary assembly completely,
compile it into a discrete DLL in a new assembly. Then the original
web page code-behind would use Remoting to talk to ClassX.

1. Will ClassX be able to save anything in HttpRuntime.Cache at all?

2. Will the original web page be able to get things out of
HttpRuntime.Cache that ClassX places in it in the first place?
Thanks.

Nov 18 '05 #1
2 1344
The Cache is strictly per appdomain. I don't think it would be easy to
maintain an application that communicted implicitly by passing values
around in a cache.

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

On Thu, 09 Sep 2004 12:34:25 -0400, localhost <pr*******@cohort.ces>
wrote:


I have a web page that instances a .cs class (lets call it ClassX) in
a code-behind. ClassX performs some work and saves a result into
HttpRuntime.Cache.

I plan to move ClassX out of the web app binary assembly completely,
compile it into a discrete DLL in a new assembly. Then the original
web page code-behind would use Remoting to talk to ClassX.

1. Will ClassX be able to save anything in HttpRuntime.Cache at all?

2. Will the original web page be able to get things out of
HttpRuntime.Cache that ClassX places in it in the first place?
Thanks.


Nov 18 '05 #2
Hi Localhost,

As for this problem,I agree with Scott. Since the ASP.NET appliation is
application based and each application is restricted by appDomain boundary,
I think we'd better store the data all in the web appliaiton's cache. And
if you're calling a certain class object in aother appdomain via remoting,
you need to return the processed data from the remote object's proxy object
everytime so that we can store it in the web application's Cache.

Thanks.
Regards,

Steven Cheng
Microsoft Online Support

Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)

Nov 18 '05 #3

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

Similar topics

0
by: David Levine | last post by:
This may be an easy one (I hope so). The ultimate goal I have is to be able to use binding redirects that are specific to secondary appdomains, so that each appdomain can have a unique...
1
by: Simon Neve | last post by:
Hello, This question is related to sharing .Net projects across solutions and is reposted from the SourceSafe group. We have several different solutions and want to share common assemblies...
6
by: Sajid Saeed | last post by:
Hi All, I wuld like to know if there is any possibility of sharing a common class between different applications. i.e. if the two applications are running, they can share the class, and changes...
6
by: Stephen Walch | last post by:
Our application environment consists of three basic layers: 1. Third-party unmanaged DLLs that were written before the CLR was invented and maintain a significant amount of information (including...
8
by: Fred Mertz | last post by:
I'm working towards an MCTS cert and I'm having to learn a bunch of stuff that I doubt I'd stumble across on my own. One such feature of .NET is AppDomains; programatically creating new AppDomains...
0
by: kayakyakr | last post by:
I'm working with a set of experiments in a large system that is using AppDomains for isolation and wants to make a call out to an umanaged dll. The test dll has two methods, SetNumber(int num) and...
3
by: | last post by:
If this is simple, forgive my ignorance, but I'm coming from the CompactFramework where we don't use AppDomains. I did a fair bit of archive searching and couldn't find an answer and I got no...
2
by: hufman | last post by:
Hi. I need to use an object instance in 2 differnet AppDomains, meaning changing his fields and such... I tried to do it with Remoting but i couldn't find a way to refernce a specific instance...
2
by: Jeff Dege | last post by:
I'm working with a group that's been doing C++ coding for quite a long time, now, and in that environment we've pretty much worked out development practices that serve us well. We've been doing...
0
by: jeremyje | last post by:
I would like to create an application where I have many concurrent processes being managed by a monitoring process. Each process that is "managed" will be invoked from an assembly dll (think...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
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
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
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,...
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...

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.