Tuesday, March 13, 2012

System.Security.Cryptography.CryptographicExceptio n:

Hi,

I have two web applications running on my machine.The
application is developed using asp.net 1.1 and vb.net.When i try to run
both the applications in the same browsers, i get the following error.
(System.Security.Cryptography.CryptographicExcepti on: Bad Data. at
System.Security.Cryptography.CryptoAPITransform._D ecryptData(IntPtr
hKey, Byte[] rgb, Int32 ib, Int32 cb, Boolean fDone) at
System.Security.Cryptography.CryptoAPITransform.Tr ansformFinalBlock(Byte[]
inputBuffer, Int32 inputOffset, Int32 inputCount) at
System.Security.Cryptography.CryptoStream.FlushFin alBlock() at
System.Web.Configuration.MachineKey.EncryptOrDecry ptData(Boolean
fEncrypt, Byte[] buf, Byte[] modifier, Int32 start, Int32 length) at
System.Web.Security.FormsAuthentication.Decrypt(St ring
encryptedTicket))

That is, when i run the first application and run the second
application in the same browser, i get this error.If i run it in two
different browsers, then it works fine.

Can any one help me out.r u using Forms authentication?

"muthu" <s.muthumanickam@.gmail.comwrote in message
news:1152521970.538688.249490@.m73g2000cwd.googlegr oups.com...

Quote:

Originally Posted by

Hi,
>
I have two web applications running on my machine.The
application is developed using asp.net 1.1 and vb.net.When i try to run
both the applications in the same browsers, i get the following error.
(System.Security.Cryptography.CryptographicExcepti on: Bad Data. at
System.Security.Cryptography.CryptoAPITransform._D ecryptData(IntPtr
hKey, Byte[] rgb, Int32 ib, Int32 cb, Boolean fDone) at
System.Security.Cryptography.CryptoAPITransform.Tr ansformFinalBlock(Byte[]
inputBuffer, Int32 inputOffset, Int32 inputCount) at
System.Security.Cryptography.CryptoStream.FlushFin alBlock() at
System.Web.Configuration.MachineKey.EncryptOrDecry ptData(Boolean
fEncrypt, Byte[] buf, Byte[] modifier, Int32 start, Int32 length) at
System.Web.Security.FormsAuthentication.Decrypt(St ring
encryptedTicket))
>
That is, when i run the first application and run the second
application in the same browser, i get this error.If i run it in two
different browsers, then it works fine.
>
Can any one help me out.
>

0 comments:

Post a Comment