Skip to content

[BUG] COMException (0x8007007E): Unable to load resource dll Microsoft.WindowsAppRuntime.Insights.Resource.dll on Windows (.NET 10 / MAUI) #3271

Closed

Description

@Transis-Felipe

Is there an existing issue for this?

  • I have searched the existing issues

Did you read the "Reporting a bug" section on Contributing file?

Current Behavior

Image

Description

An unhandled COMException occurs on Windows during application startup or lifecycle events (OnLaunched). The exception indicates that Microsoft.WindowsAppRuntime.Insights.Resource.dll could not be loaded (ERROR_MOD_NOT_FOUND).

Exception Details

  • Exception Type: System.Runtime.InteropServices.COMException
  • HResult: 0x8007007E (The specified module could not be found)
  • Message: Unable to load resource dll. Microsoft.WindowsAppRuntime.Insights.Resource.dll / Não foi possível encontrar o módulo especificado.
  • Location: CommunityToolkit.Maui.Options.shared.cs in Application__LaunchActivatedEventLogs / Microsoft.UI.Xaml.Application.OnLaunched

Expected Behavior

No error

This error start with version 14.2.0

Steps To Reproduce

Update the community toolkit to latest version and start a project with windows

Link to public reproduction project repository

N/A

Environment

### Environment
- .NET MAUI CommunityToolkit:15.0.0
- .NET MAUI:10.0.90
* **Framework:** .NET 10.0.10
* **OS:** Windows 11 25H2 build

Anything else?

No response

Activity

  1. added
    bug
    on Jul 23, 2026
  2. TheCodeTraveler commented on Jul 24, 2026

    @TheCodeTraveler
    Collaborator

    We're seeing a similar error in our CI/CD pipeline: https://github.com/CommunityToolkit/Maui/actions/runs/30027765216/job/89276526975#step:9:666

    I can not confirm at this time whether or not it is related to this Issue.

  3. duindain commented on Jul 30, 2026

    @duindain

    I was just about to raise the same issue for 14.2.2 and 15.0.0
    I was able to trigger the error by registering for snackbar messages on the windows platform and if i remove that line it runs successfully

    options.SetShouldEnableSnackbarOnWindows(true);

    Here is my repo, hopefully its the same issue

    https://github.com/duindain/CommunityIssue

    My original intention was to raise an issue for Windows snackbar and toast messages failing silently without any error messages before running into this when trying to create an example

  4. vividos commented on Aug 9, 2026

    @vividos

    I also got this error when upgrading the CommunityToolkit.Maui from 14.1.1 to 15.0.0. I think the reason is that the Windows App SDK is updated from 1.8 to 2.2 when upgrading CommunityToolkit.Maui, which causes this error. There's an issue for that in the Windows App SDK as well:
    microsoft/WindowsAppSDK#6387

    So the CommunityToolkit.Maui should not update the WindowsAppSDK for this issue to be fixed. I think it's best to let the .NET MAUI project steer this dependency.

  5. vividos commented on Aug 9, 2026

    @vividos

    @TheCodeTraveler Here's a simple way to verify the issue:

    1. Clone my project: https://github.com/vividos/WhereToFly, main branch
    2. Update CommunityToolkit.Maui to 15.0.0
    3. Build and run the windows app
    4. Observe the crash
  6. jfversluis commented on Aug 10, 2026

    @jfversluis
    Member

    I investigated this and believe it will probably be resolved for .NET 11 by dotnet/maui#36891. That PR has been merged into MAUI's net11.0 branch and updates Microsoft.WindowsAppSDK from 1.8.x to 2.3.1.

    Could anyone who has a .NET 11 environment available try the latest MAUI .NET 11 build with CommunityToolkit.Maui and confirm whether SetShouldEnableSnackbarOnWindows(true) now works?

    For supporting both .NET 10 and .NET 11, the Toolkit may need framework-specific handling: .NET 10 MAUI currently expects Windows App SDK 1.8.x, while .NET 11 expects 2.3.1. Rather than forcing one Windows App SDK version for both target frameworks, the dependency or affected functionality could be split/conditioned by target framework so each follows the version selected by MAUI.

  7. locked and limited conversation to collaborators on Aug 14, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

bugunverified

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions