473,465 Members | 1,366 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

.NET 2.0 - System.Web.Caching.Cache not working through IIS

Hello,
I'm developping an app in ASP.NET 2.0 using VS.NET 2005, I'm using
System.Web.Caching.Cache to store various data between page calls (I've
tried : httpContext.Current.Cache/httpRuntime.Cache). When executing the app
using the webserver built in to VS.NET 2005 it works just fine, but when
using IIS 6 it doesn't.

I'm working on a P4 2.5Ghz, Windows XP Pro, IIS 6

The virtual directory I'm using in IIS is set to use ASP.NET version
2.0.50727
Can someone help me out and shed some light on this ?

Jurjen.
Aug 27 '06 #1
2 1858
Can you post sufficient working (or non-working) sample code for somebody to
repro this? Caching is handled at the ASP.NET worker process level which
process is present both in IIS and the Development WebServer, so IIS should
not be an issue.
Peter

--
Co-founder, Eggheadcafe.com developer portal:
http://www.eggheadcafe.com
UnBlog:
http://petesbloggerama.blogspot.com


"Jurjen de Groot" wrote:
Hello,
I'm developping an app in ASP.NET 2.0 using VS.NET 2005, I'm using
System.Web.Caching.Cache to store various data between page calls (I've
tried : httpContext.Current.Cache/httpRuntime.Cache). When executing the app
using the webserver built in to VS.NET 2005 it works just fine, but when
using IIS 6 it doesn't.

I'm working on a P4 2.5Ghz, Windows XP Pro, IIS 6

The virtual directory I'm using in IIS is set to use ASP.NET version
2.0.50727
Can someone help me out and shed some light on this ?

Jurjen.
Aug 27 '06 #2
Since I couldn't post my code due to the size and nature of it, I tried
reproducing this in a more simple scenario and couldn't reproduce this
behaviour, it turns out there was a flaw in one of my classes using the
cache. I'm not sure why this problem manifests itself differently when using
IIS as opposed to the VS Development server ...

Jurjen.

"Peter Bromberg [C# MVP]" <pb*******@yahoo.nospammin.comwrote in message
news:EA**********************************@microsof t.com...
Can you post sufficient working (or non-working) sample code for somebody
to
repro this? Caching is handled at the ASP.NET worker process level which
process is present both in IIS and the Development WebServer, so IIS
should
not be an issue.
Peter

--
Co-founder, Eggheadcafe.com developer portal:
http://www.eggheadcafe.com
UnBlog:
http://petesbloggerama.blogspot.com


"Jurjen de Groot" wrote:
>Hello,
I'm developping an app in ASP.NET 2.0 using VS.NET 2005, I'm using
System.Web.Caching.Cache to store various data between page calls (I've
tried : httpContext.Current.Cache/httpRuntime.Cache). When executing the
app
using the webserver built in to VS.NET 2005 it works just fine, but when
using IIS 6 it doesn't.

I'm working on a P4 2.5Ghz, Windows XP Pro, IIS 6

The virtual directory I'm using in IIS is set to use ASP.NET version
2.0.50727
Can someone help me out and shed some light on this ?

Jurjen.

Aug 28 '06 #3

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

Similar topics

9
by: Just D. | last post by:
All, Did anybody see this strange effect? The web application is written in C#, ASP.NET, SQL, T-SQL, etc. A pretty usual stuff, complicated enough, but works fine until... Here is a question....
2
by: Steve W | last post by:
I have an ASP.NET app that calls into some VB.NET components. It passes in the current application's cache (HttpContext.Current.Cache). These VB.NET components also get called by a non-ASP.NET...
5
by: Raj | last post by:
What is the purpose of file system caching while creating a tablespace? Memory on the test server gets used up pretty quickly after a user executes a complex query(database is already activated),...
6
by: Rolf Welskes | last post by:
Hello, I want to partial cache by using a UserControl. Now I have a file dependency. In msdn I see it is not possible to do it the same way as in a page. The only information is to create a...
4
by: Harry Haller | last post by:
What's wrong with this: Error 3 'System.Web.Caching.Cache' is a 'type', which is not valid in the given context public List<AssetSummaryGetAssetSummary() { return...
0
by: itfetish | last post by:
We have a web parts intranet at our office here I have been working on. I have been trying to create a way of getting our OCE TDS 600 plotter queue to be a web part on the page, seeing as their...
12
by: =?Utf-8?B?RGF2ZQ==?= | last post by:
I'm using ASP.Net with an UpdatePanel. When the screen is exercised via a Web Test, the Web Test shows that the AJAX scripts are downloaded for every partial post back. My impression was that...
2
by: Peter | last post by:
Hi The documentation for System.Web.Caching.Cache states that it is "thread safe". Does this mean that if I access System.Web.Caching.Cache from several places in my application access to the...
2
by: Ken Fine | last post by:
I have a question about ASP.NET output caching. I want to use screen scraping as a temporary hack to pull in some complex Classic ASP-rendered content into some ASP.NET pages: protected String...
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
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,...
0
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...
1
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
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...

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.