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

Error using Microsoft application cache block

Hi all,

I'm using Microsoft Applications cache block in my web application. It
worked fine for sometime then suddenly it is raising the following error:

Message: "Can't validate the current data item. Maybe it was altered."
Source: "Microsoft.ApplicationBlocks.Cache"
StackTrace: "at
Microsoft.ApplicationBlocks.Cache.DataProtectionMa nager.RemoveMAC(Byte[]
binaryMacValue) in
C:\Inetpub\wwwroot\myApp\ApplicationBuildingBlocks \Microsoft.ApplicationBlocks.Cache\DataProtectionM anager.vb:line 260
at
Microsoft.ApplicationBlocks.Cache.Storages.MmfCach eStorage.GetData(String
key) in
C:\Inetpub\wwwroot\myApp\ApplicationBuildingBlocks \Microsoft.ApplicationBlocks.Cache\StorageImplemen tations\MmfCacheStorage.vb:line 447
at Microsoft.ApplicationBlocks.Cache.CacheManager.Get Data(String key) in
C:\Inetpub\wwwroot\myApp\ApplicationBuildingBlocks \Microsoft.ApplicationBlocks.Cache\CacheManager.vb :line 310
at Microsoft.ApplicationBlocks.Cache.CacheManager.get _Item(String key) in
C:\Inetpub\wwwroot\myApp\ApplicationBuildingBlocks \Microsoft.ApplicationBlocks.Cache\CacheManager.vb :line 128

For storage location i'm using mmfcacheStorage
The message shows that data item is altered but it is not altered and i'm
using the following code.

Dim cacheCountry As CacheManager = CacheManager.GetCacheManager()

If cacheCountry.Item("countryCache") Is Nothing Then 'Error line'
' Add data into cache'
cacheCountry.Add("countryCache", countries)
else
'Assign cache data to a varible
getCountries = CType(cacheCountry.Item("countryCache"), countryClass)
End if

Is there someting wrong with code?

looking forward to your reply

Regards
Aamir
Nov 18 '05 #1
0 1036

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

Similar topics

7
by: Paul | last post by:
I thought this is more of an IE issue but i've had no joy on that group perhaps somebody here will have a clue. If i click a link to a web page embedded in Excel (97 OR 2000) i get the standard...
6
by: Stanley | last post by:
has anyone managed to use cache application block in a web application? thanks stanley
0
by: Matthew | last post by:
Hi all, I am attempting to cache a loaded XslTransform object using the cache application block. I get "System.Xsl.XslTransform.....is not marked as serializable" I guess the cache appl block...
4
by: Ersin Gençtürk | last post by:
Server : WEB System.Web.HttpUnhandledException: Exception of type System.Web.HttpUnhandledException was thrown. ---> System.Web.HttpException: The View State is invalid for this page and might be...
1
by: Philip Townsend | last post by:
I am using the Microsoft Application Data Block and am getting the following error when trying to return a DataSet. Object must implement IConvertible Here is the code where the error occurs:...
5
by: Assimalyst | last post by:
Hi, I have a login/logout application, which works fine using sessions. But when the user logs out, they can navigate back to the previous page usng the back button, apparently a perculiar querk...
0
by: Asief | last post by:
Hi All, I am using Microsoft UIP 2.0 Application Block for my web application. I have come across with the following issue and found out how to avoid it. Wanted to know better approaches exists...
0
by: Benny Ng | last post by:
Hi,All, When i deploy Enterprise library with my application ,i used XCOPY to deploy it into my test server. But when application runs, shown some error related registry. (But actually I haven't...
6
by: p175 | last post by:
2006-08-14-17.46.13.656000-240 I1472H436 LEVEL: Warning PID : 1452 TID : 336 PROC : db2syscs.exe INSTANCE: DB2 NODE : 000 DB : SQ4V6...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you

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.