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

System.Security.Cryptography.CryptographicException The system cannot find the file specified

Error Details: System.Security.Cryptography.CryptographicException The system cannot find the file specified

New Security constraints that were included into the windows server 2008, and a new user CryptoGraphic Operator will be created by default. If your Application is using RSACryptoServiceProvider on windows server 2008 with IIS 7, you can troubleshoot above issue through these steps easily.

  1. INETMGR (IIS 7) > Application Pools > YourApplicationPool > (Right Click) Advanced Settings > Set the Value of “Load User Profile” to “TRUE

IIS 7

Forms Authentication timeout in ASP.NET

Asp.Net the forms authentication timeout value by default is 30 Minutes, this means after 30 minutes of inactivity the application will redirect user to the login page again

You can change the timeout value by modifying the web.config

for example:

<authentication mode=”Forms”>
<forms name=”.ASPXFORMSDEMO” loginUrl=”./logon.aspx” protection=”All” path=”/” timeout=”2400″ />
</authentication>

+CMS Content Management System

+CMS is a web content management system for small and medium sized websites. +CMS enables your web enterprise and legacy data through powerful application and database connectors, Web services, and XML feeds.

For more information please visit us http://www.pluscms.info

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\