viewstate corrupt
chris sampson
Posts: 38
Hello,
The invalid viewstate error could be caused by ANTS Load's failure to automatically script HTTP 302 redirections. If you have a line in your script, for example, WebClient.Get("http://localhost"), your next request may generate invalid viewstate because you'd be redirected to http://localhost/default.aspx and ANTS doesn't script that.
If this is happening in your script, you can fix it by adding a line to the script:
Quote:
WebClient.Get("http://localhost")
WebCleint.Get(WebClient.HttpResponse.Location)
That will get the page that you were redirected to and update ANTS Load's viewstate.
The invalid viewstate error could be caused by ANTS Load's failure to automatically script HTTP 302 redirections. If you have a line in your script, for example, WebClient.Get("http://localhost"), your next request may generate invalid viewstate because you'd be redirected to http://localhost/default.aspx and ANTS doesn't script that.
If this is happening in your script, you can fix it by adding a line to the script:
Quote:
WebClient.Get("http://localhost")
WebCleint.Get(WebClient.HttpResponse.Location)
That will get the page that you were redirected to and update ANTS Load's viewstate.
Chris Sampson
Support Engineer
Red Gate Software
Support Engineer
Red Gate Software
This discussion has been closed.