473,405 Members | 2,404 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

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

Invalid length for a Base-64 string. ??? Any ideas?

ErrorMessage:
-------------
Invalid length for a Base-64 string.

ErrorSource:
-------------
mscorlib

ErrorTargetSite:
----------------
Byte[] FromBase64String(System.String)

ErrorTrace:
----------------
at System.Convert.FromBase64String(String s)
at System.Web.UI.LosFormatter.Deserialize(String input)
at System.Web.UI.Page.LoadPageStateFromPersistenceMed ium()

= = = == = = = = = == = = == == == == ===== = = = = = = = = = == == = = ==

Hello All,

Can anyone explain me about this error. I do not think that it is with my
application code. I cannot debug this problem.....

Thanks!!!

Nov 19 '05 #1
3 2857
base64 string have to be even in length to be valid.

-- bruce (sqlwork.com)
"Diffident" <Di*******@discussions.microsoft.com> wrote in message
news:60**********************************@microsof t.com...
ErrorMessage:
-------------
Invalid length for a Base-64 string.

ErrorSource:
-------------
mscorlib

ErrorTargetSite:
----------------
Byte[] FromBase64String(System.String)

ErrorTrace:
----------------
at System.Convert.FromBase64String(String s)
at System.Web.UI.LosFormatter.Deserialize(String input)
at System.Web.UI.Page.LoadPageStateFromPersistenceMed ium()

= = = == = = = = = == = = == == == == ===== = = = = = = = = = == == = =
==

Hello All,

Can anyone explain me about this error. I do not think that it is with my
application code. I cannot debug this problem.....

Thanks!!!

Nov 19 '05 #2
Hi Bruce,

Thanks for the reply. But how can I get rid of this problem?

Thanks!!!

"Bruce Barker" wrote:
base64 string have to be even in length to be valid.

-- bruce (sqlwork.com)
"Diffident" <Di*******@discussions.microsoft.com> wrote in message
news:60**********************************@microsof t.com...
ErrorMessage:
-------------
Invalid length for a Base-64 string.

ErrorSource:
-------------
mscorlib

ErrorTargetSite:
----------------
Byte[] FromBase64String(System.String)

ErrorTrace:
----------------
at System.Convert.FromBase64String(String s)
at System.Web.UI.LosFormatter.Deserialize(String input)
at System.Web.UI.Page.LoadPageStateFromPersistenceMed ium()

= = = == = = = = = == = = == == == == ===== = = = = = = = = = == == = =
==

Hello All,

Can anyone explain me about this error. I do not think that it is with my
application code. I cannot debug this problem.....

Thanks!!!


Nov 19 '05 #3
with base64, every three bytes (24 bits) of data is converted to four bytes
of printable data (6 bit). when you convert base64 back, you read 4 bytes at
a time and convert back to 3 bytes. you get this error when you don't have a
mulitple of 4. most likely the data is bad, you can append 1 to 3 '='s
to get the correct length (these convert to nulls). you should figure out
why your base64 string are actually invalid.
-- bruce (sqlwork.com)


"Diffident" <Di*******@discussions.microsoft.com> wrote in message
news:AF**********************************@microsof t.com...
Hi Bruce,

Thanks for the reply. But how can I get rid of this problem?

Thanks!!!

"Bruce Barker" wrote:
base64 string have to be even in length to be valid.

-- bruce (sqlwork.com)
"Diffident" <Di*******@discussions.microsoft.com> wrote in message
news:60**********************************@microsof t.com...
> ErrorMessage:
> -------------
> Invalid length for a Base-64 string.
>
> ErrorSource:
> -------------
> mscorlib
>
> ErrorTargetSite:
> ----------------
> Byte[] FromBase64String(System.String)
>
> ErrorTrace:
> ----------------
> at System.Convert.FromBase64String(String s)
> at System.Web.UI.LosFormatter.Deserialize(String input)
> at System.Web.UI.Page.LoadPageStateFromPersistenceMed ium()
>
> = = = == = = = = = == = = == == == == ===== = = = = = = = = = == ==
> = =
> ==
>
> Hello All,
>
> Can anyone explain me about this error. I do not think that it is with
> my
> application code. I cannot debug this problem.....
>
> Thanks!!!
>
>
>


Nov 19 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Andrew Dalke | last post by:
Out of curiosity, I tried passing using an invalid base for a class. I can't explain why I got the error messages I did. Can someone here enlighten me? # Here I'm just curious >>> def...
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 test environment (also Win2K server running IIS...
6
by: sviau | last post by:
since rewriting our site from asp to asp.net, weve receveid many complaints from users stating that they get invalid urls, and cant access certain pages of our site nothing has changed in our...
0
by: Greg | last post by:
Hi, creating template1 database in /var/pgsql/data1/base/1... DEBUG: invoking IpcMemoryCreate(size=1081344) FATAL: shmat(id=1179648) failed: Invalid argument What's the problem why is shmat...
7
by: The|Godfather | last post by:
Hi everybody, I read Scotte Meyer's "Effective C++" book twice and I know that he mentioned something specific about constructors and destructors that was related to the following...
1
benchpolo
by: benchpolo | last post by:
I created a DTS process that extract data from a table to a .txt file using fixed-delimited column type. I have 39 fields in the SQL query script. When I execute the DTS process I am getting an...
1
by: SM | last post by:
Hi, I need your help, the following code is not working, ret = sr.ReadToEnd() throws the message error : Length of the data to decrypt is invalid. Any idea ? thank you public string...
14
by: rashgang | last post by:
i have dynamically created checkbox which will like yahoo mail if check box selected it will highlight a row but deleteall function is not working plz chek it function doDeleteAll($objArray){ ...
21
by: rashgang | last post by:
no check box selected when i gave delete all link the error is coming <?php include "includes/connection.php"; include "includes/Functions_category.php"; include...
1
by: MilesDyson88588 | last post by:
This is driving me insane. Ive checked every sample and cant see anything happening differently. I'm sending the file over a network so the key and IV bytes are sent with the file to be used to...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

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.