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 bound to a datagrid on the same
page. It works 90% of the time as expected. However, for some unknown
reason, I randomly get the error below. The HttpException says there is an
'Invalid_Viewstate'. Ok, but why? I'm posting back to the same page. If the
Viewstate is corrupt, then why?
I'm hosting at Orcs Web using shared hosting, ASP.NET 1.1, SQL 2000, VS2003.
***********ERROR MESSAGE DETAILS******************
Unable to validate data.
Description: An unhandled exception occurred during the execution of the
current web request. Please review the stack trace for more information
about the error and where it originated in the code.
Stack Trace:
[HttpException (0x80004005): Unable to validate data.]
System.Web.Configuration.MachineKey.GetDecodedData (Byte[] buf, Byte[]
modifier, Int32 start, Int32 length, Int32& dataLength) +196
System.Web.UI.LosFormatter.Deserialize(String input) +60
[HttpException (0x80004005): Authentication of viewstate failed. 1) If this
is a cluster, edit <machineKey> configuration so all servers use the same
validationKey and validation algorithm. AutoGenerate cannot be used in a
cluster. 2) Viewstate can only be posted back to the same page. 3) The
viewstate for this page might be corrupted.]
System.Web.UI.LosFormatter.Deserialize(String input) +118
System.Web.UI.Page.LoadPageStateFromPersistenceMed ium() +102
[HttpException (0x80004005): Invalid_Viewstate
Client IP: xxxxxx
Port: 3639
User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET
CLR 1.1.4322; .NET CLR 2.0.50215)
ViewState: dDwtMTUxMTMzMDAzMjt0 [clipped]
Http-Referer: http://xxxxxxxxxx/search.aspx
Path: /search.aspx.]
System.Web.UI.Page.LoadPageStateFromPersistenceMed ium() +443
System.Web.UI.Page.LoadPageViewState() +18
System.Web.UI.Page.ProcessRequestMain() +447
***********ERROR MESSAGE DETAILS******************
Thanks for any help you can provide.
SJL 5 3253
sjl,
You should inquire of your webhost as to whether they are hosting via a
clustered environment. As the error states if they are you will need the
<machineKey> edited for the clusted environment.
--
Sincerely,
S. Justin Gengo, MCP
Web Developer / Programmer www.aboutfortunate.com
"Out of chaos comes order."
Nietzsche
"sjl" <no*****@email.com> wrote in message
news:uR**************@TK2MSFTNGP15.phx.gbl... 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 bound to a datagrid on the same page. It works 90% of the time as expected. However, for some unknown reason, I randomly get the error below. The HttpException says there is an 'Invalid_Viewstate'. Ok, but why? I'm posting back to the same page. If the Viewstate is corrupt, then why?
I'm hosting at Orcs Web using shared hosting, ASP.NET 1.1, SQL 2000, VS2003.
***********ERROR MESSAGE DETAILS****************** Unable to validate data. Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Stack Trace: [HttpException (0x80004005): Unable to validate data.] System.Web.Configuration.MachineKey.GetDecodedData (Byte[] buf, Byte[] modifier, Int32 start, Int32 length, Int32& dataLength) +196 System.Web.UI.LosFormatter.Deserialize(String input) +60
[HttpException (0x80004005): Authentication of viewstate failed. 1) If this is a cluster, edit <machineKey> configuration so all servers use the same validationKey and validation algorithm. AutoGenerate cannot be used in a cluster. 2) Viewstate can only be posted back to the same page. 3) The viewstate for this page might be corrupted.] System.Web.UI.LosFormatter.Deserialize(String input) +118 System.Web.UI.Page.LoadPageStateFromPersistenceMed ium() +102
[HttpException (0x80004005): Invalid_Viewstate Client IP: xxxxxx Port: 3639 User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322; .NET CLR 2.0.50215) ViewState: dDwtMTUxMTMzMDAzMjt0 [clipped] Http-Referer: http://xxxxxxxxxx/search.aspx Path: /search.aspx.] System.Web.UI.Page.LoadPageStateFromPersistenceMed ium() +443 System.Web.UI.Page.LoadPageViewState() +18 System.Web.UI.Page.ProcessRequestMain() +447 ***********ERROR MESSAGE DETAILS******************
Thanks for any help you can provide. SJL
Justin. Thanks for the reply, unfortunately, I'm told by my host:
"Your site is being hosted on one of our shared servers which is not a
clustered environment. Only our webfarm servers are in a clustered
environment, which your site is not on."
Any other ideas?
SJL
"S. Justin Gengo" <justin@[no_spam_please]aboutfortunate.com> wrote in
message news:u0*************@TK2MSFTNGP15.phx.gbl... sjl,
You should inquire of your webhost as to whether they are hosting via a clustered environment. As the error states if they are you will need the <machineKey> edited for the clusted environment.
-- Sincerely,
S. Justin Gengo, MCP Web Developer / Programmer
www.aboutfortunate.com
"Out of chaos comes order." Nietzsche "sjl" <no*****@email.com> wrote in message news:uR**************@TK2MSFTNGP15.phx.gbl... 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 bound to a datagrid on the same page. It works 90% of the time as expected. However, for some unknown reason, I randomly get the error below. The HttpException says there is an 'Invalid_Viewstate'. Ok, but why? I'm posting back to the same page. If the Viewstate is corrupt, then why?
I'm hosting at Orcs Web using shared hosting, ASP.NET 1.1, SQL 2000, VS2003.
***********ERROR MESSAGE DETAILS****************** Unable to validate data. Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Stack Trace: [HttpException (0x80004005): Unable to validate data.] System.Web.Configuration.MachineKey.GetDecodedData (Byte[] buf, Byte[] modifier, Int32 start, Int32 length, Int32& dataLength) +196 System.Web.UI.LosFormatter.Deserialize(String input) +60
[HttpException (0x80004005): Authentication of viewstate failed. 1) If this is a cluster, edit <machineKey> configuration so all servers use the same validationKey and validation algorithm. AutoGenerate cannot be used in a cluster. 2) Viewstate can only be posted back to the same page. 3) The viewstate for this page might be corrupted.] System.Web.UI.LosFormatter.Deserialize(String input) +118 System.Web.UI.Page.LoadPageStateFromPersistenceMed ium() +102
[HttpException (0x80004005): Invalid_Viewstate Client IP: xxxxxx Port: 3639 User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322; .NET CLR 2.0.50215) ViewState: dDwtMTUxMTMzMDAzMjt0 [clipped] Http-Referer: http://xxxxxxxxxx/search.aspx Path: /search.aspx.] System.Web.UI.Page.LoadPageStateFromPersistenceMed ium() +443 System.Web.UI.Page.LoadPageViewState() +18 System.Web.UI.Page.ProcessRequestMain() +447 ***********ERROR MESSAGE DETAILS******************
Thanks for any help you can provide. SJL
Hmmmm,
That's a tough one then. You could be losing packets... Someone could be
trying to infiltrate your system by messing with form data posted to it...
There are so many things this could be I don't even know where to begin.
You say 90% of the time the application is fine. Is that an exact figure? If
this is happening on 10% of all post backs I would certainly investigate it
further that's a very high number. But if it's really a lot less than that
then you may not need to worry about it at all...
--
Sincerely,
S. Justin Gengo, MCP
Web Developer / Programmer www.aboutfortunate.com
"Out of chaos comes order."
Nietzsche
"sjl" <no*****@email.com> wrote in message
news:ul*************@TK2MSFTNGP15.phx.gbl... Justin. Thanks for the reply, unfortunately, I'm told by my host:
"Your site is being hosted on one of our shared servers which is not a clustered environment. Only our webfarm servers are in a clustered environment, which your site is not on."
Any other ideas?
SJL
"S. Justin Gengo" <justin@[no_spam_please]aboutfortunate.com> wrote in message news:u0*************@TK2MSFTNGP15.phx.gbl... sjl,
You should inquire of your webhost as to whether they are hosting via a clustered environment. As the error states if they are you will need the <machineKey> edited for the clusted environment.
-- Sincerely,
S. Justin Gengo, MCP Web Developer / Programmer
www.aboutfortunate.com
"Out of chaos comes order." Nietzsche "sjl" <no*****@email.com> wrote in message news:uR**************@TK2MSFTNGP15.phx.gbl... 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 bound to a datagrid on the same page. It works 90% of the time as expected. However, for some unknown reason, I randomly get the error below. The HttpException says there is an 'Invalid_Viewstate'. Ok, but why? I'm posting back to the same page. If the Viewstate is corrupt, then why?
I'm hosting at Orcs Web using shared hosting, ASP.NET 1.1, SQL 2000, VS2003.
***********ERROR MESSAGE DETAILS****************** Unable to validate data. Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Stack Trace: [HttpException (0x80004005): Unable to validate data.] System.Web.Configuration.MachineKey.GetDecodedData (Byte[] buf, Byte[] modifier, Int32 start, Int32 length, Int32& dataLength) +196 System.Web.UI.LosFormatter.Deserialize(String input) +60
[HttpException (0x80004005): Authentication of viewstate failed. 1) If this is a cluster, edit <machineKey> configuration so all servers use the same validationKey and validation algorithm. AutoGenerate cannot be used in a cluster. 2) Viewstate can only be posted back to the same page. 3) The viewstate for this page might be corrupted.] System.Web.UI.LosFormatter.Deserialize(String input) +118 System.Web.UI.Page.LoadPageStateFromPersistenceMed ium() +102
[HttpException (0x80004005): Invalid_Viewstate Client IP: xxxxxx Port: 3639 User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322; .NET CLR 2.0.50215) ViewState: dDwtMTUxMTMzMDAzMjt0 [clipped] Http-Referer: http://xxxxxxxxxx/search.aspx Path: /search.aspx.] System.Web.UI.Page.LoadPageStateFromPersistenceMed ium() +443 System.Web.UI.Page.LoadPageViewState() +18 System.Web.UI.Page.ProcessRequestMain() +447 ***********ERROR MESSAGE DETAILS******************
Thanks for any help you can provide. SJL
Thanks, Justin. After working through this with my host, they suggested two
things:
(a) move my site to a new appPool (same server, just a different appPool),
and
(b) add a machineKey value to my web.config.
Doing these two things appears to have corrected the problem. I believe the
problem is now resolved. Thanks for your suggestions.
SJL
"S. Justin Gengo" <justin@[no_spam_please]aboutfortunate.com> wrote in
message news:ex**************@TK2MSFTNGP12.phx.gbl... Hmmmm,
That's a tough one then. You could be losing packets... Someone could be trying to infiltrate your system by messing with form data posted to it... There are so many things this could be I don't even know where to begin.
You say 90% of the time the application is fine. Is that an exact figure? If this is happening on 10% of all post backs I would certainly investigate it further that's a very high number. But if it's really a lot less than that then you may not need to worry about it at all...
-- Sincerely,
S. Justin Gengo, MCP Web Developer / Programmer
www.aboutfortunate.com
"Out of chaos comes order." Nietzsche "sjl" <no*****@email.com> wrote in message news:ul*************@TK2MSFTNGP15.phx.gbl... Justin. Thanks for the reply, unfortunately, I'm told by my host:
"Your site is being hosted on one of our shared servers which is not a clustered environment. Only our webfarm servers are in a clustered environment, which your site is not on."
Any other ideas?
SJL
"S. Justin Gengo" <justin@[no_spam_please]aboutfortunate.com> wrote in message news:u0*************@TK2MSFTNGP15.phx.gbl... sjl,
You should inquire of your webhost as to whether they are hosting via a clustered environment. As the error states if they are you will need the <machineKey> edited for the clusted environment.
-- Sincerely,
S. Justin Gengo, MCP Web Developer / Programmer
www.aboutfortunate.com
"Out of chaos comes order." Nietzsche "sjl" <no*****@email.com> wrote in message news:uR**************@TK2MSFTNGP15.phx.gbl... 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 bound to a datagrid on the same page. It works 90% of the time as expected. However, for some unknown reason, I randomly get the error below. The HttpException says there is an 'Invalid_Viewstate'. Ok, but why? I'm posting back to the same page. If the Viewstate is corrupt, then why?
I'm hosting at Orcs Web using shared hosting, ASP.NET 1.1, SQL 2000, VS2003.
***********ERROR MESSAGE DETAILS****************** Unable to validate data. Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Stack Trace: [HttpException (0x80004005): Unable to validate data.] System.Web.Configuration.MachineKey.GetDecodedData (Byte[] buf, Byte[] modifier, Int32 start, Int32 length, Int32& dataLength) +196 System.Web.UI.LosFormatter.Deserialize(String input) +60
[HttpException (0x80004005): Authentication of viewstate failed. 1) If this is a cluster, edit <machineKey> configuration so all servers use the same validationKey and validation algorithm. AutoGenerate cannot be used in a cluster. 2) Viewstate can only be posted back to the same page. 3) The viewstate for this page might be corrupted.] System.Web.UI.LosFormatter.Deserialize(String input) +118 System.Web.UI.Page.LoadPageStateFromPersistenceMed ium() +102
[HttpException (0x80004005): Invalid_Viewstate Client IP: xxxxxx Port: 3639 User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322; .NET CLR 2.0.50215) ViewState: dDwtMTUxMTMzMDAzMjt0 [clipped] Http-Referer: http://xxxxxxxxxx/search.aspx Path: /search.aspx.] System.Web.UI.Page.LoadPageStateFromPersistenceMed ium() +443 System.Web.UI.Page.LoadPageViewState() +18 System.Web.UI.Page.ProcessRequestMain() +447 ***********ERROR MESSAGE DETAILS******************
Thanks for any help you can provide. SJL
sjl,
I'm glad you've figured it out!
--
Sincerely,
S. Justin Gengo, MCP
Web Developer / Programmer www.aboutfortunate.com
"Out of chaos comes order."
Nietzsche
"sjl" <no*****@email.com> wrote in message
news:OG***************@TK2MSFTNGP09.phx.gbl... Thanks, Justin. After working through this with my host, they suggested two things:
(a) move my site to a new appPool (same server, just a different appPool), and (b) add a machineKey value to my web.config.
Doing these two things appears to have corrected the problem. I believe the problem is now resolved. Thanks for your suggestions.
SJL
"S. Justin Gengo" <justin@[no_spam_please]aboutfortunate.com> wrote in message news:ex**************@TK2MSFTNGP12.phx.gbl... Hmmmm,
That's a tough one then. You could be losing packets... Someone could be trying to infiltrate your system by messing with form data posted to it... There are so many things this could be I don't even know where to begin.
You say 90% of the time the application is fine. Is that an exact figure? If this is happening on 10% of all post backs I would certainly investigate it further that's a very high number. But if it's really a lot less than that then you may not need to worry about it at all...
-- Sincerely,
S. Justin Gengo, MCP Web Developer / Programmer
www.aboutfortunate.com
"Out of chaos comes order." Nietzsche "sjl" <no*****@email.com> wrote in message news:ul*************@TK2MSFTNGP15.phx.gbl... Justin. Thanks for the reply, unfortunately, I'm told by my host:
"Your site is being hosted on one of our shared servers which is not a clustered environment. Only our webfarm servers are in a clustered environment, which your site is not on."
Any other ideas?
SJL
"S. Justin Gengo" <justin@[no_spam_please]aboutfortunate.com> wrote in message news:u0*************@TK2MSFTNGP15.phx.gbl... sjl,
You should inquire of your webhost as to whether they are hosting via a clustered environment. As the error states if they are you will need the <machineKey> edited for the clusted environment.
-- Sincerely,
S. Justin Gengo, MCP Web Developer / Programmer
www.aboutfortunate.com
"Out of chaos comes order." Nietzsche "sjl" <no*****@email.com> wrote in message news:uR**************@TK2MSFTNGP15.phx.gbl... > 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 bound to a > datagrid on the same page. It works 90% of the time as expected. > However, for some unknown reason, I randomly get the error below. The > HttpException says there is an 'Invalid_Viewstate'. Ok, but why? I'm > posting back to the same page. If the Viewstate is corrupt, then why? > > I'm hosting at Orcs Web using shared hosting, ASP.NET 1.1, SQL 2000, > VS2003. > > ***********ERROR MESSAGE DETAILS****************** > Unable to validate data. > Description: An unhandled exception occurred during the execution of > the current web request. Please review the stack trace for more > information about the error and where it originated in the code. > > Stack Trace: > [HttpException (0x80004005): Unable to validate data.] > System.Web.Configuration.MachineKey.GetDecodedData (Byte[] buf, > Byte[] modifier, Int32 start, Int32 length, Int32& dataLength) +196 > System.Web.UI.LosFormatter.Deserialize(String input) +60 > > [HttpException (0x80004005): Authentication of viewstate failed. 1) > If this is a cluster, edit <machineKey> configuration so all servers > use the same validationKey and validation algorithm. AutoGenerate > cannot be used in a cluster. 2) Viewstate can only be posted back to > the same page. 3) The viewstate for this page might be corrupted.] > System.Web.UI.LosFormatter.Deserialize(String input) +118 > System.Web.UI.Page.LoadPageStateFromPersistenceMed ium() +102 > > [HttpException (0x80004005): Invalid_Viewstate > Client IP: xxxxxx > Port: 3639 > User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; > .NET CLR 1.1.4322; .NET CLR 2.0.50215) > ViewState: dDwtMTUxMTMzMDAzMjt0 [clipped] > Http-Referer: http://xxxxxxxxxx/search.aspx > Path: /search.aspx.] > System.Web.UI.Page.LoadPageStateFromPersistenceMed ium() +443 > System.Web.UI.Page.LoadPageViewState() +18 > System.Web.UI.Page.ProcessRequestMain() +447 > ***********ERROR MESSAGE DETAILS****************** > > Thanks for any help you can provide. > SJL >
This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
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...
|
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...
|
by: Diffident |
last post by:
Guys,
Does anyone have any clues about this stack trace? What can be the reason
for this error?
Is it something related to viewstate? Can I do anything at the
application-level by making code...
|
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...
|
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')....
|
by: BuddyWork |
last post by:
Hello,
When setting the Web Gardens to 3 and I start browsing one of my
asp.net page I get the following error shown below. I don't get the
error when I set the Web Gardens to 1. Please note...
|
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...
|
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...
|
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...
|
by: ryjfgjl |
last post by:
ExcelToDatabase: batch import excel into database automatically...
|
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...
|
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...
|
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...
|
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)...
|
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...
|
by: Defcon1945 |
last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
|
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....
|
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...
| |