an ASP.NET Open Source CMS & eCommerce platform
Search:
Skip Navigation LinksHome > DotShoppingCart Forums > Development > General Programming > Encrytion CryptographicException
Last Post 9/11/2009 8:54:47 AM By lukezy. 1 replies.
9/11/2009 12:34:47 AM
macker999
Posts: 30
Joined: 10/11/2008
Encrytion CryptographicException
Hi
 
All of a sudden our web site is getting
  • Exception type: CryptographicException
  • Exception message: Padding is invalid and cannot be removed.
 
errors. Is there anything I can do to fix this as its taking the web site down every day. We are not storing any sensitive data in our database for credit cards etc. Can we disable the encrytion if this is the case?
 
Below is the full error
 
Thanks for your help
 
etailed Error Message:

Event Type:        Warning

Event Source:    ASP.NET 2.0.50727.0

Event Category:                Web Event

Event ID:              1309

Date:                     10/09/2009

Time:                     17:46:11

User:                     N/A

Computer:          CT115

Description:

Event code: 3005

Event message: An unhandled exception has occurred.

Event time: 9/10/2009 5:46:11 PM

Event time (UTC): 9/10/2009 4:46:11 PM

Event ID: 1258ece686134dcaa79b35e9023462b8

Event sequence: 9

Event occurrence: 1

Event detail code: 0

 

Application information:

    Application domain: /LM/W3SVC/279123778/Root-1-128970747580156250

    Trust level: Full

    Application Virtual Path: /

    Application Path: C:\Inetpub\wwwroot\BT2_CMS\

    Machine name: CT115

 

Process information:

    Process ID: 6596

    Process name: w3wp.exe

    Account name: NT AUTHORITY\NETWORK SERVICE

 

Exception information:

    Exception type: CryptographicException

    Exception message: Padding is invalid and cannot be removed.

 

Request information:

    Request URL: http://www.bt2.ie/WebResource.axd?d=qMzPdKM7QXBLnAABc2u-6g2&t=633621111535771250

    Request path: /WebResource.axd

    User host address: 79.77.37.125

    User:

    Is authenticated: False

    Authentication Type:

    Thread account name: NT AUTHORITY\NETWORK SERVICE

 

Thread information:

    Thread ID: 30

    Thread account name: NT AUTHORITY\NETWORK SERVICE

    Is impersonating: False

    Stack trace:    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, IVType ivType, Boolean useValidationSymAlgo)

   at System.Web.UI.Page.DecryptStringWithIV(String s, IVType ivType)

   at System.Web.Handlers.AssemblyResourceLoader.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)
 
9/11/2009 8:54:47 AM
lukezy
Posts: 2109
Joined: 6/12/2007
Location:WA, US
Re: Encrytion CryptographicException
The encryption key is very important. Please take a look at here. You could recreate the encyprtion key to fix the problem. Please check here.
DotShoppingCart Staff