Microsoft KB Archive/927039

From BetaArchive Wiki
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.

Article ID: 927039

Article Last Modified on 6/11/2007


  • Microsoft Web Services Enhancements for Microsoft .NET 2.0


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 
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) 


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:

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:
[GRAPHIC: Download]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.

File name File version File size Date Time
Microsoft.web.services3.dll 3.0.6289.0 888,832 16-Oct-2006 22:08
Wsesettings3.dll 3.0.6289.0 360,448 16-Oct-2006 22:09
Wsesettingsvs3.dll 3.0.6289.0 65,536 16-Oct-2006 22:09
WSE 3.0 Runtime
File name File version File size Date Time
Microsoft.web.services3.dll 3.0.6289.0 888,832 16-Oct-2006 22:08


Microsoft has confirmed that this is a problem in the Microsoft products that are listed in the "Applies to" section.


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:

Additional query words: WSE CryptographicException

Keywords: kbbug kbfix kbqfe kbpubtypekc atdownload kbhotfixserver KB927039