PC Review


Reply
Thread Tools Rate Thread

Cache is not available in ASP.NET

 
 
Marko
Guest
Posts: n/a
 
      6th Feb 2007
I have some code which put DataSet in Cache. But I have run time error
"Cache is not available". This is my code:

dsObject = Cache("Translate")
If dsObject Is Nothing Then
odbConn = New
OleDbConnection("Provider=Microsoft.Jet.OLEDB.4.0;data source=" & Putanja)

SQL = "SELECT * FROM Translate_text WHERE ID='" & Word & "'"

odbAdapt = New OleDbDataAdapter(SQL, odbConn)
dsObject = New DataSet
odbAdapt.Fill(dsObject)
Cache.Insert("Translate", dsObject)
End If
dtObject = dsObject.Tables(0)

How to fix this problem? Do I need to change something in Windows or IIS or
mybe I need to write some aditional code?

--
FREE Anonymus SMS:
http://theSMSzone.com/?ref=Mertojak


 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
contactcoll.cache - CACHE File saved on USB hard drive. moonraker Windows XP General 1 16th Nov 2009 05:53 AM
Extending the size of the temp. internet file cache, and offline webpage cache. Dave Windows XP Performance 1 29th Sep 2004 03:54 PM
How Do I clear the Disk Cache (Virtual Cache) in Windows XP ? Romy Sreedharan Microsoft C# .NET 2 22nd Sep 2004 05:31 PM
External USB Hard-Drive - USB v1.0 or v2.0? - 5,400rpm or 7,200rpm? - 2MB cache or 8MB cache? Wayne Youngman Storage Devices 16 8th Jan 2004 11:40 PM
Re: advice for Maxtor 120GB please. Do I choose 2MB cache or 8 MB cache ???? Nick Computer Hardware 0 23rd Jun 2003 09:38 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 09:10 PM.