FIX: EventLog.WriteEntry Method May Fail Under Stress (321563)
The information in this article applies to:
- Microsoft .NET Framework 1.0 SP1
This article was previously published under Q321563 SYMPTOMS
When you write to an event log from a .NET application, you may receive the following error message if the application is under heavy load:
System.ApplicationException: Access is denied.
The call stack trace appears as follows:
at System.Threading.Mutex.CreateMutexNative(Boolean initialState, String name, Boolean& createdNew)
at System.Threading.Mutex..ctor(Boolean initiallyOwned, String name)
at System.Diagnostics.SharedUtils.EnterMutex(String name)
at System.Diagnostics.EventLog.WriteEntry(String message, EventLogEntryType type, Int32 eventID, Int16 category, Byte[] rawData)
at System.Diagnostics.EventLog.WriteEntry(String message, EventLogEntryType type, Int32 eventID, Int16 category)
at System.Diagnostics.EventLog.WriteEntry(String message, EventLogEntryType type, Int32 eventID)
at System.Diagnostics.EventLog.WriteEntry(String message, EventLogEntryType type)
at System.Diagnostics.EventLog.WriteEntry(String message)
RESOLUTIONTo resolve this problem, obtain the latest service pack for Microsoft .NET Framework. For additional information, click the following article number to view the article in the
Microsoft Knowledge Base:
318836 INFO: How to Obtain the Latest .NET Framework Service Pack
The English version of this fix should have the following file attributes or later:
Date Time Version Size File name
------------------------------------------------------------
17-Apr-2002 23:53 1.0.3705.252 1,163,264 System.dll
STATUSMicrosoft has confirmed that this is a problem in the Microsoft products that are listed at the beginning of this article. This problem was first corrected in Microsoft .NET Framework Service Pack 2 (SP2).
Modification Type: | Minor | Last Reviewed: | 9/27/2005 |
---|
Keywords: | kbHotfixServer kbQFE kbbug kbfix kbNetFrame100PreSP2fix kbNetFrame100SP2fix KB321563 |
---|
|