Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > System.Security.Cryptography.CryptographicExceptio n: Padding is invalid and cannot be removed.

Reply
Thread Tools

System.Security.Cryptography.CryptographicExceptio n: Padding is invalid and cannot be removed.

 
 
Amelyan
Guest
Posts: n/a
 
      08-12-2007
Why does this happen? How to fix it?

Once in a while I get error in ~/ScriptResource.axd?d=...

System.Reflection.TargetInvocationException: Exception has been thrown by
the target of an invocation. --->
System.Security.Cryptography.CryptographicExceptio n: Padding is invalid and
cannot be removed.

at
System.Security.Cryptography.RijndaelManagedTransf orm.DecryptData(Byte[]
inputBuffer, Int32 inputOffset, Int32 inputCount, Byte[]& outputBuffer,
Int32 outputOffset, PaddingMode paddingMode, Boolean fLast)

at
System.Security.Cryptography.RijndaelManagedTransf orm.TransformFinalBlock(Byte[]
inputBuffer, Int32 inputOffset, Int32 inputCount)

at System.Security.Cryptography.CryptoStream.FlushFin alBlock()

at
System.Web.Configuration.MachineKeySection.Encrypt OrDecryptData(Boolean
fEncrypt, Byte[] buf, Byte[] modifier, Int32 start, Int32 length, Boolean
useValidationSymAlgo)

at System.Web.UI.Page.DecryptString(String s)

--- End of inner exception stack trace ---

at System.RuntimeMethodHandle._InvokeMethodFast(Objec t target, Object[]
arguments, SignatureStruct& sig, MethodAttributes methodAttributes,
RuntimeTypeHandle typeOwner)

at System.RuntimeMethodHandle.InvokeMethodFast(Object target, Object[]
arguments, Signature sig, MethodAttributes methodAttributes,
RuntimeTypeHandle typeOwner)

at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags
invokeAttr, Binder binder, Object[] parameters, CultureInfo culture, Boolean
skipVisibilityChecks)

at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags
invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)

at System.Reflection.MethodBase.Invoke(Object obj, Object[] parameters)

at System.Web.Handlers.ScriptResourceHandler.DecryptS tring(String s)

at
System.Web.Handlers.ScriptResourceHandler.DecryptP arameter(NameValueCollection
queryString)

at System.Web.Handlers.ScriptResourceHandler.ProcessR equest(HttpContext
context)

at
System.Web.Handlers.ScriptResourceHandler.System.W eb.IHttpHandler.ProcessRequest(HttpContext
context)

at
System.Web.HttpApplication.CallHandlerExecutionSte p.System.Web.HttpApplication.IExecutionStep.Execut e()

at System.Web.HttpApplication.ExecuteStep(IExecutionS tep step, Boolean&
completedSynchronously)




 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Padding is invalid and cannot be removed. MC ASP .Net 4 10-05-2007 10:42 AM
Padding is invalid and cannot be removed. Amelyan ASP .Net 2 08-13-2007 05:22 PM
Padding is invalid and cannot be removed rdlauer ASP .Net 1 07-16-2007 02:46 PM
Strange error-(WebResource.axd) CryptographicException: Padding is invalid and cannot be removed. Brent K ASP .Net 2 07-12-2007 04:30 PM
Error: Padding is invalid and cannot be removed. pls help Robert Smith ASP .Net 0 12-08-2005 02:14 PM



Advertisments