Windows 7 Forums
Welcome to Windows 7 Forums. Our forum is dedicated to helping you find support and solutions for any problems regarding your Windows 7 PC be it Dell, HP, Acer, Asus or a custom build. We also provide an extensive Windows 7 tutorial section that covers a wide range of tips and tricks.

Windows 7: Unhandled exception in Managed Code Snap-In (?????)

25 Nov 2015   #1

Win7 Professional 64
Unhandled exception in Managed Code Snap-In (?????)

This problem falls under the old vaudeville joke "Doc, it hurts when I do this / well then don't do this"...

Last night, for the second time in about a month, I got a BSOD during my normal restart Windows sequence I do at the end of the night (the BSOD occurs after the programs close, the screen blacks, then a normal Windows screen appears saying "Windows is shutting down").

I discovered it this morning and was in a rush, so I just turned the computer off and restarted it, figuring the details would be logged in the event viewer.

They weren't. No record of any abnormalities in the past hour, day, week, etc.

Just for grins though, I looked at other parts of the event viewer that I usually skip (normally I look at the main summary screen, and the System Log under Windows Logs, and nothing else).

Everything went fine, but when I went to the Application log under Windows Logs, I got "MMC has detected an error in a snap-in and will unload it" (a popup Windows error message).

The specific error is listed as "Unhandled exception in Managed Code Snap-In" and comes up in a window mentioning FX:{b05566ad-fe9c-4363-be05-7a4cbb7cb510} - "Value was either too large or too small for an Int64" - Exception Type "System.OverflowException" and then this:

at System.UInt64.System.IConvertible.ToInt64(IFormatProvider provider)
at Microsoft.Windows.ManagementUI.CombinedControls.EventsResultSet.GetCountOfRecordsInResult()
at Microsoft.Windows.ManagementUI.CombinedControls.EventsResultSet.Initialize(String channelPath, String Query)
at Microsoft.Windows.ManagementUI.CombinedControls.EventDetailControl.InitializeEventListView(Boolean refresh)
at Microsoft.Windows.ManagementUI.CombinedControls.EventDetailControl.InitializeResultView()
at Microsoft.Windows.ManagementUI.CombinedControls.EventDetailControl.RefreshControls()
at Microsoft.Windows.ManagementUI.CombinedControls.EventDetailControl.ExecuteRefreshAction()
at Microsoft.Windows.ManagementUI.CombinedControls.EventDetailControl.OnAction(ManagementAction action)
at Microsoft.EventViewer.SnapIn.MMCEventsResultView.RefreshResults()
at Microsoft.EventViewer.SnapIn.MMCEventsResultView.OnShow()
at Microsoft.EventViewer.SnapIn.FormControlBase.OnFormShow()
at Microsoft.ManagementConsole.View.ProcessNotification(Notification notification)
at Microsoft.ManagementConsole.ViewMessageClient.ProcessNotification(Notification notification)
at Microsoft.ManagementConsole.Internal.IMessageClient.ProcessNotification(Notification notification)
at Microsoft.ManagementConsole.Executive.SnapInNotificationOperation.ProcessNotification()
at Microsoft.ManagementConsole.Executive.Operation.OnThreadTransfer(SimpleOperationCallback callback)
I can't say this is a new error, because I may very well have never looked at the Application log in Event Viewer before today.

Googling some suggested fixes, I ran SFC /scannow, and that found nothing wrong.

Can someone guide me through what's happening, and suggested fix(es)?

My System SpecsSystem Spec
27 Nov 2015   #2

Win7 Professional 64

After I posted this, I did a lot more googling, and eventually - it took a while - found a thread elsewhere describing what I was experiencing.

It turns out that my application log file was at the maximum size, and even though I had the application log properties set to automatically overwrite the events as needed, oldest first, this was the problem. When I saved and cleared the log (if you click "clear" it will give you the option of saving the log before clearing), this problem was solved.

I still don't understand why I've gotten two BSODs in the last six weeks, during the Windows shutdown prior to a Windows restart.

But at least this weird problem with the unhandled exception has been fixed, so I am marking the thread solved.
My System SpecsSystem Spec

 Unhandled exception in Managed Code Snap-In (?????)

Thread Tools

Similar help and support threads
Thread Forum
Unhandled Exception
How can i enable debugging here in this application , the error here is about the value,whenever i try to do something with the application a pop-up comes and it says that for further task you have to change the value and at the bottom it asks to do debugg or do anything else which is completely...
BSOD Help and Support
Unhandled exception
Hi all, I am having a very strange and annoying problem. I see a dialog pop up saying there was an unhandled exception with other information, but before I can read it my PC shuts down. Has anyone seen anything like this? How can I go about figuring out what is wrong and how to fix it? I have...
General Discussion
unhandled exception has occured....
Hi When I open my computer I see this note ("Unhandled exception has occurred in your application. If you click Continue, the application will ignore this error and attempt to continue. If you click Quit, the application will close immediately.) I use windows 7>>>please advise.....thanxxxxxx a lot
System Security
Hi, everytime i launch AutoCAD2010 i get a message box.. "Unhandled Exception Calibri Bold Caps doesnt support underlined" I tried reinstalling the font..but still occurs Help!
Unhandled exception...
"...has occurred in your application. If you click Continue the application will ignore this error and attempt to continue. If you click Quit, the application will close immediately". I'm sure I'm not the first to see this error message. What is the fix here? Thanks.
BSOD Help and Support

Our Sites

Site Links

About Us

Find Us

Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

Designer Media Ltd

All times are GMT -5. The time now is 09:33.
Twitter Facebook Google+