Front Controller Pattern/URL Rewriting - Invalid Viewstate
nikolaiblackie
Posts: 20
With our web applications we have implemented a front controller/URL rewriting ISAPI DLL that will take URLs like http://yoursite/personedetails and automatically redirect to the actual page i.e. http://yoursite/pages/personedetails.aspx
I am attempting to create a script but I keep getting "Authentication of viewstate failed." errors. I have read in the forums that you need to specify an ASPX page for each request. Is this the case or are there any other ways around this requirement?
I am attempting to create a script but I keep getting "Authentication of viewstate failed." errors. I have read in the forums that you need to specify an ASPX page for each request. Is this the case or are there any other ways around this requirement?
Comments
More than likely the problem has more to do with ANTS Load not following redirects (by design). What you want to do is capture the redirection URL programatically and follow it on:
Do I need to look at using a get viewstate function like in this post? http://www.red-gate.com/messageboard/vi ... =viewstate
i.e.
Private Function GetViewState(ByVal content As String) As String
The key part is ensuring post data is encoded i.e. WebClient.HttpRequest.AddPostData("__VIEWSTATE", viewState, True)