Microsoft KB Archive/927039

= FIX: Memory corruption occurs when you use the Kerberos feature in WSE 3.0 for Microsoft .NET =

Article ID: 927039

Article Last Modified on 6/11/2007

-

APPLIES TO


 * Microsoft Web Services Enhancements for Microsoft .NET 2.0

-



SYMPTOMS
Consider the following scenario. You use the Kerberos feature in Microsoft Web Services Enhancements (WSE) 3.0 for Microsoft .NET. You use this feature in a high-stress environment that triggers the garbage collector to reallocate the memory that was just allocated. In this scenario, the reallocated memory is not pinned. Additionally, a CryptographicException class exception that resembles the following may be logged in the Application log:

Event Type:    Error Event Source:  Microsoft WSE 3.0 Event Category: None Event ID:      0 Date:          Date Time:          Time User:          N/A Computer:      ComputerName Description: System.Security.Cryptography.CryptographicException: Bad Hash.

at System.Security.Cryptography.CryptographicException.ThrowCryptogaphicException(Int32 hr) at System.Security.Cryptography.SafeHashHandle._FreeHash(IntPtr pHashCtx) at System.Security.Cryptography.SafeHashHandle.ReleaseHandle at System.Runtime.InteropServices.SafeHandle.InternalDispose at System.Runtime.InteropServices.SafeHandle.Dispose(Boolean disposing) at System.Runtime.InteropServices.SafeHandle.Dispose at System.Security.Cryptography.SHA1CryptoServiceProvider.Initialize at System.Security.Cryptography.HMAC.Initialize at Microsoft.Web.Services3.Security.Cryptography.PSHA1.GetByte at Microsoft.Web.Services3.Security.Cryptography.PSHA1.GetKeyBytes(Int32 position, Int32 size) at Microsoft.Web.Services3.Security.Tokens.DerivedKeyToken.get_Key at Microsoft.Web.Services3.Security.MessageSignature.get_VerificationKey at Microsoft.Web.Services3.Security.MessageSignature.CheckSignature at Microsoft.Web.Services3.Security.Security.LoadXml(XmlElement element) at Microsoft.Web.Services3.Security.Security.CreateFrom(SoapEnvelope envelope, String localActor, String serviceActor)

at Microsoft.Web.Services3.Security.ReceiveSecurityFilter.ProcessMessage(SoapEnvelope envelope) at Microsoft.Web.Services3.Pipeline.ProcessInputMessage(SoapEnvelope envelope) at Microsoft.Web.Services3.Messaging.SoapReceiver.FilterMessage(SoapEnvelope envelope) at Microsoft.ConnectedServices.Sdk.Messaging.CsfService.FilterMessage(SoapEnvelope envelope) at Microsoft.Web.Services3.Messaging.SoapReceiver.ProcessMessage(SoapEnvelope message)



RESOLUTION
A supported hotfix is now available from Microsoft. However, it is intended to correct only the problem that this article describes. Apply it only to systems that are experiencing this specific problem.

To resolve this problem, contact Microsoft Customer Support Services to obtain the hotfix. For a complete list of Microsoft Customer Support Services telephone numbers and information about support costs, visit the following Microsoft Web site:

http://support.microsoft.com/contactus/?ws=support

Note In special cases, charges that are ordinarily incurred for support calls may be canceled if a Microsoft Support Professional determines that a specific update will resolve your problem. The usual support costs will apply to additional support questions and issues that do not qualify for the specific update in question.

Download information
The following file is available for download from the Microsoft Download Center:

Download the Microsoft WSE 3.0 Runtime.msi package now.

File information
The English version of this hotfix has the file attributes (or later file attributes) that are listed in the following table. The dates and times for these files are listed in Coordinated Universal Time (UTC). When you view the file information, it is converted to local time. To find the difference between UTC and local time, use the Time Zone tab in the Date and Time item in Control Panel.

WSE 3.0 Runtime


STATUS
Microsoft has confirmed that this is a problem in the Microsoft products that are listed in the &quot;Applies to&quot; section.



MORE INFORMATION
For more information, click the following article number to view the article in the Microsoft Knowledge Base:

824684 Description of the standard terminology that is used to describe Microsoft software updates

For more information about the CryptographicException class, visit the following Microsoft Developer Network (MSDN) Web site:

http://msdn2.microsoft.com/en-us/library/system.security.cryptography.cryptographicexception.aspx

Additional query words: WSE CryptographicException

Keywords: kbbug kbfix kbqfe kbpubtypekc atdownload kbhotfixserver KB927039

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.