472,328 Members | 1,550 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,328 software developers and data experts.

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
O3Q8cDxsP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jtsPG88Zj47Pj47Oz47dDxwPGw8Vm 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 15469
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Deep Purple | last post by:
I started with the following error... ------------------------------------------------------- An error occured while loading the schema with...
5
by: Nick Flandry | last post by:
I'm running into an Invalid Cast Exception on an ASP.NET application that runs fine in my development environment (Win2K server running IIS 5) and a...
10
by: Chet Cromer | last post by:
I am creating a set of base classes and sub classes to use throughout a program I'm developing. The base class represents a generic "lookup table"...
12
by: bcr07548 | last post by:
I am writing a web site that uses JavaScript to validate certain forms and I seem to be having some trouble. The site uses PHP and for one of the...
0
by: dba123 | last post by:
I am getting the following error when a sub domain is receiving a shared cookie: I have this in both web.config of each application. The 1.1 ...
2
by: sree reddy | last post by:
..cs using System; using System.Data; using System.Configuration; using System.Collections; using System.Web; using System.Web.Security;...
3
by: floppyzedolfin | last post by:
Hi there. I'm coding an encryption / decryption program. At this very moment, I think I should be pretty close from the end, but there's...
11
by: batmanfreeze | last post by:
I am using C# in .Net 1.1, and need to access the 'Client' Property of TcpClient, so I created a derived class to do this based upon the Microsoft...
1
by: banagani | last post by:
Hi All, I am facing an issue in the XmlTextWriter class in the dotnet 2.0. This is the sample code Actual XML is like this ...
3
by: =?Utf-8?B?Vmlub2Q=?= | last post by:
Hi All, I am facing an issue in the XmlTextWriter class in the dotnet 2.0. This is the sample code Actual XML is like this ...
0
by: concettolabs | last post by:
In today's business world, businesses are increasingly turning to PowerApps to develop custom business applications. PowerApps is a powerful tool...
0
by: teenabhardwaj | last post by:
How would one discover a valid source for learning news, comfort, and help for engineering designs? Covering through piles of books takes a lot of...
0
by: Kemmylinns12 | last post by:
Blockchain technology has emerged as a transformative force in the business world, offering unprecedented opportunities for innovation and...
0
by: CD Tom | last post by:
This only shows up in access runtime. When a user select a report from my report menu when they close the report they get a menu I've called Add-ins...
0
by: Naresh1 | last post by:
What is WebLogic Admin Training? WebLogic Admin Training is a specialized program designed to equip individuals with the skills and knowledge...
0
jalbright99669
by: jalbright99669 | last post by:
Am having a bit of a time with URL Rewrite. I need to incorporate http to https redirect with a reverse proxy. I have the URL Rewrite rules made...
0
by: antdb | last post by:
Ⅰ. Advantage of AntDB: hyper-convergence + streaming processing engine In the overall architecture, a new "hyper-convergence" concept was...
1
by: Matthew3360 | last post by:
Hi, I have a python app that i want to be able to get variables from a php page on my webserver. My python app is on my computer. How would I make it...
0
by: AndyPSV | last post by:
HOW CAN I CREATE AN AI with an .executable file that would suck all files in the folder and on my computerHOW CAN I CREATE AN AI with an .executable...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.