After urlDecode processes the text, it replaces all ‘+’ chars with ‘ ‘ … thus the error. You should simply call this statement to make it base 64 compatible again:
sEncryptedString = sEncryptedString.Replace(' ', '+');
More Related Contents:
- Invalid postback or callback argument. Event validation is enabled using ”
- What is the correct way to make a custom .NET Exception serializable?
- How can I solve a connection pool problem between ASP.NET and SQL Server?
- Single-threaded apartment – cannot instantiate ActiveX control
- ASP.NET MVC – Getting QueryString values
- System.Threading.Tasks – Limit the number of concurrent Tasks
- Conditions when finally does not execute in a .NET try-finally block
- Encrypting Connection String in web.config
- How to overcome StackOverflowException bypassing unhandled exception handling in .NET
- How to deserialize a JObject to .NET object
- ASP.NET how to Render a control to HTML?
- Using scripts in a master page with ASP.NET MVC
- Best Practices For Mapping DTO to Domain Object?
- Why does NotImplementedException exist?
- User Group and Role Management in .NET with Active Directory
- How can I handle forms authentication timeout exceptions in ASP.NET?
- Is it possible to catch an access violation exception in .NET?
- How to send an email with attachments using SmtpClient.SendAsync?
- input name and id changes when set runat=server
- ASP.Net MVC Redirect To A Different View
- Service has zero application (non-infrastructure) endpoints
- ASP.NET Web Forms and ASP.NET Web Pages
- ASP.NET strange compilation error
- Detecting what the target object is when NullReferenceException is thrown
- What’s the different between ASP.NET AJAX pageLoad() and JavaScript window.onload?
- What does {“d”:””} means in asp.net webservice response
- How do I control MembershipProvider instance creation/lifetime?
- Managing complex Web.Config files between deployment environments
- Integrate existing ASP.NET MVC application with Orchard CMS
- Why microsoft made JavaScriptSerializer obsolete prior to .net 3.5 SP1 and again active after that?