DotNetNewsgroup.com  
web access to complete list of Microsoft.NET newsgroups
   home   |   control panel login   |   archive  |  
 
  carried group
academic
adonet
aspnet
aspnet.announcements
aspnet.buildingcontrols
aspnet.caching
aspnet.datagridcontrol
aspnet.mobile
aspnet.security
aspnet.webcontrols
aspnet.webservices
assignment_manager
datatools
dotnet.distributed_apps
dotnet.general
dotnet.myservices
dotnet.nternationalization
dotnet.scripting
dotnet.security
dotnet.vjsharp
dotnet.vsa
dotnet.xml
dotnetfaqs
framework
framework.clr
framework.compactframework
framework.component_services
framework.controls
framework.databinding
framework.drawing
framework.enhancements
framework.interop
framework.odbcnet
framework.performance
framework.remoting
framework.sdk
framework.setup
framework.webservices
framework.windowsforms
framework.wmi
frwk.windowsforms.designtime
lang.csharp
lang.jscript
lang.vb
lang.vb.controls
lang.vb.data
lang.vb.upgrade
lang.vc
lang.vc.libraries
  
 
start date: Sun, 12 Aug 2007 17:37:16 -0500,    posted on: microsoft.public.dotnet.framework.aspnet        back       

Thread Index
  1    Amelyan


System.Security.Cryptography.CryptographicException: Padding is invalid and cannot be removed.   
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.CryptographicException: Padding is invalid and 
cannot be removed.

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

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

   at System.Security.Cryptography.CryptoStream.FlushFinalBlock()

   at 
System.Web.Configuration.MachineKeySection.EncryptOrDecryptData(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(Object 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.DecryptString(String s)

   at 
System.Web.Handlers.ScriptResourceHandler.DecryptParameter(NameValueCollection 
queryString)

   at System.Web.Handlers.ScriptResourceHandler.ProcessRequest(HttpContext 
context)

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

   at 
System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()

   at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& 
completedSynchronously)
Date:Sun, 12 Aug 2007 17:37:16 -0500   Author:  

Google
 
Web dotnetnewsgroup.com


COPYRIGHT ?2005, EUROFRONT WORLDWIDE LTD., ALL RIGHT RESERVE  |   Contact us