0

I have a WPF application which is running on citrix and rdp for long.
While recently it is published on Azure Windows Virtual Desktop for one client. For them, After login it is giving error as below.

Error details:
The method or operation cannot be implemented.
   en MS.Internal.AppModel.ITaskbarList.HrInit()
   en System.Windows.Window.ApplyTaskbarItemInfo()
   en System.Windows.Window.WindowFilterMessage(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
   en System.Windows.Interop.HwndSource.PublicHooksFilterMessage(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
   en MS.Win32.HwndWrapper.WndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
   en MS.Win32.HwndSubclass.DispatcherCallbackOperation(Object o)
   en System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
   en System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)
   en System.Windows.Threading.Dispatcher.LegacyInvokeImpl(DispatcherPriority priority, TimeSpan timeout, Delegate method, Object args, Int32 numArgs)
   en MS.Win32.HwndSubclass.SubclassWndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam)

I found the similar issue raised here for this error message,saying it is issue of taskbar initialization when user is not logged in(specifically in remote environment). https://github.com/dotnet/wpf/issues/2377

But not able to found any workaround or fix. In my application, after login successful, taskbar is getting initialized using this code.
_main.TaskbarItemInfo = new System.Windows.Shell.TaskbarItemInfo() { Description = loginText + Thread.CurrentPrincipal.Identity.Name };

Can some one explain what is causing this issue actually. Note: Issue is occurring when accessing it from browser(web client), while using WVD-Dekstop client is working fine.

Garima
  • 1
  • 1

0 Answers0