views:

22

answers:

0

We are using c# webservice hosted in IIS. Webservice uses WSE3 extensions for Kerberos authentication. Sometimes webservice crashes with unhandled exception, which is loged in event log:

Ereignistyp: Fehler Ereignisquelle: ASP.NET 2.0.50727.0 Ereigniskategorie: Keine Ereigniskennung: 1334 Datum: 22.01.2010 Zeit: 08:39:49 Benutzer: Nicht zutreffend Computer: PRINTSERVER Beschreibung: Der Prozess wurde aufgrund einer unbehandelten Ausnahme beendet.

Application ID: /LM/W3SVC/1790319398/Root/PrintingService

Process ID: 2144

Exception: System.Security.Cryptography.CryptographicException

Message: Falscher Parameter.

StackTrace: bei System.Security.Cryptography.CryptographicException.ThrowCryptogaphicException(Int32 hr) bei System.Security.Cryptography.SafeHashHandle._FreeHash(IntPtr pHashCtx) bei System.Security.Cryptography.SafeHashHandle.ReleaseHandle() bei System.Runtime.InteropServices.SafeHandle.InternalFinalize() bei System.Runtime.InteropServices.SafeHandle.Dispose(Boolean disposing) bei System.Runtime.InteropServices.SafeHandle.Finalize()

Anybody knows, what can I do here to fix? There are some custom security filters configured, which allowes to use user name or kerberos token, depending on client.

As I understand, Finalize is called when garbage collector is called, but I do not find anything, I can dispose or resources to release...

Any ideas are welcome.