Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

CryptographicException: Ungültige Daten

265 views
Skip to first unread message

Michael Schwarz

unread,
Jul 29, 2003, 5:50:21 AM7/29/03
to
Hallo,

ich bekomme auf einem Server bei einem Kunden folgenden Fehler nach eine
erfolgten Forms Anmeldung. Kennt jemand diesen Fehler, bzw. kennt eine
Lösung? Wie es aussieht kann er das Anmeldeticket nicht entschlüsseln.

CIAO
Michael

Ungültige Daten
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:
Ungültige Daten

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: Ungültige Daten
]
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) +352
System.Security.Cryptography.CryptoStream.FlushFinalBlock() +40
System.Web.Security.FormsAuthentication.TripleDESDecrypt(Byte[]
ciphertext) +86
System.Web.Security.FormsAuthentication.Decrypt(String encryptedTicket)
+106
WebServer.Global.Application_AuthenticateRequest(Object sender, EventArgs
e) +635
System.Web.SyncEventExecutionStep.Execute() +60
System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean&
completedSynchronously) +87

Markus Oswald [MSFT]

unread,
Jul 30, 2003, 10:57:57 AM7/30/03
to
Create a machine key and update the machine.config files on both boxes with
the same key.
This will let the cookie get decrypted properly!

Here is a link that may be helpful!:
313091 HOW TO: Create Keys by Using Visual Basic .NET for Use in Forms
http://support.microsoft.com/?id=313091

HTH
Markus Oswald
Microsoft EMEA Developer Support

"Die Inhalte der in dieser Newsgroup eingestellten Nachrichten stammen von
Dritten.
Microsoft kann daher für die Richtigkeit und Vollständigkeit der Inhalte
keine Haftung übernehmen."


Michael Schwarz

unread,
Jul 30, 2003, 4:18:23 PM7/30/03
to
Danke, hatte gestern bereits einen ähnlichen Artikel gelesen... die Lösung
war aber die selbe. Trotzdem danke!

CIAO
Michael


"Markus Oswald [MSFT]" <mos...@online.microsoft.com> schrieb im Newsbeitrag
news:eHPZ5rqV...@tk2msftngp13.phx.gbl...

0 new messages