By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
443,934 Members | 1,449 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 443,934 IT Pros & Developers. It's quick & easy.

Help Please -- "Error Message :Invalid character in a Base-64 string."

P: 36
Hi to all....

I have spent some time browsing for a solution to the following error but have unfortunatly not found any solution yet ,Please any help would be much appreciated....
-------------------------------------------------------------------------------------------------
This is the full error description...

"Error Message :Invalid character in a Base-64 string."

Error Source :mscorlib
Error Stack Trace : at System.Convert.FromBase64String(String s)
at System.Web.UI.ObjectStateFormatter.Deserialize(Str ing inputString)
at System.Web.UI.ObjectStateFormatter.System.Web.UI.I StateFormatter.Deserialize(String serializedState)
at System.Web.UI.Util.DeserializeWithAssert(IStateFor matter formatter, String serializedState)
at System.Web.UI.HiddenFieldPageStatePersister.Load()

Error TargetSite :Byte[] FromBase64String(System.String)
----------------------------------------------------------------------------------------------
I am using qurry string and view state in the same page, Is this error related with these, what will the good solution to solve this.. Any help please.......


Regards @shraf
Jul 31 '08 #1
Share this Question
Share on Google+
5 Replies


Plater
Expert 5K+
P: 7,872
Are you doing the FromBase64String yourself somewhere? It's very strange.
Jul 31 '08 #2

P: 36
Are you doing the FromBase64String yourself somewhere? It's very strange.
I am a newbie to this .net, could me pls let me know where we need to use "FromBase64String", u mean to use this methode in request.querrysting methode, If you have a sample code snip pls.............
Jul 31 '08 #3

Plater
Expert 5K+
P: 7,872
No I was asking if you are ALREADY using it.
I am going to guess no. I am also thinking it is related to the viewstate settings.
Jul 31 '08 #4

P: 36
No I was asking if you are ALREADY using it.
I am going to guess no. I am also thinking it is related to the viewstate settings.
Thanks for ur reply ...Yes,I am not using the "FromBase64String" in my page,

If its related to the ViewState, Let me say my problem, I have a dataList in my page , inorder to sort the List, I am using the view state to store datas, Any way How can i solve the ViewState problem(if its related to the ViewState)..

Please let me know
Jul 31 '08 #5

Frinavale
Expert Mod 5K+
P: 9,731
Thanks for ur reply ...Yes,I am not using the "FromBase64String" in my page,

If its related to the ViewState, Let me say my problem, I have a dataList in my page , inorder to sort the List, I am using the view state to store datas, Any way How can i solve the ViewState problem(if its related to the ViewState)..

Please let me know
It sounds like you are Encrypting your ViewState. Try removing this encryption and see if the error goes away. I've seen this error before...I remember something in my ViewState was being corrupted (interpreted as such anyways).

-Frinny
Aug 1 '08 #6

Post your reply

Sign in to post your reply or Sign up for a free account.