Wednesday, February 15, 2017

Quickfix: OpsMgr console crash with System.IO.FileNotFoundException error

Ran into an issue at a customer site today and I want to remember how to resolve it next time Smile

Installed the OpsMgr 2012 console by running the OMConsole.msi file instead of launching the installation from the splash screen, and then launched the console. The console will attempt to load, and then fail with a .Net error. The following event will be logged in the Application Event Log:

image

EventID: 1026
Source: .NET Runtime

Event message:

Application: Microsoft.EnterpriseManagement.Monitoring.Console.exe
Framework Version: v4.0.30319
Description: The process was terminated due to an unhandled exception.
Exception Info: System.IO.FileNotFoundException
   at Microsoft.EnterpriseManagement.Mom.Internal.UI.Console.ConsoleJobExceptionHandler.ExecuteJob(System.ComponentModel.IComponent, System.EventHandler`1<Microsoft.EnterpriseManagement.ConsoleFramework.ConsoleJobEventArgs>, System.Object, Microsoft.EnterpriseManagement.ConsoleFramework.ConsoleJobEventArgs)
   at Microsoft.EnterpriseManagement.ConsoleFramework.ConsoleJobsService.JobThread(System.Object)
   at System.Threading.ExecutionContext.RunInternal(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean)
   at System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean)
   at System.Threading.QueueUserWorkItemCallback.System.Threading.IThreadPoolWorkItem.ExecuteWorkItem()
   at System.Threading.ThreadPoolWorkQueue.Dispatch()

Issue is caused by missing prerequisite files, particularly the ReportViewer prereq. Download and install SQL CLR types and ReportViewer, and relaunch the console, and hey Presto!

No comments:

Related Posts with Thumbnails