Skip to content

[BUG] Keyed services not supported #3317

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
lucacivale opened this issue Mar 4, 2025 · 0 comments
Open

[BUG] Keyed services not supported #3317

lucacivale opened this issue Mar 4, 2025 · 0 comments

Comments

@lucacivale
Copy link
Contributor

Description

App crashes if a BottomSheet is opened with exception "Keyed services not supported". I'm using the Prism.DryIoc container.

It works with Microsofts container.

Steps to Reproduce

MauiApp1.zip

  1. Run the App and click on button "Open bottom sheet"

  2. Application crashes

  3. Remove UsePrism from MauiProgram

  4. Add builder.Services.AddBottomSheet<PageA>("PageA"); in MauiProgram

  5. Add in App.xaml.cs

protected override Window CreateWindow(IActivationState? activationState)
{
    return new Window(new NavigationPage(new MainPage(Handler.GetService<IBottomSheetNavigationService>())));
}
  1. Run the app and click the button

Platform with bug

.NET MAUI

Affected platforms

Android, I was not able test on other platforms

Did you find any workaround?

No response

Relevant log output

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant