473,769 Members | 2,100 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Telerik & "Validation of viewstate MAC failed."

hello,

when my page attempts a Telerik RadGrid row insert (AJAX enabled) my
page throws this exception:

Validation of viewstate MAC failed. If this application is hosted by a
Web Farm or cluster, ensure that <machineKeyconf iguration specifies
the same validationKey and validation algorithm. AutoGenerate cannot
be used in a cluster.

....my host, www.DataPacket.net, says the site is not on a webfarm, and
that this error is due to my site exceeding the Application Pool
resource limits set for it (site is on a shared hosting environment).

can anyone confirm that this is possible? i dont know much about APs,
but i am surprised that one page w/ one RadGrid thats attempting to
insert one row via AJAX could cause my site to exceed CPU/RAM
resource.

any thoughts?
thanks!
sm =
Apr 9 '08 #1
5 3331
It's possible but not that likely unless there is a whopper of a viewstate
field in the page. More likely, the RAD control is modifying the viewstate in
such a way that it fails the MAC check. You can disable this check in the
web.config. I think it's <pages enableViewState MAC = "false" /or something
like that.
-- Peter
Site: http://www.eggheadcafe.com
UnBlog: http://petesbloggerama.blogspot.com
Short Urls & more: http://ittyurl.net
"SpaceMarin e" wrote:
hello,

when my page attempts a Telerik RadGrid row insert (AJAX enabled) my
page throws this exception:

Validation of viewstate MAC failed. If this application is hosted by a
Web Farm or cluster, ensure that <machineKeyconf iguration specifies
the same validationKey and validation algorithm. AutoGenerate cannot
be used in a cluster.

....my host, www.DataPacket.net, says the site is not on a webfarm, and
that this error is due to my site exceeding the Application Pool
resource limits set for it (site is on a shared hosting environment).

can anyone confirm that this is possible? i dont know much about APs,
but i am surprised that one page w/ one RadGrid thats attempting to
insert one row via AJAX could cause my site to exceed CPU/RAM
resource.

any thoughts?
thanks!
sm =
Apr 9 '08 #2
On Apr 9, 12:30*pm, Peter Bromberg [C# MVP]
<pbromb...@yaho o.NoSpamMaam.co mwrote:
It's possible but not that likely unless there is a whopper of a viewstate
field in the page. More likely, the RAD control is modifying the viewstatein
such a way that it fails the MAC check. You can disable this check in the
web.config. I think it's <pages enableViewState MAC = "false" /or something
like that.
unfortunately that property is already false -- false is the default.

i know Telerik's RadGrid is pretty spiffy and uses a large
viewstate... but how would the viewstate be connected to the App Pool
for my site? i dont usually work w/ shared sites, so im not sure.

thanks,
matt
Apr 9 '08 #3
On Apr 9, 3:20*pm, SpaceMarine <spacemar...@ma ilinator.comwro te:
i know Telerik's RadGrid is pretty spiffy and uses a large
viewstate... but how would the viewstate be connected to the App Pool
btw i isolated the viewstate and looked at its size -- 8k. sound large
enough to jack w/ my app pool?
sm
Apr 9 '08 #4
viewstate is an encrypted hidden field, client code does not touch it.
the error means the server can not decrypt it. there are two causes:

1) the data was changed
2) the mac key has changed

if the mac key is not specified in the web config, it is generated at
startup. if your app pool is recycling (check the log) the key can change.

-- bruce (sqlwork.com)

SpaceMarine wrote:
hello,

when my page attempts a Telerik RadGrid row insert (AJAX enabled) my
page throws this exception:

Validation of viewstate MAC failed. If this application is hosted by a
Web Farm or cluster, ensure that <machineKeyconf iguration specifies
the same validationKey and validation algorithm. AutoGenerate cannot
be used in a cluster.

...my host, www.DataPacket.net, says the site is not on a webfarm, and
that this error is due to my site exceeding the Application Pool
resource limits set for it (site is on a shared hosting environment).

can anyone confirm that this is possible? i dont know much about APs,
but i am surprised that one page w/ one RadGrid thats attempting to
insert one row via AJAX could cause my site to exceed CPU/RAM
resource.

any thoughts?
thanks!
sm =
Apr 10 '08 #5
On Apr 9, 8:06*pm, bruce barker <nos...@nospam. comwrote:
viewstate is an encrypted hidden field, client code does not touch it.
the error means the server can not decrypt it. there are two causes:

1) the data was changed
2) the mac key has changed

if the mac key is not specified in the web config, it is generated at
startup. if your app pool is recycling (check the log) the key can change.
not sure why youre referencing client code... im not concerned w/
clientside code. im concerend w/ what my hosting company is telling
me: that this error is due to my site pegging its app pool; which i
find hard to believe because its a private site w/ a single user (me),
doing a single thing (using this control w/ the 8k viewstate).

they claim their servers are config'ed properly.
sm
Apr 10 '08 #6

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

Similar topics

2
20534
by: Eric Osman | last post by:
Hi, I'm looking for a javascript function that will convert input such as this: <CLUB Code=" into this: &lt;CLUB Code=&quot;
4
14803
by: barney | last post by:
Hello, I' m using .NET System.Xml.XmlDOcument. When I do the following: XmlDocument xml = new XmlDocument(); xml.Load("blah"); .... xml.Save("blub"); I've got the problem that the following expression: .... snip ...
4
8072
by: dm_dal | last post by:
Is there a know issue surrounding the CheckBoxList control and it's viewstate? When my control is created, it's ListItems are checked as needed, but on a postback, they loose their Selected status. David
5
3447
by: martin | last post by:
Hi, I would be extremly grateful for some help on producing an xml fragemt. The fragment that I wish to produce should look like this <Addresses> <Address>&qout;Somebody's Name&quot; &lt;me@mydomain.com&gt;</Address> </Addresses>
1
3372
by: Light | last post by:
Re, I'm having 2 problems with the Telerik trial controls. I'm using the latest release. I'm using 2005 studio and most of the controls show up properly in the designer but the RadMenu does not. It says "Error Creating Control" and then a ton of errors. This occurs both when I use it and in the examples but it does render properly when built. If I drag/drop the control then it shows up properly but when I apply a theme and then...
1
1801
by: aaaaaa | last post by:
running a crystal (v10) reporting app on a virtual web server and getting the "Validation of viewstate MAC failed...." error when opening the crystal viewer. Any help please!!!
14
5935
by: Arne | last post by:
A lot of Firefox users I know, says they have problems with validation where the ampersand sign has to be written as &amp; to be valid. I don't have Firefox my self and don't wont to install it only because of this, so I hope some of you gurus can enlighten me with this :) In what circumstances can the "&amp;" in the source code be involuntary changed to "&" by a browser when or other software, when editing and uploading the file to the web...
1
1127
by: Kyle K. | last post by:
Environment: Visual Studio 2005 + WinXP Pro SP2 + .NET 2.0 I am new to creating user controls and have a (hopefully) simple question. I have a series of personal questions (first/last name, address, phone number, etc.) that is repeated on several different pages. I pulled these question out into a UserControl to make it easier to maintain, etc. One problem... How do I specify validation logic for the controls contained in the...
6
2936
by: sck10 | last post by:
Hello, I have applications that produce the following error when they have been open to long without activity. Is there any way to force a re-load of the page or go to another page if the page has expired instead of getting the error? Thanks,
0
9579
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
10208
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
9987
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
9857
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
8867
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...
1
7404
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6662
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();...
1
3952
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
3
2812
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.