CacheManager in Enterprise Library doesn't save cache in console application

A

Albert

VS05, C#, console application, + MS Enterprise Library
===================

Hi, I am trying to cache an XmlSchemaSet. The trouble is I want to do this in
a Non HttpContext - in a console application.

I've installed the Enterprise Library, added the relevant references, set the
configuration by the book (tested both with inMemory and DB settings).
The caching doesn't seem to survive over the end of the process.

I mean, I add an item to the cache, and i see it fine. But if i run the
application again, the cache is empty.

Help appreciated,
Thanks, Albert

--
Albert Benatov
Skype: abentov
http://albertbenatov.com

Message posted via DotNetMonster.com
http://www.dotnetmonster.com/Uwe/Forums.aspx/asp-net/200612/1
 
B

bruce barker

as caching works by storing objects in a static variable in the
appdomain. when your console app exits, the cache is lost.

-- bruce (sqlwork.com)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,990
Messages
2,570,211
Members
46,796
Latest member
SteveBreed

Latest Threads

Top