Completed
Last Updated: 09 Jul 2025 12:43 by ADMIN
Release 11.0.1
Sunali
Created on: 17 Jun 2025 08:54
Category: UI for .NET MAUI
Type: Bug Report
8
Licensing: Exception when trying to display the CommunityToolkit Overlay and Telerik License Window
when the developer does not have a license configured on their machine. Early on in the workflow of our app, the application will crash when we attempt to create a new PopupOverlay from an external dependency, such as the CommunityToolkit,
1 comment
Sunali
Posted on: 19 Jun 2025 00:30

The exception is as follows:

Microsoft.UI.Xaml.Application.Current.UnhandledException event raised in MySampleApp: System.InvalidCastException: Unable to cast object of type 'CommunityToolkit.Maui.Core.Views.PopupOverlay' to type 'Telerik.Maui.Controls.LicenseWindowOverlay'.
   at System.Linq.Enumerable.CastICollectionIterator`1.TryGetFirst(Boolean& found)
   at System.Linq.Enumerable.FirstOrDefault[TSource](IEnumerable`1 source)
   at Telerik.Maui.Controls.TelerikLicense.RefreshMainWindowOverlay()
   at Microsoft.Maui.Controls.VisualElement.SendLoaded(Boolean updateWiring)
   at ABI.Microsoft.UI.Xaml.RoutedEventHandler.Do_Abi_Invoke(IntPtr thisPtr, IntPtr sender, IntPtr e)