Re: Bad Data. Any idea what this means?



You can get that if the keys or iv are different on each side, or something
messes up the data in pipe, or one side did not fully flush the cryto
service provider correctly so that the final bytes are written. So "bad
data" is not the most helpful message, but that is all crypto service
provider knows - it is bad.

--
William Stacey [MVP]

<simonmarkjones@xxxxxxxxx> wrote in message
news:1156323578.416380.321480@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
| Hi my webserver is running .Net 1.1 and intermitently i get the
| following error. Does anyone out there have any idea why this happens?
| And how i can try and start solving the problem. Most of the time the
| website works okay. Thanks in advance!
|
| Server Error in '/Ed/ENROL' Application.
| --------------------------------------------------------------------------------
|
| Bad Data.
| Description: An unhandled exception occurred during the execution of
| the current web request. Please review the stack trace for more
| information about the error and where it originated in the code.
|
| Exception Details: System.Security.Cryptography.CryptographicException:
| Bad Data.
|
| Source Error:
|
| An unhandled exception was generated during the execution of the
| current web request. Information regarding the origin and location of
| the exception can be identified using the exception stack trace below.
|
|
| Stack Trace:
|
|
| [CryptographicException: Bad Data.
| ]
| System.Security.Cryptography.CryptoAPITransform._DecryptData(IntPtr
| hKey, Byte[] rgb, Int32 ib, Int32 cb, Boolean fDone) +0
|
| System.Security.Cryptography.CryptoAPITransform.TransformFinalBlock(Byte[]
| inputBuffer, Int32 inputOffset, Int32 inputCount) +805
| System.Security.Cryptography.CryptoStream.FlushFinalBlock() +40
| System.Web.Configuration.MachineKey.EncryptOrDecryptData(Boolean
| fEncrypt, Byte[] buf, Byte[] modifier, Int32 start, Int32 length) +139
| System.Web.Security.FormsAuthentication.Decrypt(String
| encryptedTicket) +114
| FSSL.Enrol.WebUI.Global.Application_AuthenticateRequest(Object
| sender, EventArgs e) +79
|
|
System.Web.SyncEventExecutionStep.System.Web.HttpApplication+IExecutionStep.Execute()
| +60
| System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean&
| completedSynchronously) +87
|
|
|
|
| --------------------------------------------------------------------------------
| Version Information: Microsoft .NET Framework Version:1.1.4322.2300;
| ASP.NET Version:1.1.4322.2300
|


.



Relevant Pages

  • Re: Updated info
    ... An unhandled exception occurred during the execution of the current web request. ... Information regarding the origin and location of the exception can be identified using the exception stack trace below. ... We've opened ports 443 and 4125 in the Netopia router but still can't get a RWW logon prompt. ...
    (microsoft.public.windows.server.sbs)
  • Re: trouble displaying image stored in database
    ... Using themed css files requires a header control on the page. ... Exception Details: System.InvalidOperationException: Using themed css files ... An unhandled exception was generated during the execution of the current web ... be identified using the exception stack trace below. ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: hexadecimal value 0x01, is an invalid character
    ... An unhandled exception occurred during the execution of the ... > current web request. ... > exception can be identified using the exception stack trace below. ... > postDataKey, NameValueCollection values) ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: Filling a dropdownlistbox with two items part 2
    ... Parameter name: index> Description: An unhandled exception occurred during the execution of the current web request. ... Information regarding the origin and location of the exception can be identified using the exception stack trace below. ...
    (microsoft.public.dotnet.languages.csharp)
  • Server Error in / Application.
    ... current web request. ... Please review the stack trace for more information about ... Exception Details: System.ArgumentOutOfRangeException: Specified argument ... An unhandled exception was generated during the execution of the current web ...
    (microsoft.public.dotnet.framework.aspnet.webcontrols)