473,320 Members | 1,936 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

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 3001

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Jimski | last post by:
Hello all, I am having a problem where I get an error message when I call FlushFinalBlock when decrypting my encrypted text. I am using the Rijndael algorithm. The error message is "Length...
1
by: gane kol | last post by:
Hi I am using DES algorithm. I am getting an error message in a few cases of the querystring Error Message : Length of the data to decrypt is invalid. Error Method : System.String...
7
by: Dica | last post by:
i've used the sample code from msdn to create an encyption/decryption assembly as found here: http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnnetsec/html/SecNetHT10.asp i'm...
0
by: Hannibal111111 | last post by:
I found this code on a site for doing string encryption/decryption. The string will encrypt fine, but I get this error when I try to decrypt. Any idea why? I posted the code below. The error...
1
by: Sathyaish | last post by:
I have the following scenario: Algorithm: 3DES Cipher Mode: CBC Key Size: 128-bit Block Size: 64 bit IV: 0x0000000000000000 (an eight byte array of zeros) The results I get using .NET with...
4
by: floppyzedolfin | last post by:
Hello! I'm actually encoding an encryption / decryption program. The encryption programes takes a file path in parameter, and encrypts the contents of the file and stores that into another file. ...
4
by: Fritjolf | last post by:
Hi. I've got a strange problem... I've made a simple program to test encryption/decryption. I use Rijndael encryption and here are the most important properties. RijndaelManaged cipher =...
3
by: Sin Jeong-hun | last post by:
It seems like the Protect() uses the Windows accout information to encrypt data. If I know the user name and the password, can I decrypt it on another PC? If it is not, how about the exported key?...
1
by: SM | last post by:
Hi, I need your help, the following code is not working, ret = sr.ReadToEnd() throws the message error : Length of the data to decrypt is invalid. Any idea ? thank you public string...
13
by: Tom Andrecht | last post by:
I'm trying to get some encryption/decryption routines going to take care of my data, and while the encryption is working great, I keep running into the message "Padding is invalid and cannot be...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.