Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > HELP : 'Unable to Validate Error' !!!

Reply
Thread Tools

HELP : 'Unable to Validate Error' !!!

 
 
Ramya
Guest
Posts: n/a
 
      10-19-2005
Hi,

I am having a problem which is :

I have a asp.net project running on our webserver. It worked ok till
sometime back.

Sometimeback, we installed a cisco CSS box ( for loadsharing) between
the primary webserver, and the secondary servers.

After that, I found that my asp.net page would randomly give the error
message -
Unable to validate data' - most of the time on a postback to the server
( for the detailed error message - see below)


I have been very much assured that the CSS box does LOADSHARING WITH
STICKY SESSIONS - (ie) once you open a browser, it does not switch to a
different server ( on the same browser). So, this scenario is different
from a webfarm ( where it can postback to a different server each
time).

Assuming there is no posting back to a different server ( no webfarm
scenario) - I cannot change the machine.config file - because I have
been advised not to. I have read articles which advise me to have the
same validation key across all servers ( in a webfarm scenario) - but
there is no way I can suggest this unless I have valid 'PROOF' that
that is indeed the case. How can I figure out the cause / ( OR if for
some reason - it is doing post back to a different server in the same
browser - 'PROVE' that that is actually the case?

Is there ANYTHING I can do to fix this. I am not sure what could be
causing it- just that it may have something to do with loadsharing and
it happens on a Page Postback.

Someone, Please HELP !!!!!

( More details on the error message):

************************************************** ****************
Server Error in '/IAMI/ASP' Application.
--------------------------------------------------------------------------------


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.

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


Source Error:

An unhandled exception was generated during the execution of the
current web request. Information regarding the origin and location of
the exception can be identified using the exception stack trace below.


Stack Trace:

[HttpException (0x80004005): Unable to validate data.]
System.Web.Configuration.MachineKey.GetDecodedData (Byte[] buf, Byte[]
modifier, Int32 start, Int32 length, Int32& dataLength) +195
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() +101

[HttpException (0x80004005): Invalid_Viewstate
Client IP: 71.106.192.225
Port: 50337
User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1;
..NET CLR 1.1.4322)
ViewState:
dDwtMTk3MTk2NzkxNDs7bDxpbWdCdHRuR287Pj7EvfWvT/kVHfVpBzqoNveglMw/rg==
Http-Referer:
http://infosec.upmc.com/IAMI/ASP/ISG...04343333DFAF.]
Path: /IAMI/ASP/ISG_IMS_RequestProcessing.aspx
System.Web.UI.Page.LoadPageStateFromPersistenceMed ium() +442
System.Web.UI.Page.LoadPageViewState() +18
System.Web.UI.Page.ProcessRequestMain() +441

************************************************** ****************

 
Reply With Quote
 
 
 
 
JIMCO Software
Guest
Posts: n/a
 
      10-19-2005
Ramya wrote:
> Hi,
>
> I am having a problem which is :
>
> I have a asp.net project running on our webserver. It worked ok till
> sometime back.
>
> Sometimeback, we installed a cisco CSS box ( for loadsharing) between
> the primary webserver, and the secondary servers.
>
> After that, I found that my asp.net page would randomly give the
> error message -
> Unable to validate data' - most of the time on a postback to the
> server ( for the detailed error message - see below)
>
>


Hi Ramya,

I realize that you have a Cisco load balancer using sticky sessions.
However, one thing to keep in mind. Sticky sessions is a best-effort
technology. It is still possible to fail over. The error you are getting
indicates that's what's happening.

If you specify explicit machine keys that match on both boxes, does the
problem go away? If so, I would look into the failover issue because if
you're using InProc session, you'll lose it when that happens.

--
Jim Cheshire
JIMCO Software
http://www.jimcosoftware.com




 
Reply With Quote
 
 
 
 
Bruce Barker
Guest
Posts: n/a
 
      10-19-2005
sticky sessions are not always sticky. the standard sticky approach is to
assign an incoming ip to a fixed server, but if the client is using multiple
nat ipaddress this fails. the safest approach, is to have different domain
names for each server and redirect to that domain. this only fails if your
code does a generic redirect.


-- bruce (sqlwork.com)


"Ramya" <> wrote in message
news: oups.com...
> Hi,
>
> I am having a problem which is :
>
> I have a asp.net project running on our webserver. It worked ok till
> sometime back.
>
> Sometimeback, we installed a cisco CSS box ( for loadsharing) between
> the primary webserver, and the secondary servers.
>
> After that, I found that my asp.net page would randomly give the error
> message -
> Unable to validate data' - most of the time on a postback to the server
> ( for the detailed error message - see below)
>
>
> I have been very much assured that the CSS box does LOADSHARING WITH
> STICKY SESSIONS - (ie) once you open a browser, it does not switch to a
> different server ( on the same browser). So, this scenario is different
> from a webfarm ( where it can postback to a different server each
> time).
>
> Assuming there is no posting back to a different server ( no webfarm
> scenario) - I cannot change the machine.config file - because I have
> been advised not to. I have read articles which advise me to have the
> same validation key across all servers ( in a webfarm scenario) - but
> there is no way I can suggest this unless I have valid 'PROOF' that
> that is indeed the case. How can I figure out the cause / ( OR if for
> some reason - it is doing post back to a different server in the same
> browser - 'PROVE' that that is actually the case?
>
> Is there ANYTHING I can do to fix this. I am not sure what could be
> causing it- just that it may have something to do with loadsharing and
> it happens on a Page Postback.
>
> Someone, Please HELP !!!!!
>
> ( More details on the error message):
>
> ************************************************** ****************
> Server Error in '/IAMI/ASP' Application.
> --------------------------------------------------------------------------------
>
>
> 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.
>
> Exception Details: System.Web.HttpException: Unable to validate data.
>
>
> Source Error:
>
> An unhandled exception was generated during the execution of the
> current web request. Information regarding the origin and location of
> the exception can be identified using the exception stack trace below.
>
>
> Stack Trace:
>
> [HttpException (0x80004005): Unable to validate data.]
> System.Web.Configuration.MachineKey.GetDecodedData (Byte[] buf, Byte[]
> modifier, Int32 start, Int32 length, Int32& dataLength) +195
> 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() +101
>
> [HttpException (0x80004005): Invalid_Viewstate
> Client IP: 71.106.192.225
> Port: 50337
> User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1;
> .NET CLR 1.1.4322)
> ViewState:
> dDwtMTk3MTk2NzkxNDs7bDxpbWdCdHRuR287Pj7EvfWvT/kVHfVpBzqoNveglMw/rg==
> Http-Referer:
> http://infosec.upmc.com/IAMI/ASP/ISG...04343333DFAF.]
> Path: /IAMI/ASP/ISG_IMS_RequestProcessing.aspx
> System.Web.UI.Page.LoadPageStateFromPersistenceMed ium() +442
> System.Web.UI.Page.LoadPageViewState() +18
> System.Web.UI.Page.ProcessRequestMain() +441
>
> ************************************************** ****************
>



 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Help - How can I validate ASP code for XHTML, || NAME vs ID attribute Simon Barnett ASP .Net 1 12-23-2005 05:37 PM
FormsAuthentication and "unable to validate data": HELP! Harrie Verveer ASP .Net 2 06-27-2005 11:08 AM
Validate Email. RegEx. Need Help. Shapper ASP .Net 4 05-11-2005 03:38 PM
Please help. Validate only selected controls Paul ASP .Net 2 01-26-2004 10:47 AM
Help on Regular experession to validate date Bogdan Zamfir ASP .Net 1 08-19-2003 07:51 AM



Advertisments