469,898 Members | 1,790 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,898 developers. It's quick & easy.

Length of the data to decrypt is invalid

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="157D2DCDD3299449RD4C15DGFC06C9D7742 CDEB5CC6B2F3146A954TR4C98182FF0HF97E63FFE44YU7K374 12DAEAEA41DE12DA90FB21320D6467E5282A7ADDC"
decryptionKey="7JU1C60AREEB8831524C03B273F6963BCA8 GTB3CCECBA7U4"
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.CryptographicExceptio n
Exception Message: Length of the data to decrypt is invalid.
Exception Source: mscorlib
Exception Target Site: TransformFinalBlock

---- Stack Trace ----

System.Security.Cryptography.RijndaelManagedTransf orm.TransformFinalBlock(inputBuffer As Byte[], inputOffset As Int32, inputCount As Int32)
(unknown file): N 1493330
System.Security.Cryptography.CryptoStream.FlushFin alBlock()
(unknown file): N 00030
System.Web.Configuration.MachineKeySection.Encrypt OrDecryptData(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(en cryptedTicket As String)
(unknown file): N 00247
InstantASP.Common.Authentication.Authentication.Ti cket()
(unknown file): N 00025
InstantASP.InstantForum.UI.Controls.Default.Initia lize(ctlSkin As Control)
(unknown file): N 00019
InstantASP.Common.UI.Base.Skin.CreateChildControls ()
(unknown file): N 00030
InstantASP.InstantForum.UI.Skinning.Base.CreateChi ldControls()
(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(includeStage sBeforeAsyncPoint As
Boolean, includeStagesAfterAsyncPoint As Boolean)
The 1.1 application that is doing am encrypt and decrypt on the cookie using
the System.Web.Security.FormsAuthentication.Encrypt and
System.Web.Security.FormsAuthentication.Decrypt methods
--
dba123
Aug 21 '06 #1
0 2661

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

1 post views Thread by gane kol | last post: by
reply views Thread by Hannibal111111 | last post: by
4 posts views Thread by floppyzedolfin | last post: by
13 posts views Thread by Tom Andrecht | last post: by
reply views Thread by Salome Sato | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.