473,499 Members | 1,595 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 3023

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

Similar topics

3
29197
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
5265
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
17856
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
3346
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
7998
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
6199
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
5653
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
4357
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
2487
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
3552
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
7130
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7007
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7171
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
7220
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
6893
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
3098
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
3090
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1427
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
0
295
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

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.