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

HttpException : Unable to validate data

[Apologies for the duplicate, I posted the first from the wrong email alias]
Hi everyone,

My site is randomly firing off a "ExceptionHttpException : Unable to
validate data. " error on some of its forms at the moment:
-------
HttpException : Unable to validate data.
http://www.developerfusion.co.uk/Mem...itProfile.aspx (Referred
by http://www.developerfusion.co.uk/Mem...itProfile.aspx)
at System.Web.Configuration.MachineKeySection.GetDeco dedData(Byte[] buf,
Byte[] modifier, Int32 start, Int32 length, Int32& dataLength)
at System.Web.UI.ObjectStateFormatter.Deserialize(Str ing inputString)
-----------
I can't reproduce it myself, but several users and the automatic error
reports that have been generated indicate this. The site isn't running on a
web farm or anything, the application pool isn't being recycled, and I've
tried the standard solutions of specifying a fixed machine
validation/encryption key, and I've also tried disabling the view state mac
entirely, but the problem persists. Does anyone have any ideas what might be
triggering this?

Thanks,

- James
www.developerfusion.co.uk
Feb 15 '06 #1
7 1791
Hi James,

Welcome to the MSDN newsgroup.

As for the "HttpException : Unable to validate data." error you mentioned,
based on my experience, there does exists many threads discussing on this
issue. However, most of them are of the webfarm scenario which dosn't
correctly set the MachineKey.
For your scenario, it seems that the error is caused by something else,
also since the problem is reported by some other end users and you haven't
reproduced it on your side, it'll be a bit hard for us to throubleshoot.
One possible cause I'm thinking is that when our ASP.NET page is requested
by some other single html page or non-asp.net page through POST method,
this could cause viewstate validation failure issue. So is it possible that
some other client user use some other tools or own custom page to do post
to your web page? If all the post are done within the same page or same
application's page through cross-page post-back, it maybe some other
specific problem.

Regards,

Steven Cheng
Microsoft Online Support

Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)

Feb 16 '06 #2
Hi Steven,

Thanks for the info. The error is definitely occuring on an ASP.NET page,
posting back to the same ASP.NET page (I've confirmed this with several of
the users). Sometimes the error persists when they click the submission
button again - and sometimes it doesn't.

Any ideas? Thanks!

- James
Feb 16 '06 #3
So far I haven't heard any existing issue on this. Can your end users
isolate the problem to some particular pages?

Regards,

Steven Cheng
Microsoft Online Support

Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)

Feb 17 '06 #4
Yes, the problem seems largely limited to one specific page. Though it has
very very occasionally occured on another.

Unfortunately I haven't been able to track down exactly what is wrong with
the page that is triggering the error - and because of the intermittent
nature of the problem (and the fact I can only test it by making the modified
page "live" on the site) it's a bit of a pain.

Shall I post the ASPX and CS code here?
Feb 17 '06 #5
Thanks for your response James,

Sure, you can post some test pages so that I can perform some tests on my
side though generally it'll be hard to reproduce it.

Regards,

Steven Cheng
Microsoft Online Support

Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)

Feb 21 '06 #6
Am I going to be better off raising a full product support issue to get this
resolved? It's still happening often enough to our users that I really need
to get this sorted :-)

- James
Feb 21 '06 #7
Thanks for reply James,

Yes, for such issue, thorough throubleshooting from PSS maybe helpful.
However, I think PSS will also require us to provide a simple reproduce
package for test. Though they can help perform remote debugging , but
that'll be very inconvenient. Also, since currently it can only reproduce
on your end user's side, I think PSS guys will have to remotly connect to
your end users's machine if need to perform runtime debugging at client.

Regards,

Steven Cheng
Microsoft Online Support

Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)
Feb 22 '06 #8

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

Similar topics

0
by: Amy | last post by:
Hi, I'm suddenly getting this error when I post back from my application. the application worked once, i added some code on one page (customizing a datagrid), and suddenly I'm getting this...
0
by: Peter O'Reilly | last post by:
I receive the following error when I post a webpage: "Unable to validate error" - System.Web.HTTPException. The web page is an ASP WebForm page. I have a few controls on the page that when...
0
by: D Fields | last post by:
We get this when certain images are uploaded.....any ideas?........ Message: Unable to validate data. Stack Trace: at System.Web.Configuration.MachineKey.GetDecodedData(Byte buf, Byte...
3
by: pmud | last post by:
Hi, I have ab ASP.Net Application in which I need to send e-mail on button click. Even though my C# code for that is correct.I am getting the following error:: I think the following error can be...
2
by: Stu | last post by:
Hi, When I try and use Javascript to post page form data from one aspx page to another I get the error 'Unable to validate data. '. I am not trying to read the data using web controls I am...
2
by: Harrie Verveer | last post by:
Hi, I'm building quiet a large webapplication (CMS) in ASP.NET. On localhost the application runs fine. For publishing we use 2 hosting providers at the moment (let's call those 'A' and 'B')....
1
by: dima | last post by:
Hi All, I know some of you had this problem in production. Did anyone find out how to fix this problem or what is the cause of it? System.Web.HttpException: Invalid_Viewstate ...
0
by: James Crowley | last post by:
Hi everyone, My site is randomly firing off a "ExceptionHttpException : Unable to validate data. " error on some of its forms at the moment: ------- HttpException : Unable to validate data....
0
by: Fresno Bob | last post by:
I get the following very intermittant error. System.Web.HttpException: Unable to validate data. at System.Web.Configuration.MachineKeySection.GetDecodedData The form encoding type is for...
1
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: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
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
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...

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.