System.ComponentModel.Win32Exception thrown from System.Diagnostics.EventLog.get_OldestEntryNumber()

EDN Admin

Well-known member
Joined
Aug 7, 2010
Messages
12,794
Location
In the Machine
Hi, I have seen some instances of my application crashing because there is a System.ComponentModel.Win32Exception thrown, I have been having a look in WinDbg and none of my code is on the call stack.
The call stack looks like this:

049df220 74015058 (MethodDesc 0x73e2b7c4 +0x18 System.Security.CodeAccessPermission.RevertAssert()), calling (MethodDesc 0x73ec84fc +0 System.Security.SecurityRuntime.RevertAssert(System.Threading.StackCrawlMark ByRef))
049df22c 73bf4598 (MethodDesc 0x736bc65c +0xa0 System.Diagnostics.SharedUtils.CreateSafeWin32Exception(Int32)), calling (MethodDesc 0x73e2b7c4 +0 System.Security.CodeAccessPermission.RevertAssert())
049df264 73ce6fa0 (MethodDesc 0x736e064c System.Diagnostics.EventLog.get_OldestEntryNumber()), calling mscorwks!StrongNameErrorInfo+0x1031b
049df274 73bf24ed (MethodDesc 0x736e06e8 +0x1bd System.Diagnostics.EventLog.CompletionCallback(System.Object)), calling (MethodDesc 0x736e064c +0 System.Diagnostics.EventLog.get_OldestEntryNumber())
049df2a8 749b8cef mscorwks!CoUninitializeEE+0x5687, calling mscorwks!CoUninitializeEE+0x5613
049df2bc 73bf0fe4 (MethodDesc 0x736e096c +0x94 System.Diagnostics.EventLog.StaticCompletionCallback(System.Object, Boolean)), calling 737443d4
049df2ec 744fc3b8 (MethodDesc 0x73eec4b8 +0x38 System.Threading._ThreadPoolWaitOrTimerCallback.WaitOrTimerCallback_Context(System.Object, Boolean))
049df2f8 744fc373 (MethodDesc 0x73eec4ac +0x7 System.Threading._ThreadPoolWaitOrTimerCallback.WaitOrTimerCallback_Context_f(System.Object)), calling (MethodDesc 0x73eec4b8 +0 System.Threading._ThreadPoolWaitOrTimerCallback.WaitOrTimerCallback_Context(System.Object,
Boolean))
049df2fc 7400027f (MethodDesc 0x73e22784 +0x6f System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object))
049df310 744fc477 (MethodDesc 0x73eec4c4 +0xb3 System.Threading._ThreadPoolWaitOrTimerCallback.PerformWaitOrTimerCallback(System.Object, Boolean)), calling (MethodDesc 0x73e22784 +0 System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext,
System.Threading.ContextCallback, System.Object))
049df328 74991b5c mscorwks+0x1b5c
049df338 749a2209 mscorwks!LogHelp_NoGuiOnAssert+0x618d, calling mscorwks+0x1b29
049df3b8 749a286f mscorwks!LogHelp_NoGuiOnAssert+0x67f3, calling mscorwks!LogHelp_NoGuiOnAssert+0x60ee
049df3d8 749a28b0 mscorwks!LogHelp_NoGuiOnAssert+0x6834, calling mscorwks!LogHelp_NoGuiOnAssert+0x67d5
049df43c 749a2921 mscorwks!LogHelp_NoGuiOnAssert+0x68a5, calling mscorwks!LogHelp_NoGuiOnAssert+0x67f7
049df470 74bd72d9 mscorwks!GetAddrOfContractShutoffFlag+0x29673, calling mscorwks!LogHelp_NoGuiOnAssert+0x6870
049df4d0 749b846f mscorwks!CoUninitializeEE+0x4e07
049df4e4 749b840b mscorwks!CoUninitializeEE+0x4da3, calling mscorwks!CoUninitializeEE+0x4ddc
049df514 749b8432 mscorwks!CoUninitializeEE+0x4dca, calling mscorwks!LogHelp_NoGuiOnAssert+0x1993
049df518 7499c88c mscorwks!LogHelp_NoGuiOnAssert+0x810, calling mscorwks+0x2047
049df578 749b8331 mscorwks!CoUninitializeEE+0x4cc9, calling mscorwks!CoUninitializeEE+0x4cf4
049df5b4 749b84bd mscorwks!CoUninitializeEE+0x4e55, calling mscorwks!CoUninitializeEE+0x4ca4
049df5dc 74aee708 mscorwks!CreateApplicationContext+0x20d48, calling mscorwks!CoUninitializeEE+0x4e30
049df5f4 74bd7656 mscorwks!GetAddrOfContractShutoffFlag+0x299f0, calling mscorwks!CreateApplicationContext+0x20d35
049df63c 74c5c69f mscorwks!TranslateSecurityAttributes+0x28d6c
049df66c 74a8115b mscorwks!CorExitProcess+0x145e5, calling mscorwks+0x17bc
049df680 74c5c776 mscorwks!TranslateSecurityAttributes+0x28e43, calling mscorwks!TranslateSecurityAttributes+0x28cda
049df68c 74a6f745 mscorwks!CorExitProcess+0x2bcf
049df6ac 7499a221 mscorwks+0xa221, calling mscorwks+0xa1bc
049df6c0 7499a1aa mscorwks+0xa1aa, calling mscorwks+0xa205
049df6f4 74ad1ec9 mscorwks!CreateApplicationContext+0x4509
049df8f8 74ad1eb7 mscorwks!CreateApplicationContext+0x44f7, calling mscorwks!LogHelp_NoGuiOnAssert+0x1f04
049df90c 75193677 kernel32!BaseThreadInitThunk+0xe
049df918 77589d72 ntdll!__RtlUserThreadStart+0x70
049df958 77589d45 ntdll!_RtlUserThreadStart+0x1b, calling ntdll!__RtlUserThreadStart


<p style="text-align:left <span style="color:#333333; font-family:Segoe UI,Lucida Grande,Verdana,Arial,Helvetica,sans-serif; font-size:x-small <span style="line-height:16px <br/>

<br/>

View the full article
 
Back
Top