469,643 Members | 1,226 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,643 developers. It's quick & easy.

Invalid length for a Base-64 char array ,Invalid_Viewstate

I have kind of wired problem, I using httpwebrequest to post form data to
server , in the GetResponse stage a WebException occurred, after tracing the
actual error that occurs on the server, I found the follows.

Invalid length for a Base-64 char array.

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.FormatException: Invalid length for a Base-64 char
array.

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:

[FormatException: Invalid length for a Base-64 char array.]\r\n
System.Convert.FromBase64String(String s) +0\r\n
System.Web.UI.LosFormatter.Deserialize(String input) +25\r\n
System.Web.UI.Page.LoadPageStateFromPersistenceMed ium()
+101\r\n\r\n[HttpException (0x80004005): Invalid_Viewstate tClient IP:
202.43.3.233\r\n\tPort: 1358\r\n\tUser-Agent: Mozilla/4.0 (compatible; MSIE
6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322; InfoPath.1; .NET CLR 1.0.3705)
ViewState: dDwtMTU1Mjc5NDYyMjt0PDtsPGk8MD47PjtsPHQ8O2w8aTwwPj tpPDI
O2k8ND47PjtsPHQ8O2w8aTwwPjs O2w8dDw7bDxpPDA O2k8MT47aTwzPjtpPDQ
O2k8NT47aTw2PjtpPDc O2k8OD47PjtsPHQ8cDxsPGlubmVyaHRtbDs
O2w8V0FFQyAtIFNlYXJjaDs
Pjs7Pjt0PHA8bDxpbm5lcmh0bWw7PjtsPA0KCQkJQGltcG9ydC B1cmwoL2Nzcy9XQUVDU3ViU3R5bGUuY3NzKVw7CQ0KCQkJQGlt cG9ydCB1cmwoL2Nzcy93YWVjTW9kdWxlLmNzcylcOwkJCQkNCg kJQGltcG9ydCBVUkwoL2Ntbi9jc3MvcG9ydGFsbWFzdGVyLmNz cylcOw0KOz4
Ozs
O3Q8cDxsPGNvbnRlbnQ7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j47Oz47dDxwPGw8Vm lzaWJsZTs O2w8bzxmPjs
Pjs7Pjs Pjs Pjs Pjs Pjs Pjt0PDtsPGk8MD47PjtsPHQ8O2w8aTwxPjs O2w8dDw7bDxpPDA
Oz47bDx0PDtsPGk8MT47PjtsPHQ8O2w8aTwwPjs
O2w8dDxwPGw8aW5uZXJodG1sOz47bDxcPGEgaHJlZj0iaHR0cD ovL3dhZWMyNS5hbC5pYmMuY29tLmF1LzEvMzIzMi83My9vdGhl cl9sYW5ndWFnZXMucG0iXD5PdGhlciBMYW5ndWFnZXNcPC9hXD 5cPGEgaHJlZj0iaHR0cDovL3dhZWMyNS5hbC5pYmMuY29tLmF1 LzEvOTMvNzMvc2l0ZW1hcC5wbSJcPlNpdGUgTWFwXDwvYVw
XDxhIGhyZWY9Imh0dHA6Ly93YWVjMjUuYWwuaWJjLmNvbS5hdS 8xLzMxNzAvNzMvZ2xvc3NhcnkucG0iXD5HbG9zc2FyeVw8L2Fc Plw8YSBocmVmPSJodHRwOi8vd2FlYzI1LmFsLmliYy5jb20uYX UvMS85MC83My9saW5rcy5wbSJcPkxpbmtzXDwvYVw
XDxhIGhyZWY9Imh0dHA6Ly93YWVjMjUuYWwuaWJjLmNvbS5hdS 8iXD5IZWxwXDwvYVw
XDxhIGhyZWY9Imh0dHA6Ly93YWVjMjUuYWwuaWJjLmNvbS5hdS 8xLzg5LzczL2xlZ2FsLnBtIlw
TGVnYWxcPC9hXD47Pj47Oz47Pj47Pj47Pj47Pj47Pj47Pj47Pj 47Pg==t
Http-Referer: Path: /Default.aspx.]
System.Web.UI.Page.LoadPageStateFromPersistenceMed ium() +441\r\n
System.Web.UI.Page.LoadPageViewState() +18
System.Web.UI.Page.ProcessRequestMain() +447
--------------------------------------------------------------------------------
Version Information: Microsoft .NET Framework Version:1.1.4322.2032; ASP.NET
Version:1.1.4322.2032.
AS you see the view state is quite large , but there is no proxey and it
work fine on te actual application witout simulating the request via
httpwebrequest.
Here you are some code :
HttpWebRequest objHttpWebRequest = (HttpWebRequest) WebRequest.Create (
_strUrl );
objHttpWebRequest.Method = "POST";
objHttpWebRequest.ContentType = "application/x-www-form-urlencoded";
objHttpWebRequest.Headers.Add("Cache-Control","no-cache");
if (_objCookieCollection["ASP.NET_SessionId"]!=null)
objHttpWebRequest.Headers.Add("Cookie",_objCookieC ollection["ASP.NET_SessionId"].Value);
objHttpWebRequest.UserAgent="Mozilla/4.0 (compatible; MSIE 6.0; Windows NT
5.1; SV1; .NET CLR 1.1.4322; InfoPath.1; .NET CLR 1.0.3705)";
StringBuilder sb = new StringBuilder ( );
int intNumKeys = _arrayListFormFields.Count;
int i = 0;
foreach ( FormField__ objFormField in _arrayListFormFields )
{
string strKeyName = objFormField.Key;
string strKeyValue = objFormField.Value;
string test="";
sb.Append ( strKeyName );
sb.Append ( "=" );
sb.Append (strKeyValue );
if ( i<intNumKeys-1 )
{
sb.Append ( "&" );
}
i++;
}

CookieContainer objCon= new CookieContainer();
if (_objCookieCollection!=null)
objCon.Add(_objCookieCollection);
objHttpWebRequest.CookieContainer=objCon;
string strPostData = sb.ToString ( );
ASCIIEncoding asciiEncoding = new ASCIIEncoding ( );
byte[] byteArrayPostData = asciiEncoding.GetBytes ( strPostData );
objHttpWebRequest.ContentLength = strPostData.Length;
Stream objRequestStream = objHttpWebRequest.GetRequestStream ( );
objRequestStream.Write( byteArrayPostData, 0, byteArrayPostData.Length );
objRequestStream.Close();
HttpWebResponse objWebResponse = null;
objWebResponse =(HttpWebResponse) objHttpWebRequest.GetResponse ( ); // The
error occurs here!!!!
Well I know that the problem is something is messing up the viewstate, but
what?

Any one has an answer?

Dec 15 '05 #1
3 15335
the ViewState string in the dump appears to have a "t" at the end. i
would have expected "=" to be the last character. that "t" looks
suspicious to me.

Dec 15 '05 #2
AL
this t is a typo, just ignore it.

"albert braun" wrote:
the ViewState string in the dump appears to have a "t" at the end. i
would have expected "=" to be the last character. that "t" looks
suspicious to me.

Dec 15 '05 #3
in that case, i'm suspicious of this line:

byte[] byteArrayPostData = asciiEncoding.GetBytes ( strPostData );

maybe you want to urlencode strPostData first?
or maybe you want to use a different encoding to get the bytes --
perhaps UTF-8 ?
or both?

that's my guess. i'd try to experiment with those things.

Dec 15 '05 #4

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

5 posts views Thread by Nick Flandry | last post: by
reply views Thread by dba123 | last post: by
1 post views Thread by banagani | last post: by
3 posts views Thread by =?Utf-8?B?Vmlub2Q=?= | last post: by
reply views Thread by gheharukoh7 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.