Length of the data to decrypt is invalid

G

Guest

I am getting the following error when a sub domain is receiving a shared
cookie:

I have this in both web.config of each application. The 1.1 application
does not have the decryption= value because you cannot have that for 1.1 or
asp.net will error out. The source application is coded in .NET 2.0 but the
target application that's sharing the source app's cookie is a .NET 1.1 app.

<machineKey
validationKey="157D2DCDD3299449RD4C15DGFC06C9D7742CDEB5CC6B2F3146A954TR4C98182FF0HF97E63FFE44YU7K37412DAEAEA41DE12DA90FB21320D6467E5282A7ADDC"
decryptionKey="7JU1C60AREEB8831524C03B273F6963BCA8GTB3CCECBA7U4"
validation="SHA1" decryption="3DES" />



Unexpected Problem Occurred!
This error has been logged. If this problem persists please contact the web
master.
More Information...
Detailed error information follows:

Date and Time: 8/18/2006 10:13:35 PM
Machine Name: srV_sgg
Process User: srV_sgg\ASPNET
Remote User:
Remote Address: 127.0.0.1
Remote Host: 127.0.0.1
URL: http://www.test.com/Default.aspx

NET Runtime version: 2.0.50727.42
Application Domain: /LM/W3SVC/2/Root-1-128004307979440000
Assembly Codebase:
C:/WINDOWS/Microsoft.NET/Framework/v2.0.50727/mscorlib.dll
Assembly Full Name: mscorlib, Version=2.0.0.0, Culture=neutral,
PublicKeyToken=b77a5c561934e089
Assembly Version: 2.0.0.0
Assembly Build Date: 9/23/2005 7:28:56 AM

Exception Type: System.Security.Cryptography.CryptographicException
Exception Message: Length of the data to decrypt is invalid.
Exception Source: mscorlib
Exception Target Site: TransformFinalBlock

---- Stack Trace ----

System.Security.Cryptography.RijndaelManagedTransform.TransformFinalBlock(inputBuffer As Byte[], inputOffset As Int32, inputCount As Int32)
(unknown file): N 1493330
System.Security.Cryptography.CryptoStream.FlushFinalBlock()
(unknown file): N 00030
System.Web.Configuration.MachineKeySection.EncryptOrDecryptData(fEncrypt
As Boolean, buf As Byte[], modifier As Byte[], start As Int32, length As
Int32, useValidationSymAlgo As Boolean)
(unknown file): N 00154
System.Web.Security.FormsAuthentication.Decrypt(encryptedTicket As String)
(unknown file): N 00247
InstantASP.Common.Authentication.Authentication.Ticket()
(unknown file): N 00025
InstantASP.InstantForum.UI.Controls.Default.Initialize(ctlSkin As Control)
(unknown file): N 00019
InstantASP.Common.UI.Base.Skin.CreateChildControls()
(unknown file): N 00030
InstantASP.InstantForum.UI.Skinning.Base.CreateChildControls()
(unknown file): N 00037
System.Web.UI.Control.EnsureChildControls()
(unknown file): N 00087
System.Web.UI.Control.PreRenderRecursiveInternal()
(unknown file): N 00041
System.Web.UI.Control.PreRenderRecursiveInternal()
(unknown file): N 00161
System.Web.UI.Control.PreRenderRecursiveInternal()
(unknown file): N 00161
System.Web.UI.Control.PreRenderRecursiveInternal()
(unknown file): N 00161
System.Web.UI.Control.PreRenderRecursiveInternal()
(unknown file): N 00161
System.Web.UI.Page.ProcessRequestMain(includeStagesBeforeAsyncPoint As
Boolean, includeStagesAfterAsyncPoint As Boolean)
(unknown file): N 01360
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top