473,769 Members | 1,618 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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.Appl icationBlocks.C ache"
StackTrace: "at
Microsoft.Appli cationBlocks.Ca che.DataProtect ionManager.Remo veMAC(Byte[]
binaryMacValue) in
C:\Inetpub\wwwr oot\myApp\Appli cationBuildingB locks\Microsoft .ApplicationBlo cks.Cache\DataP rotectionManage r.vb:line 260
at
Microsoft.Appli cationBlocks.Ca che.Storages.Mm fCacheStorage.G etData(String
key) in
C:\Inetpub\wwwr oot\myApp\Appli cationBuildingB locks\Microsoft .ApplicationBlo cks.Cache\Stora geImplementatio ns\MmfCacheStor age.vb:line 447
at Microsoft.Appli cationBlocks.Ca che.CacheManage r.GetData(Strin g key) in
C:\Inetpub\wwwr oot\myApp\Appli cationBuildingB locks\Microsoft .ApplicationBlo cks.Cache\Cache Manager.vb:line 310
at Microsoft.Appli cationBlocks.Ca che.CacheManage r.get_Item(Stri ng key) in
C:\Inetpub\wwwr oot\myApp\Appli cationBuildingB locks\Microsoft .ApplicationBlo cks.Cache\Cache Manager.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.Ge tCacheManager()

If cacheCountry.It em("countryCach e") Is Nothing Then 'Error line'
' Add data into cache'
cacheCountry.Ad d("countryCache ", countries)
else
'Assign cache data to a varible
getCountries = CType(cacheCoun try.Item("count ryCache"), countryClass)
End if

Is there someting wrong with code?

looking forward to your reply

Regards
Aamir
Nov 18 '05 #1
0 1049

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

Similar topics

7
3061
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 error page displayed by IE (you know, the 'cannot find server or dns error' page). Turning off 'show friendly http error messages' alleviates this. (Unfortunately this is the Windows default setting!) Whats going on?!?!
6
4121
by: Stanley | last post by:
has anyone managed to use cache application block in a web application? thanks stanley
0
1406
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 uses serialization internally, but I am a little surprised that its impossible to cache these objects. Seems like the XmlDocument class would be the same. I see a few posts related to custom serialization and surrogates? is that the solution?
4
4044
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 corrupted. at System.Web.UI.Page.LoadPageStateFromPersistenceMedium() at System.Web.UI.Page.LoadPageViewState() at System.Web.UI.Page.ProcessRequestMain() --- End of inner exception stack trace --- at System.Web.UI.Page.HandleError(Exception e)...
1
1407
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: private DataSet getResults(string sd, string ed) { DataSet dsresults=new DataSet();
5
11934
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 of the cache. The following code should apparently rectify this <%@ Response.Expires = 0 %> <%@ Response.ExpiresAbsolute = Now() -1 %>
0
917
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 for this? Problem: When OpenNavigator is used with State Cache disabled, there was always error saying "object reference not set to instace of the object" in the GetPersistenceProviderSettings(string navigatorName) method of
0
2646
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 any method or component to wrote registry) After I used "InstallUtil" to registry Enterprise Library (those DLLs) to the deployment server, the application runs smoothly. Now I wonder why i need to registry those Enterprise Library DLLs into
6
9637
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 APPHDL : 0-9 APPID: *LOCAL.DB2.060814214011 AUTHID : DB2ADMIN FUNCTION: DB2 UDB, Self tuning memory manager, stmmEnforceMinSizeConstraints, probe:2089 MESSAGE : Unable to find donor to satisfy minSize constraint Does...
0
9589
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10211
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
9994
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9863
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8870
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
6673
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5447
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3958
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3561
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.