System.FormatException: Invalid length for a Base-64 char array.

Exception Details: System.FormatException: Invalid length for a Base-64 char array.

While passing the data through GET, Request.Querystring object interprets the “+” sign as a space, and that causes problems for encoding. This throws error Invalid length for a Base-64 char array. You can resolve this issue using

Example:


While passing the data through GET, Request.Querystring object interprets the “+” sign as a space, and that causes problems for encoding. This throws error Invalid length for a Base-64 char array. You can resolve this issue using

Advertisements

Solution for ASP.NET Error: Could not load file or assembly ‘System.Web.Extensions’

Reason
The Main reason for this error is ‘Your Application uses Microsoft ASP.NET 2.0 AJAX Extensions 1.0 and they had not been installed on your hosting server’

Solution – 1

  1. Download the ‘ASPAJAXExtSetup.msi‘ installer from Microsoft and run it on the live server. The required .dll files would then be inserted into the GAC

Solution – 2

  1.  Your Server did not exhibit the problem, so server obviously had the dll files. Then The Simple Answer is to place a copy of these following files in the applicatiion’s ‘Bin’ folder
    1. System.Web.Extensions.Design.dll
    2. System.Web.Extensions.dll

    You can find these files at C:\Program Files\Microsoft ASP.NET\ASP.NET 2.0 AJAX Extensions\v1.0.61025\