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 / March 2005

Tip: Looking for answers? Try searching our database.

Use in non web applications?

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
RT - 24 Mar 2005 17:11 GMT
Can this ASP.NET cache be used in non asp.net
applications?

So for example, if I have a console application or a .NET
service, can I use ASP.NET cache in those apps?

I tried to link in the System.Web dll and use
System.Web.Caching in a simple console application,
however I see an exception in System.Web.dll.

Thanks in advance,
RT
Brock Allen - 24 Mar 2005 19:26 GMT
Yes it can. From my recollection all you need to do is access the Cache via
System.Web.HttpRuntime.Cache.

-Brock
DevelopMentor
http://staff.develop.com/ballen

> Can this ASP.NET cache be used in non asp.net applications?
>
[quoted text clipped - 7 lines]
> Thanks in advance,
> RT
Ian Suttle - 25 Mar 2005 01:31 GMT
In addition to Brock's suggestion...

If the application that you are referring to does not reside on the web
server, say a client workstation, you could have a web service or use
remoting and have the web server return the values to you.

Ian Suttle
http://www.IanSuttle.com

> Yes it can. From my recollection all you need to do is access the Cache via
> System.Web.HttpRuntime.Cache.
[quoted text clipped - 14 lines]
> > Thanks in advance,
> > RT

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.