473,513 Members | 2,752 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Unable to validate data

Hello.

On our website we occasionally get the dreaded error:

Exception:
System.Web.HttpException
Unable to validate data.

Stack trace:
at System.Web.Configuration.MachineKey.GetDecodedData (Byte[] buf,
Byte[] modifier, Int32 start, Int32 length, Int32& dataLength)
at System.Web.UI.LosFormatter.Deserialize(String input)

Viewstate (example):
dDwtMjk4NDUyOTEyOzs+HhqaxzF2H593HEX/Hn/ArvKK7AU=

Machine Key tag from Web.config (modified slightly here for security):
<machineKey
validationKey='XXXXXXXXXXXXXXXX1B81214A550B89F2A31 8B3712FB5AC8CD82AF4F3925B3C6ED58CF5F38503629A78BF8 C27B1B736C4E84DACE342AB83A42932B44EBC3D7601'
decryptionKey='XXXXXXXXXXXXXXXX3133028CBD4E6EEFC45 B5E609D7F4107'
validation='SHA1'/>

I have scoured google for months trying to solve this problem. I can
confirm:

- we are not using a cluster / webfarm
- we are not using any Server.Transfers (eg. the viewstate is being
posted back to the correct page as far as we can see)
- we have manually set the encryption / decryption key in Web.config as
above
- the site runs in its own application pool, and recycling of the
worker process is disabled

The site will run fine for weeks, then suddenly we may get a multiple
instances of these come through at once from at least two different
users. It is only ever on one specific page though. This page does
not create any controls dynamically.

The example viewstate above does indeed appear to be invalid when we
try to run it through a view state decoder.

I am completely stuck and the boss is losing patience! Can anyone
help?

Mike

May 31 '06 #1
2 1237
<mi**************@gmail.com> wrote in message
news:11**********************@h76g2000cwa.googlegr oups.com...
Can anyone help?


I had exactly the same problem - one only one page - on only one of my
sites.

Touch wood, the upgrade to v2 seems to have fixed it inasmuch as I've not
had one single instance of it since around the beginning of December when I
deployed the v2 version.
May 31 '06 #2

Mark Rae wrote:
<mi**************@gmail.com> wrote in message
news:11**********************@h76g2000cwa.googlegr oups.com...
Can anyone help?


I had exactly the same problem - one only one page - on only one of my
sites.

Touch wood, the upgrade to v2 seems to have fixed it inasmuch as I've not
had one single instance of it since around the beginning of December when I
deployed the v2 version.


We believe it has to be a problem on the client rather than the server.
The only thing different about the page that gives the error is that
it is redirected to using a javascript redirect or a meta refresh
(depending on the browser). Despite the fact that we have disabled
client caching (or so we believe), we think that this redirect could be
causing badly behaved clients to be posting back an old version of tha
page.

We have now removed this client redirect to see if solves the issue. I
will report back once we know more.

Mike

Jun 2 '06 #3

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

Similar topics

0
438
by: FabFreddy | last post by:
Hi, I can't find out what the problem is with the error message below! I get it when I go from one to another page with controls in these pages. Anyone knows??? THX Unable to validate...
0
5397
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
1289
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...
2
1621
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
3497
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')....
5
3259
by: sjl | last post by:
I've got an .aspx webform for searching my database. It basically takes user input and passes it as a parm into a stored proc to search a table. The results are returned in a SQLDataReader and...
4
5750
by: Mike Fellows | last post by:
running IIS on a single server, hosting pages on an intranet basis, one single user out of 50 is having an unable to validate data issue how do i fix this (the microsoft KB is a little...
0
1125
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....
7
1812
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....
6
3382
by: Solje | last post by:
Im developing an ASP.NET application used for maintinance purpose and it may be idle for some ours. The application crash with the error shown below when the user click on some contol in the...
0
7379
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,...
0
7535
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
7521
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...
0
5682
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,...
0
4745
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...
0
3232
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...
0
1591
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 ...
1
798
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
455
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...

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.