Red Gate forums :: View topic - Invalid ViewState half way through load test
Return to www.red-gate.com RSS Feed Available

Search  | Usergroups |  Profile |  Messages |  Log in  Register 
Go to product documentation
ANTS Load
ANTS Load forum

Invalid ViewState half way through load test

Search in ANTS Load forum
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.
Jump to:  
Author Message
code



Joined: 28 Jun 2006
Posts: 8

PostPosted: Wed Jun 28, 2006 3:13 pm    Post subject: Invalid ViewState half way through load test Reply with quote

Hi,

I have been running a recorded test over an application we have developed and I am experiencing a strange viewstate problem.

The application is like a wizard consisting of 6 steps, all of which post form data. I modified the test to generate a unique email address for the application in order to make sure the virtual clients could complete the application. I then inserted the new email address string into the recorded test under the EmailAddress post field. It is at this point (after 4 successfuly requests to the site) that I get the viewstate error:

Code:
System.Web.HttpUnhandledException: Exception of type System.Web.HttpUnhandledException was thrown. ---> System.Web.HttpException: Invalid_Viewstate
   Client IP: 217.207.129.222
   Port: 61715
   User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.2; SV1; .NET CLR 1.1.4322; .NET CLR 2.0.50727)
   ViewState:
   Http-Referer:
   Path: /authorisedofficial/confirmation.aspx. ---> System.Web.HttpException: 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.OverflowException: Arithmetic operation resulted in an overflow.
   at System.Web.Configuration.MachineKey.EncryptOrDecryptData(Boolean fEncrypt, Byte[] buf, Byte[] modifier, Int32 start, Int32 length)
   at System.Web.Configuration.MachineKey.GetDecodedData(Byte[] buf, Byte[] modifier, Int32 start, Int32 length, Int32& dataLength)
   at System.Web.UI.LosFormatter.Deserialize(String input)
   --- End of inner exception stack trace ---
   at System.Web.UI.LosFormatter.Deserialize(String input)
   at System.Web.UI.Page.LoadPageStateFromPersistenceMedium()
   --- End of inner exception stack trace ---
   at System.Web.UI.Page.LoadPageStateFromPersistenceMedium()
   at System.Web.UI.Page.LoadPageViewState()
   at System.Web.UI.Page.ProcessRequestMain()
   --- End of inner exception stack trace ---
   at System.Web.UI.Page.HandleError(Exception e)
   at System.Web.UI.Page.ProcessRequestMain()
   at System.Web.UI.Page.ProcessRequest()
   at System.Web.UI.Page.ProcessRequest(HttpContext context)
   at System.Web.CallHandlerExecutionStep.System.Web.HttpApplication+IExecutionStep.Execute()
   at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)


I don't know whether I am getting this because I have changed the email address post field.

I have read about other problems with ViewState but don't know if they apply to me.

Any assistance would be great.

Thanks
Back to top
View user's profile Send private message
Brian Donahue



Joined: 23 Aug 2004
Posts: 6580

PostPosted: Wed Jun 28, 2006 5:22 pm    Post subject: Reply with quote

Hi Tim,

We're dealing with this request via email. Thanks for sending it in!
Back to top
View user's profile Send private message
code



Joined: 28 Jun 2006
Posts: 8

PostPosted: Mon Jul 31, 2006 5:38 pm    Post subject: Reply with quote

Hi Brian,

I have emailed support with all the test scripts and ANTS Load solution.

The site we are testing uses Forms Authentication and the error seems to be triggered during login/logout. When ANTS Load creates all the clients, will they generate authentication cookies specific to themselves or since everything is running from the same domain, will they share the same one? If a client reaches the end of the test script and logs out, will this cause all other clients who are running through the stepped process to error as they are no longer authenticated?

I know it is near impossible to suggest a solution without seeing everything involved so will keep looking.

As I say, support email sent earlier today.

Thanks
Tim
Back to top
View user's profile Send private message
Display posts from previous:   
This topic is locked: you cannot edit posts or make replies. All times are GMT + 1 Hour
Page 1 of 1

 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group