Skip to content

[Bug] Windows - Immediate Exception Thrown #364

@Theunis27

Description

@Theunis27

Describe the bug
After updating Visual Studio through the installer, Microcharts.Maui no longer works on the Windows app. The following exceptions are thrown:
• System.NotSupportedException in WinRT.Runtime.dll
• System.Reflection.TargetInvocationException in System.Private.CoreLib.dll

Which platform and version is this for?
Windows, .NET 8
Microcharts 1.0.0
SkiaSharp 2.88.8

To Reproduce

  1. Create a .NET MAUI project.
  2. Add the Microcharts.Maui NuGet package.
  3. Initialize Microcharts.Maui in MauiProgram.cs:
  4. Add a chart to a page using Microcharts.Maui.
  5. Run the app on Windows.
  6. See the exceptions in the output.

Expected behavior
The app should run without exceptions, and the charts should be displayed correctly.

Screenshots
image
image
image
image

** Device**
This issue occurs on a Windows x64 machine.

Additional information
I tried the following steps to address:
• Verified that all NuGet packages are up to date.
• Created a minimal example to test Microcharts.Maui in isolation, which also failed.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions