| Author |
Message |
Ajay
Joined: 11 May 2006 Posts: 5 Location: Albany
|
Posted: Mon Jun 05, 2006 5:04 pm Post subject: On enabling Viewstate encodin I am getting "Invalid charect" |
|
|
In one of the posts in the forum I read inorder to resolve Viewstate issue we have to encode it before sending to the server. But on enabling the viewstate encoding i am getting the following error:
System.FormatException: Invalid character in a Base-64 string.
at System.Convert.FromBase64String(String s)
at System.Web.UI.LosFormatter.Deserialize(String input)
at System.Web.UI.Page.LoadPageStateFromPersistenceMedium()
Base Exception: System.FormatException: Invalid character in a Base-64 string.
at System.Convert.FromBase64String(String s)
at System.Web.UI.LosFormatter.Deserialize(String input)
at System.Web.UI.Page.LoadPageStateFromPersistenceMedium()
Any help or suggestions are appriciated.
Thanks & Regards
Ajay |
|
| Back to top |
|
 |
Brian Donahue
Joined: 23 Aug 2004 Posts: 6369 Location: Red Gate Software
|
Posted: Thu Jun 08, 2006 7:23 pm Post subject: |
|
|
What do you mean by viewstate encoding?
I remember one case where the user's webserver used a home-made viewstate because the viewstate was quite large and they wanted to compress it. This resulted in a hidden field in the web page called __COMPRESSEDVIEWSTATE, which of course, ANTS Load can't handle automatically. If this is the case, then part of you test script would need to include a special function to parse the viewstate out of the WebClient.HttpResponse.Content into a variable and post it back to the server. I think you may be in a similar situation? _________________ Brian Donahue
Technical Support
Red Gate Software Ltd.
44 (0)870 160 0037 ext 8521
US and CAN 1-866-RED GATE ext 8521 |
|
| Back to top |
|
 |
Ajay
Joined: 11 May 2006 Posts: 5 Location: Albany
|
Posted: Thu Jun 08, 2006 7:34 pm Post subject: Issue Resolved |
|
|
Hi Brian,
Welcome back from vacation. ...
Well I was receiving the mentioned error, when I am trying to encode the webclient.viewstate. Instead what I am doing is capturing the Viewstate from the response body and I am encoding it while adding to Postdata. It is working fine.
Thanks & Regards
Ajay |
|
| Back to top |
|
 |
Brian Donahue
Joined: 23 Aug 2004 Posts: 6369 Location: Red Gate Software
|
Posted: Fri Jun 09, 2006 6:04 pm Post subject: |
|
|
Hi Ajay,
If that's working for you, all the best! Normally this wouldn't be necessary unless there is something 'special' about the viewstate data like I mentioned in my previous reply. _________________ Brian Donahue
Technical Support
Red Gate Software Ltd.
44 (0)870 160 0037 ext 8521
US and CAN 1-866-RED GATE ext 8521 |
|
| Back to top |
|
 |
|
|
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