473,394 Members | 1,693 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,394 software developers and data experts.

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

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/For...p-net/200612/1

Dec 11 '06 #1
2 1629
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)

Albert wrote:
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
Dec 11 '06 #2
I see, ok thanks,

Although Caching in System.Web (ASP.NET) web project saves cache also after a
process is ended (a browser is closed) - I am right?

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

Message posted via DotNetMonster.com
http://www.dotnetmonster.com/Uwe/For...p-net/200612/1

Dec 11 '06 #3

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

Similar topics

1
by: Mike Chamberlain | last post by:
Hi all. I'm trying to extend the Microsoft Enterprise Library Data Access Application Block (http://msdn.microsoft.com/library/en-us/dnpag2/html/daab.asp?frame=true) to work with a Borland...
0
by: keyway | last post by:
We have recently implemented (enterprise library) data application blocks to VB.NET console applications - very nice. The console apps read an app.config file, which in turn communicates w/ a...
0
by: SoYouKnowBrig | last post by:
Hi All, I am using Microsoft.ApplicationBlocks.Cache.CacheManager to persist a System.Data.Dataset object. This Dataset object has a DataTable that is created from an existing DataTable using...
3
by: veera sekhar kota | last post by:
hi, im seriously looking for right answer .... We are developing windows application in c#. I implemented DAAB(Data Access Application Block) 2.0 in our application. One of the senior asked...
0
by: veera sekhar kota | last post by:
im seriously looking for right answer .... We are developing windows application in c#. I implemented DAAB(Data Access Application Block) 2.0 in our application. One of the senior asked me to...
1
by: Ollie Riches | last post by:
I am trying to use asynchronous logging using MSMQ and I have configured the properties as defined in the help (see below) I don't understand where the property 'MsmqPath' is in the app.config for...
0
by: Erick | last post by:
I'm trying to create a single DLL which all developers in our organisation will reference. I want to place inside it the Microsoft Enterprise Libraries. And expose them out through the DLL. On...
0
by: escher4096 | last post by:
Hi There, I am attempting to figure out how to do inter-cache dependencies (cache item 1 depends on cache item 2, etc) with the Enterprise Library Caching block and am stumped. Does any one have...
0
by: adeelansari | last post by:
Any one can send me the code sample of Cache Application Block of Enterprise Library using Database storage , i successfully used the NullBackingStore , Please send me some sort of idea or code so...
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: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
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
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
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...

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.