Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / ASP.NET / Caching / September 2003

Tip: Looking for answers? Try searching our database.

Cache items disappearing/reappearing again...

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Nathan Baulch - 18 Sep 2003 09:40 GMT
I am using HttpContext.Current.Cache to store some values in a web service
method.
I have a page in the same web application that simply dumps the contents of
Page.Cache to the screen.

Why is it that every time I refresh the dump page, different items appear?
Nobody is using the application or calling any web services except me.
What's even more mysterious, sometimes items that disappeared hours ago come
back again!

I've tried it on two machines, both running framework 1.1.
Everything works as you would expect on an XP Pro machine running IIS 5.1.
Once I started testing on a 2k3 server machine running IIS 6, the Cache
started hidding items and bringing them back randomly.

This problem is very frustrating. Any advice would be great.

Nathan
Nathan Baulch - 19 Sep 2003 01:15 GMT
> I am using HttpContext.Current.Cache to store some values in a web
> service method.
[quoted text clipped - 10 lines]
> 5.1. Once I started testing on a 2k3 server machine running IIS 6,
> the Cache started hidding items and bringing them back randomly.

Solution: Turn application pooling off.

IIS6 seems to default to heavier pooling that IIS5. Unfortunately cache is
specific to the thread that is serving the application and thus you should
never rely on the cache as a means of passing data around.

Rate this thread:







Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.