Remote Desktop not starting

Copper Contributor

Hi Everyone, 

 

We are connecting users to a new AVD desktop.  99% of people connect without an issue.  I have 2 users right now that launch the desktop from RDC and the icon in the systray shows up for a second and disappears and there are no login windows presented nor is there an error message.

 

Things I've tried:

  • Removed RDC 1.2.3577.0, rebooted, reinstalled
  • Tried a different windows profile on the same computer
  • Removed RDC 1.2.3577.0, rebooted, downgraded to 1.2.3576.0
  • Removed RDC 1.2.3576.0, rebooted, upgraded to 1.2.3667.0
  • Removed and reapplied .NET 4
  • Upgraded to .NET 4.8.1
  • I've checked the Windows Updates and compared those to a computer that does work with RemoteDesktop Client.

Both computers are same Windows version as all others (20H2).

 

I've gone through the troubleshooting guide but found no useful information regarding event logs in the %temp%\DiagOutputDir\RdClientAutoTrace directory.

 

The only error message that I have in event viewer is that ntdll.dll had a handle that was invalid.  This is listed each time I attempt.

Faulting application name: msrdc.exe, version: 1.2.3577.0, time stamp: 0x63447348
Faulting module name: ntdll.dll, version: 10.0.19041.1806, time stamp: 0x1000a5b9
Exception code: 0xc0000409
Fault offset: 0x00000000000a1421
Faulting process id: 0x2fc8
Faulting application start time: 0x01d8f3c66026805f
Faulting application path: C:\Program Files\Remote Desktop\msrdc.exe
Faulting module path: C:\WINDOWS\SYSTEM32\ntdll.dll
Report Id: 987b760e-a8fb-4990-86bf-d12b2c109bf7
Faulting package full name:
Faulting package-relative application ID:


I only found one other error that mentioned .NET runtime was terminated due to an unhandled exception.

Application: msrdcw.exe
Framework Version: v4.0.30319
Description: The process was terminated due to an unhandled exception.
Exception Info: Unity.Exceptions.InvalidRegistrationException

Exception Info: System.InvalidOperationException
at Unity.Processors.ConstructorProcessor+<>c.<GetResolver>b__15_1(Unity.Builder.BuilderContext ByRef)
at Unity.Processors.MemberProcessor`2+<>c__DisplayClass8_0[[System.__Canon, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089],[System.__Canon, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]].<GetResolver>b__0(Unity.Builder.BuilderContext ByRef)
at Unity.Processors.MemberProcessor`2+<>c__DisplayClass8_0[[System.__Canon, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089],[System.__Canon, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]].<GetResolver>b__0(Unity.Builder.BuilderContext ByRef)
at Unity.Processors.MemberProcessor`2+<>c__DisplayClass8_0[[System.__Canon, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089],[System.__Canon, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]].<GetResolver>b__0(Unity.Builder.BuilderContext ByRef)
at Unity.Strategies.BuildPlanStrategy.PreBuildUp(Unity.Builder.BuilderContext ByRef)
at Unity.UnityContainer+<>c.<.ctor>b__73_2(Unity.Strategies.BuilderStrategy[], Unity.Builder.BuilderContext ByRef)
at Unity.Builder.BuilderContext.Resolve(System.Type, System.String, Unity.Registration.InternalRegistration)
at Unity.Builder.BuilderContext.Resolve(System.Type, System.String)
at Unity.Builder.BuilderContext.Resolve(System.Reflection.ParameterInfo, System.Object)
at Unity.Processors.ConstructorProcessor+<>c__DisplayClass16_0.<GetResolverDelegate>b__0(Unity.Builder.BuilderContext ByRef)
at Unity.Processors.MemberProcessor`2+<>c__DisplayClass8_0[[System.__Canon, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089],[System.__Canon, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]].<GetResolver>b__0(Unity.Builder.BuilderContext ByRef)
at Unity.Processors.MemberProcessor`2+<>c__DisplayClass8_0[[System.__Canon, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089],[System.__Canon, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]].<GetResolver>b__0(Unity.Builder.BuilderContext ByRef)
at Unity.Processors.MemberProcessor`2+<>c__DisplayClass8_0[[System.__Canon, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089],[System.__Canon, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]].<GetResolver>b__0(Unity.Builder.BuilderContext ByRef)
at Unity.Strategies.BuildPlanStrategy.PreBuildUp(Unity.Builder.BuilderContext ByRef)
at Unity.UnityContainer+<>c.<.ctor>b__73_2(Unity.Strategies.BuilderStrategy[], Unity.Builder.BuilderContext ByRef)
at Unity.Builder.BuilderContext.Resolve(System.Type, System.String, Unity.Registration.InternalRegistration)
at Unity.Builder.BuilderContext.Resolve(System.Type, System.String)
at Unity.Builder.BuilderContext.Resolve(System.Reflection.ParameterInfo, System.Object)
at Unity.Processors.ConstructorProcessor+<>c__DisplayClass16_0.<GetResolverDelegate>b__0(Unity.Builder.BuilderContext ByRef)
at Unity.Processors.MemberProcessor`2+<>c__DisplayClass8_0[[System.__Canon, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089],[System.__Canon, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]].<GetResolver>b__0(Unity.Builder.BuilderContext ByRef)
at Unity.Processors.MemberProcessor`2+<>c__DisplayClass8_0[[System.__Canon, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089],[System.__Canon, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]].<GetResolver>b__0(Unity.Builder.BuilderContext ByRef)
at Unity.Processors.MemberProcessor`2+<>c__DisplayClass8_0[[System.__Canon, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089],[System.__Canon, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]].<GetResolver>b__0(Unity.Builder.BuilderContext ByRef)
at Unity.Strategies.BuildPlanStrategy.PreBuildUp(Unity.Builder.BuilderContext ByRef)
at Unity.UnityContainer+<>c.<.ctor>b__73_1(Unity.Builder.BuilderContext ByRef)

Exception Info: Unity.ResolutionFailedException
at Unity.UnityContainer+<>c.<.ctor>b__73_1(Unity.Builder.BuilderContext ByRef)
at Unity.UnityContainer.Unity.IUnityContainer.Resolve(System.Type, System.String, Unity.Resolution.ResolverOverride[])
at Prism.Ioc.IContainerProviderExtensions.Resolve[[System.__Canon, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]](Prism.Ioc.IContainerProvider)
at RdClient.WPF.Mains.ConnectionCenterMain.RegisterRequiredTypes(Prism.Ioc.IContainerRegistry)
at Prism.PrismApplicationBase.Initialize()
at Prism.PrismApplicationBase.InitializeInternal()
at RdClient.WPF.App.OnStartup(System.Windows.StartupEventArgs)
at System.Windows.Application.<.ctor>b__1_0(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 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.Application.RunDispatcher(System.Object)
at System.Windows.Application.RunInternal(System.Windows.Window)
at RdClient.WPF.App.Main()

 

I would appreciate any assistance offered!

 

Thanks!

 

3 Replies

@Olivia_7 Thank you for the suggestion.  I've done the following on the PC:

  • sfc /scannow
  • DISM /Online /Cleanup-Image /CheckHealth

Both of these came up clean.

Install the latest .NET SDK. We had the same problem with very few users and were able to solve it this way.

@tobannon 

 

Any endpoint in your environment? Did you tried to reinstall ntdll.dll?