Skip to content

[BUG] Keyed services not supported #3317

Open

Description

@lucacivale

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

Activity

  1. dansiegel commented on Apr 5, 2026

    @dansiegel
    Member

    This isn't really a Prism issue but rather an issue with DryIoc not supporting Keyed Services at this time. dadhi/DryIoc#687

  2. lucacivale commented on Apr 6, 2026

    @lucacivale
    ContributorAuthor

    Thanks for checking it out. Should I close this issue then?

  3. dansiegel commented on Apr 6, 2026

    @dansiegel
    Member

    we can leave it open for tracking. I'll update here once we have an update against a newer version of DryIoc

  4. dansiegel commented on Apr 15, 2026

    @dansiegel
    Member

    Per @dadhi this issue has been addressed in DryIoc, and will be part of DryIoc v6 which is still pending release. Once this is released publicly I will update the Prism Containers accordingly.

  5. dadhi commented on Apr 16, 2026

    @dadhi

    @dansiegel hey, long no see :) DryIpc v6 release is immenent!

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions