question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[Bug] Popup, Microsoft.Maui.Platform.HandlerNotFoundException: 'Handler not found for view ...'

See original GitHub issue

Hello, I get Microsoft.Maui.Platform.HandlerNotFoundException: 'Handler not found for view fortestingshit.Controls.SimpP.' exception. I’ve seen Microsoft documentation and other sources, same error anyway.

Stack Trace

Microsoft.Maui.Platform.HandlerNotFoundException
  HResult=0x80131500
  Message=Handler not found for view fortestingshit.Controls.SimpP.
  Source=Microsoft.Maui
  StackTrace:
   at Microsoft.Maui.Platform.ElementExtensions.ToHandler(IElement view, IMauiContext context)
   at CommunityToolkit.Maui.Views.PopupExtensions.PlatformShowPopup(Popup popup, IMauiContext mauiContext)
   at CommunityToolkit.Maui.Views.PopupExtensions.PlatformShowPopupAsync(Popup popup, IMauiContext mauiContext)
   at CommunityToolkit.Maui.Views.PopupExtensions.ShowPopupAsync[TPopup](Page page, TPopup popup)
   at fortestingshit.MainPage.<OnCounterClicked>d__1.MoveNext() in ...\fortestingshit\MainPage.xaml.cs:line 17

Project to test the error

Repository

Steps:

  1. Open project
  2. Click the “Click me to open popup” button

Ide etc.:

  • IDE: Microsoft Visual Studio Community 2022, Version 17.3.0 Preview 2.0
  • Platform Target Frameworks: Android, Windows
  • CommunityToolkit.Maui version 1.0.0

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:8 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
bijingtoncommented, Jul 14, 2022

You can see how to do it from the readme on the repo: https://github.com/CommunityToolkit/Maui

I thought we had this information on our docs page but I can’t see it.

There is nothing about it as well: Microsoft

Not sure how this info got missed. I’ll add it to the getting started section. Although you should have seen a readme file open when you added the package informing for the required steps. I know some of the team are adding an analyser to inform devs when they haven’t done this

1reaction
bijingtoncommented, Jul 14, 2022

@8m0 you need to call UseMauiCommunityToolkit in your MauiProgram file

Read more comments on GitHub >

github_iconTop Results From Across the Web

net maui error - how to track down handler not found error
I'm getting the error below, yet i think my xaml and .cs file are correct. Microsoft.Maui.Platform.HandlerNotFoundException: 'Handler not found ...
Read more >
Handler not found for view Microsoft.Maui.Controls.Maps. ...
HandlerNotFoundException : 'Handler not found for view Microsoft.Maui.Controls.Maps.Map.' [mono-rt] [ERROR] FATAL UNHANDLED EXCEPTION: Microsoft.
Read more >
Handler not found for view
Hi,. I'll try using a library for scanning bardoces, causing the following exception trying to use it on an iOS-Device. Android seems to...
Read more >
PROBLEM when trying to use a map. : r/dotnetMAUI
Maui.Platform.HandlerNotFoundException: 'Handler not found for view Microsoft.Maui.Controls.Maps.Map.' " every time I try to run the app ...
Read more >
RadSegmentedConrol handler not found error when ...
Hi Jon, The method you have to call in MauiProgram.cs file is UseTelerik(), not UseTelerikConrols. Also what is the Telerik .NET MAUI version ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found