Configuration Manager Admin Console crashes when i create a Migration Job

Jegg Niklas 30 Reputation points
2023-03-28T12:18:20.11+00:00

Hello,

i am in the middle of a migration from Endpoint Configuration Manager 2211 (Windows server 2019) to Windows Server 2022.

Everything is working fine until i try to create a migration job. As soon as I Open it, enter a Job name and click "next" the admin console crashes without any significant errors.

The only errors i get are in the Windows event log first one is "Critical"

System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.NullReferenceException: Object reference not set to an instance of an object.
   at Microsoft.ConfigurationManagement.ManagementProvider.WqlQueryEngine.WqlQueryPropertySingleItem.get_IntegerValue()

then i get a .net Runtime error

Application: Microsoft.ConfigurationManagement.exe
Framework Version: v4.0.30319
Description: The process was terminated due to an unhandled exception.
Exception Info: System.NullReferenceException
   at Microsoft.ConfigurationManagement.ManagementProvider.WqlQueryEngine.WqlQueryPropertySingleItem.get_IntegerValue()
   at Microsoft.ConfigurationManagement.AdminConsole.MigrationJob.V5MigrationJobPages.MigrationJobGeneralPageControl.prepareDataWorker_QueryProcessorObjectsReady(System.Object, Microsoft.ConfigurationManagement.ManagementProvider.QueryProcessorObjectsEventArgs)

and an Application Error

Faulting application name: Microsoft.ConfigurationManagement.exe, version: 5.2211.1064.1003, time stamp: 0xe8819897

Faulting module name: KERNELBASE.dll, version: 10.0.22621.1413, time stamp: 0xac6c9125

I have now tried reinstalling the site server, reinstalling/repairing .net on both servers.

I have also tried to create a whole new Site server on a new Server2022 with the same result.

However the connection between the 2 new servers and the "migration job" works fine.

Has anyone every came across this error?

Thank you and BR Niklas

Windows Server
Windows Server
A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.
12,950 questions
Microsoft Configuration Manager
0 comments No comments
{count} vote

6 answers

Sort by: Most helpful
  1. AllenLiu-MSFT 44,346 Reputation points Microsoft Vendor
    2023-03-29T06:21:06.2833333+00:00

    Hi, @Jegg Niklas

    Thank you for posting in Microsoft Q&A forum.

    Have we checked below thread, it has the similar issue and fixed by .NET Security update from windows update.

    https://social.technet.microsoft.com/Forums/en-US/3dba5855-b28a-4be8-a7c0-40792651640e/sccm-admin-console-crashing


    If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Add comment".

    0 comments No comments

  2. Jegg Niklas 30 Reputation points
    2023-03-29T06:38:20.1566667+00:00

    Hi @AllenLiu-MSFT

    thanks for the reply! My .net Versions are

    Old Windows Server 2019: 4.8.03761

    New Server 2022: 4.8.04161

    Which Versions should i target?

    Thank you and BR Niklas

    0 comments No comments

  3. AllenLiu-MSFT 44,346 Reputation points Microsoft Vendor
    2023-03-29T07:34:15.5533333+00:00

    Hi, @Jegg Niklas

    Thank you for posting in Microsoft Q&A forum.

    Have we installed the KB5022782 Cumulative Update for .NET Framework 3.5, 4.7.2 and 4.8 for Windows 10, version 1809 and Windows Server 2019?

    https://support.microsoft.com/en-us/topic/february-14-2023-kb5022782-cumulative-update-for-net-framework-3-5-4-7-2-and-4-8-for-windows-10-version-1809-and-windows-server-2019-b50e02f5-64e0-4bfb-a86f-db8d2ddd7986


    If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Add comment".

    0 comments No comments

  4. Jegg Niklas 30 Reputation points
    2023-03-29T07:56:57.26+00:00

    Hi @AllenLiu-MSFT

    i have re-checked and also ran the Powershell https://support.microsoft.com/en-us/topic/kb5022083-change-in-how-wpf-based-applications-render-xps-documents-a4ae4fa4-bc58-4c37-acdd-5eebc4e34556

    with the result of "Installation completed". I Then rebooted both servers but when trying to create a migration job i still get th same error in windows event log.

    Application: Microsoft.ConfigurationManagement.exe
    Framework Version: v4.0.30319
    Description: The process was terminated due to an unhandled exception.
    Exception Info: System.NullReferenceException
       at Microsoft.ConfigurationManagement.ManagementProvider.WqlQueryEngine.WqlQueryPropertySingleItem.get_IntegerValue()
       at Microsoft.ConfigurationManagement.AdminConsole.MigrationJob.V5MigrationJobPages.MigrationJobGeneralPageControl.prepareDataWorker_QueryProcessorObjectsReady(System.Object, Microsoft.ConfigurationManagement.ManagementProvider.QueryProcessorObjectsEventArgs)
       at Microsoft.ConfigurationManagement.ManagementProvider.SmsBackgroundWorker.workerThread_ProgressChanged(System.Object, System.ComponentModel.ProgressChangedEventArgs)
       at System.ComponentModel.BackgroundWorker.OnProgressChanged(System.ComponentModel.ProgressChangedEventArgs)
       at System.ComponentModel.BackgroundWorker.ProgressReporter(System.Object)
       at System.Windows.Threading.ExceptionWrapper.InternalRealCall(System.Delegate, System.Object, Int32)
       at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(System.Object, System.Delegate, System.Object, Int32, System.Delegate)
       at System.Windows.Threading.DispatcherOperation.InvokeImpl()
       at System.Windows.Threading.DispatcherOperation.InvokeInSecurityContext(System.Object)
       at MS.Internal.CulturePreservingExecutionContext.CallbackWrapper(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.ExecutionContext.Run(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object)
       at MS.Internal.CulturePreservingExecutionContext.Run(MS.Internal.CulturePreservingExecutionContext, System.Threading.ContextCallback, System.Object)
       at System.Windows.Threading.DispatcherOperation.Invoke()
       at System.Windows.Threading.Dispatcher.ProcessQueue()
       at System.Windows.Threading.Dispatcher.WndProcHook(IntPtr, Int32, IntPtr, IntPtr, Boolean ByRef)
       at MS.Win32.HwndWrapper.WndProc(IntPtr, Int32, IntPtr, IntPtr, Boolean ByRef)
       at MS.Win32.HwndSubclass.DispatcherCallbackOperation(System.Object)
       at System.Windows.Threading.ExceptionWrapper.InternalRealCall(System.Delegate, System.Object, Int32)
       at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(System.Object, System.Delegate, System.Object, Int32, System.Delegate)
       at System.Windows.Threading.Dispatcher.LegacyInvokeImpl(System.Windows.Threading.DispatcherPriority, System.TimeSpan, System.Delegate, System.Object, Int32)
       at MS.Win32.HwndSubclass.SubclassWndProc(IntPtr, Int32, IntPtr, IntPtr)
       at System.Windows.Forms.UnsafeNativeMethods.DispatchMessageW(MSG ByRef)
       at System.Windows.Forms.Application+ComponentManager.System.Windows.Forms.UnsafeNativeMethods.IMsoComponentManager.FPushMessageLoop(IntPtr, Int32, Int32)
       at System.Windows.Forms.Application+ThreadContext.RunMessageLoopInner(Int32, System.Windows.Forms.ApplicationContext)
       at System.Windows.Forms.Application+ThreadContext.RunMessageLoop(Int32, System.Windows.Forms.ApplicationContext)
       at System.Windows.Forms.Application.RunDialog(System.Windows.Forms.Form)
       at System.Windows.Forms.Form.ShowDialog(System.Windows.Forms.IWin32Window)
       at System.Windows.Forms.Form.ShowDialog()
       at Microsoft.ConfigurationManagement.AdminConsole.MigrationJob.V5MigrationJobPages.MigrationJobGeneralPageControl.OnNavigating(Microsoft.ConfigurationManagement.AdminConsole.NavigationType)
       at Microsoft.ConfigurationManagement.AdminConsole.SmsWizardPage.OnDeactivate()
       at Microsoft.ConfigurationManagement.AdminConsole.WizardFramework.WizardPage.Deactivate()
       at Microsoft.ConfigurationManagement.AdminConsole.WizardFramework.WizardForm.OnNext()
       at Microsoft.ConfigurationManagement.AdminConsole.WizardFramework.WizardForm.OnNextClicked(System.Object, System.EventArgs)
       at Microsoft.ConfigurationManagement.AdminConsole.WizardFramework.NavigationButtonBar.OnNext(System.Object, System.EventArgs)
       at System.Windows.Forms.Control.OnClick(System.EventArgs)
       at System.Windows.Forms.Button.OnClick(System.EventArgs)
       at System.Windows.Forms.Button.OnMouseUp(System.Windows.Forms.MouseEventArgs)
       at System.Windows.Forms.Control.WmMouseUp(System.Windows.Forms.Message ByRef, System.Windows.Forms.MouseButtons, Int32)
       at System.Windows.Forms.Control.WndProc(System.Windows.Forms.Message ByRef)
       at System.Windows.Forms.ButtonBase.WndProc(System.Windows.Forms.Message ByRef)
       at System.Windows.Forms.Button.WndProc(System.Windows.Forms.Message ByRef)
       at System.Windows.Forms.Control+ControlNativeWindow.OnMessage(System.Windows.Forms.Message ByRef)
       at System.Windows.Forms.Control+ControlNativeWindow.WndProc(System.Windows.Forms.Message ByRef)
       at System.Windows.Forms.NativeWindow.DebuggableCallback(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.Threading.Dispatcher.PushFrame(System.Windows.Threading.DispatcherFrame)
       at System.Windows.Window.ShowHelper(System.Object)
       at System.Windows.Window.Show()
       at System.Windows.Window.ShowDialog()
       at Microsoft.EnterpriseManagement.ConsoleFramework.WindowManager+GenericWpfWindowConstructor.BeginShow(Microsoft.EnterpriseManagement.ConsoleFramework.ShowViewContext, System.Object, System.Object, System.AsyncCallback, System.Object)
       at Microsoft.EnterpriseManagement.ConsoleFramework.ViewConstructor.BeginShow(Microsoft.EnterpriseManagement.ConsoleFramework.ShowViewContext, System.AsyncCallback, System.Object)
       at Microsoft.EnterpriseManagement.ConsoleFramework.WindowManager+WpfWindowRecord.ShowWindow()
    
    Exception Info: System.Reflection.TargetInvocationException
       at System.RuntimeMethodHandle.InvokeMethod(System.Object, System.Object[], System.Signature, Boolean)
       at System.Reflection.RuntimeMethodInfo.UnsafeInvokeInternal(System.Object, System.Object[], System.Object[])
       at System.Delegate.DynamicInvokeImpl(System.Object[])
       at System.Windows.Threading.ExceptionWrapper.InternalRealCall(System.Delegate, System.Object, Int32)
       at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(System.Object, System.Delegate, System.Object, Int32, System.Delegate)
       at System.Windows.Threading.DispatcherOperation.InvokeImpl()
       at System.Windows.Threading.DispatcherOperation.InvokeInSecurityContext(System.Object)
       at MS.Internal.CulturePreservingExecutionContext.CallbackWrapper(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.ExecutionContext.Run(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object)
       at MS.Internal.CulturePreservingExecutionContext.Run(MS.Internal.CulturePreservingExecutionContext, System.Threading.ContextCallback, System.Object)
       at System.Windows.Threading.DispatcherOperation.Invoke()
       at System.Windows.Threading.Dispatcher.ProcessQueue()
       at System.Windows.Threading.Dispatcher.WndProcHook(IntPtr, Int32, IntPtr, IntPtr, Boolean ByRef)
       at MS.Win32.HwndWrapper.WndProc(IntPtr, Int32, IntPtr, IntPtr, Boolean ByRef)
       at MS.Win32.HwndSubclass.DispatcherCallbackOperation(System.Object)
       at System.Windows.Threading.ExceptionWrapper.InternalRealCall(System.Delegate, System.Object, Int32)
       at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(System.Object, System.Delegate, System.Object, Int32, System.Delegate)
       at System.Windows.Threading.Dispatcher.LegacyInvokeImpl(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.Threading.Dispatcher.PushFrame(System.Windows.Threading.DispatcherFrame)
       at System.Windows.Application.RunDispatcher(System.Object)
       at System.Windows.Application.RunInternal(System.Windows.Window)
       at System.Windows.Application.Run(System.Windows.Window)
       at Microsoft.EnterpriseManagement.ConsoleFramework.ConsoleApplication.LaunchWindow()
       at Microsoft.EnterpriseManagement.ConsoleFramework.ConsoleApplication.Run()
       at Microsoft.ConfigurationManagement.AdminConsole.Program.Main()
    
    
    
    0 comments No comments

  5. AllenLiu-MSFT 44,346 Reputation points Microsoft Vendor
    2023-03-29T09:14:59.5933333+00:00

    Hi, @Jegg Niklas

    Do we install SCCM console in other computers? We may try to create a Migration Job in SCCM console from other computer.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.