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

Home Posts Topics Members FAQ

Validation of viewstate MAC failed - only on windows CE device

This is odd behavior. In my aspnet 2.0 app (basic app, nothing out of the
ordinary here), if I am using my iPAQ handheld device and I hit the refresh
button on my page, I get an error "Validation of viewstate MAC failed. If
this application is hosted by a Web Farm or cluster, ensure that
<machineKey> configuration specifies the same validationKey and validation
algorithm. AutoGenerate cannot be used in a cluster."

The interesting thing is I can not reproduce this using IE or Opera on my
desktop. The user agent reported by my iPAQ browser is "Mozilla/4.0
(compatible; MSIE 4.01; Windows CE; PPC; 240x320)"

I also tried adding the following machineKey to my macine.config file, which
didn't help:

<machineKey
validationKey=" 9CCEC30E6D16956 36BC548918FC190 EAC06714B6B44CC A2168B7DB439EC6 684025E84514A82 98545E74B015E22 B69B1C3DD845F23 7BE470FC5650182 F46B9111"
decryptionKey=" 126EA9F8AD60164 92548AA59BAEB5D 8012B947145126A 19A"
validation="SHA 1"/>

Any ideas?
Jun 15 '06 #1
2 1570
Hi,

you might want to report this on:
http://forums.asp.net/thread/1173230.aspx
--
Teemu Keiski
ASP.NET MVP, AspInsider
Finland, EU
http://blogs.aspadvice.com/joteke

"Jeremy Chapman" <no****@please. com> wrote in message
news:eM******** ******@TK2MSFTN GP03.phx.gbl...
This is odd behavior. In my aspnet 2.0 app (basic app, nothing out of the
ordinary here), if I am using my iPAQ handheld device and I hit the
refresh button on my page, I get an error "Validation of viewstate MAC
failed. If this application is hosted by a Web Farm or cluster, ensure
that <machineKey> configuration specifies the same validationKey and
validation algorithm. AutoGenerate cannot be used in a cluster."

The interesting thing is I can not reproduce this using IE or Opera on my
desktop. The user agent reported by my iPAQ browser is "Mozilla/4.0
(compatible; MSIE 4.01; Windows CE; PPC; 240x320)"

I also tried adding the following machineKey to my macine.config file,
which didn't help:

<machineKey
validationKey=" 9CCEC30E6D16956 36BC548918FC190 EAC06714B6B44CC A2168B7DB439EC6 684025E84514A82 98545E74B015E22 B69B1C3DD845F23 7BE470FC5650182 F46B9111"
decryptionKey=" 126EA9F8AD60164 92548AA59BAEB5D 8012B947145126A 19A"
validation="SHA 1"/>

Any ideas?

Jun 15 '06 #2
I figured out what the issue was. In some environments (IE on a windows CE
device, in my case) hidden fields can only be a certain length. I don't
know what the length is, but in some of my pages I must have exceeded it. I
turned event validation off in the web config, and I made the page store the
viewstate in the session. Storing the viewstate in the session can cause a
wrinkle when using the back button -which I don't have a solution for yet,
but at least I'm not getting these errors.
"Teemu Keiski" <jo****@aspalli ance.com> wrote in message
news:u4******** ******@TK2MSFTN GP05.phx.gbl...
Hi,

you might want to report this on:
http://forums.asp.net/thread/1173230.aspx
--
Teemu Keiski
ASP.NET MVP, AspInsider
Finland, EU
http://blogs.aspadvice.com/joteke

"Jeremy Chapman" <no****@please. com> wrote in message
news:eM******** ******@TK2MSFTN GP03.phx.gbl...
This is odd behavior. In my aspnet 2.0 app (basic app, nothing out of
the ordinary here), if I am using my iPAQ handheld device and I hit the
refresh button on my page, I get an error "Validation of viewstate MAC
failed. If this application is hosted by a Web Farm or cluster, ensure
that <machineKey> configuration specifies the same validationKey and
validation algorithm. AutoGenerate cannot be used in a cluster."

The interesting thing is I can not reproduce this using IE or Opera on my
desktop. The user agent reported by my iPAQ browser is "Mozilla/4.0
(compatible; MSIE 4.01; Windows CE; PPC; 240x320)"

I also tried adding the following machineKey to my macine.config file,
which didn't help:

<machineKey
validationKey=" 9CCEC30E6D16956 36BC548918FC190 EAC06714B6B44CC A2168B7DB439EC6 684025E84514A82 98545E74B015E22 B69B1C3DD845F23 7BE470FC5650182 F46B9111"
decryptionKey=" 126EA9F8AD60164 92548AA59BAEB5D 8012B947145126A 19A"
validation="SHA 1"/>

Any ideas?


Jun 15 '06 #3

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

Similar topics

3
3402
by: Sergej Grickov | last post by:
Hello, all! I started to develop my application with ASP.Net 2.0 and got the strange behavior with pages, where user change any form control (i.e. checkbox, button, etc.). Ex.: when I clicked on button - page is not submit (postback); if I create dropdown box with AutoPostBack = true, or change button property to UseSubmitBehavior = false, I get error (only in IE!):
1
11764
by: Dhruba Bandopadhyay | last post by:
Validation of viewstate MAC failed. If this application is hosted by a Web Farm or cluster, ensure that <machineKey> configuration specifies the same validationKey and validation algorithm. AutoGenerate cannot be used in a cluster. The above message is what I get in my ASP.NET 2.0 page. I have debugging turned on and for those who want to see the stack trace, see below. In my old web site I had a frame set with a ASP page in left frame...
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,
5
14073
by: russell.lane | last post by:
I'm getting the much-hated "validation of viewstate MAC failed" error. This is on an ASP.Net 2.0 app running in IIS with IE 6+ as the browser. The full error text is: Validation of viewstate MAC failed. If this application is hosted by a Web Farm or cluster, ensure that <machineKeyconfiguration specifies the same validationKey and validation algorithm. AutoGenerate cannot be used in a cluster. The app *is not* running in a cluster or...
0
1959
by: Jeremy Chapman | last post by:
Riddle me this batman: An application has two aspx pages. Each has a button on it that does a response.redirect to the other page. I'm viewing the web app in a ocket pc running windows mobile 2003 2nd edition. If I use the back button, more often than not I will get an HttpException saying that the validation of viewstate MAC failed. If I change the code to do a server.transfer I will never get this problem. Is this a bug in PIE? I...
6
11231
by: Gibble | last post by:
We have been receiving 100s of this error: ---------- Validation of viewstate MAC failed. If this application is hosted by a Web Farm or cluster, ensure that <machineKeyconfiguration specifies the same validationKey and validation algorithm. AutoGenerate cannot be used in a cluster. ---------- Since we aren't using a Web Farm or Cluster that's not the issue. The
5
3331
by: SpaceMarine | last post by:
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 <machineKeyconfiguration specifies the same validationKey and validation algorithm. AutoGenerate cannot be used in a cluster.
3
680
by: sck10 | last post by:
Hello, I have a web project (VS 2008 c#). I have a page that opens, but when I try to call an assembly (managed c++) on a submit event, I get the following error on the web server, but not on my development machine. It seems that this is the only dll in the Bin folder that has this problem. Any help with this would be appreciated. Thanks, sck10
0
1242
by: skozyk | last post by:
I kept getting the following error: "Validation of viewstate MAC failed. If this application is hosted by a Web Farm or cluster, ensure that configuration specifies the same validationKey and validation algorithm. Auto Generate cannot be used in a cluster." The problem was my login system worked fine on my local machine, but when I FTPed my application to my remote server and then launched it, the user names and roles I created locally...
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...
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();...
0
5294
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5444
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
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
2
3558
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
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.