Notice: This website is an unofficial Microsoft Knowledge Base (hereinafter KB) archive and is intended to provide a reliable access to deleted content from Microsoft KB. All KB articles are owned by Microsoft Corporation. Read full disclaimer for more details.

UE-V 2.1 - TemplateConsole.exe crashes when UEV WMI classes are missing


View products that this article applies to.

Symptoms

The Microsoft User Experience Virtualization (UE-V) processes TemplateConsole.exe and UevSqmSession.exe may terminate with an exception.  The exception may occur when launching the Company Settings Center from the Start Menu or by double clicking its System Tray icon.

Faulting application name: TemplateConsole.exe, version: 2.0.319.2, time stamp: 0x52eeb1b5
Faulting module name: KERNELBASE.dll, version: 6.1.7601.18229, time stamp: 0x51fb1677
Exception code: 0xe0434352
Fault offset: 0x000000000000940d
Faulting process id: 0xda0
Faulting application start time: 0x01cf2d8b46916427
Faulting application path: C:\Program Files\Microsoft User Experience Virtualization\Agent\TemplateConsole.exe
Faulting module path: C:\Windows\system32\KERNELBASE.dll
Report Id: 85c91347-997e-11e3-b8d7-0027133d35ca

Application: TemplateConsole.exe
Framework Version: v4.0.30319
Description: The process was terminated due to an unhandled exception.
Exception Info: System.InvalidOperationException
Stack:
   at System.Windows.Window.set_Owner(System.Windows.Window)
   at Microsoft.Uev.TemplateConsole.Utils.AlertMessage(System.Windows.Window, System.String, System.String, System.String, Microsoft.Uev.Management.NotifyIcon, System.String, System.String, System.String, System.String, Boolean, System.Windows.Media.ImageSource)
   at Microsoft.Uev.TemplateConsole.Utils.AlertMessage(System.Windows.Window, Microsoft.Uev.TemplateConsole.AlertId, System.String, System.Object[])
   at Microsoft.Uev.TemplateConsole.App.Application_DispatcherUnhandledException(System.Object, System.Windows.Threading.DispatcherUnhandledExceptionEventArgs)
   at System.Windows.Threading.Dispatcher.CatchException(System.Exception)
   at MS.Internal.Threading.ExceptionFilterHelper.TryCatchWhen(System.Object, System.Delegate, System.Object, Int32, System.Delegate)
   at System.Windows.Threading.Dispatcher.WrappedInvoke(System.Delegate, System.Object, Int32, System.Delegate)
   at System.Windows.Threading.Dispatcher.InvokeImpl(System.Windows.Threading.DispatcherPriority, System.TimeSpan, System.Delegate, System.Object, Int32)
   at MS.Win32.HwndSubclass.SubclassWndProc(IntPtr, Int32, IntPtr, IntPtr)
   at MS.Win32.UnsafeNativeMethods.DispatchMessage(System.Windows.Interop.MSG ByRef)
   at System.Windows.Threading.Dispatcher.PushFrameImpl(System.Windows.Threading.DispatcherFrame)
   at System.Windows.Application.RunInternal(System.Windows.Window)
   at System.Windows.Application.Run()
   at Microsoft.Uev.TemplateConsole.App.Main()

UevSqmSession.exe starts up at user login, and repeats every 4 hours the user is logged in, this is defined in Task Scheduler.

Application: UevSqmSession.exe
Framework Version: v4.0.30319
Description: The process was terminated due to an unhandled exception.
Exception Info: System.Management.ManagementException
Stack:
   at System.Management.ManagementException.ThrowWithExtendedInfo(System.Management.ManagementStatus)
   at System.Management.ManagementScope.InitializeGuts(System.Object)
   at System.Management.ManagementScope.Initialize()
   at System.Management.ManagementObject.Initialize(Boolean)
   at System.Management.ManagementClass.GetInstances(System.Management.EnumerationOptions)
   at Microsoft.Uev.UevSqmSession.Program.Main(System.String[])

↑ Back to the top


Cause

This error may occur due to corrupt or incomplete UE-V WMI classes.

↑ Back to the top


Resolution

To resolve this error and allow TemplateConsole.exe and UevSqmSession.exe to run successfully, remove the UE-V classes from WMI and rebuild them using the following steps:

From an elevated command prompt run the following commands:

echo - Removing WMI classes -mofcomp "\Program Files\Microsoft User Experience Virtualization\Agent\mof\AgentWmiUninstall.mof"mofcomp "\Program Files\Microsoft User Experience Virtualization\Agent\mof\Microsoft.Uev.ManagedAgentWmiUninstall.mof"
echo - Registering WMI classes -mofcomp "\Program Files\Microsoft User Experience Virtualization\Agent\mof\AgentWmi.mof"mofcomp "\Program Files\Microsoft User Experience Virtualization\Agent\mof\Microsoft.Uev.ManagedAgentWmi.mof"


↑ Back to the top


Keywords: kb, kbprb, kbsurveynew, kbtshoot

↑ Back to the top

Article Info
Article ID : 3018608
Revision : 2
Created on : 3/27/2020
Published on : 3/27/2020
Exists online : False
Views : 208