Skip to content

Crash on start (EntryPointNotFoundException) #490

Description

@LucaCris

Describe the bug

WinUI 3 App, latest SDK version 1.5.6.

If I perform these updates (also a single one):

Screenshot 2024-08-26 134333

I'll get this, just after F5:

Screenshot 2024-08-26 134245

Rollback updates and all restart to work perfectly.

Steps to reproduce

As descripted.

Expected behavior

Run as before.

Screenshots

No response

Code Platform

  • UWP
  • WinAppSDK / WinUI 3
  • Web Assembly (WASM)
  • Android
  • iOS
  • MacOS
  • Linux / GTK

Windows Build Number

  • Windows 10 1809 (Build 17763)
  • Windows 10 1903 (Build 18362)
  • Windows 10 1909 (Build 18363)
  • Windows 10 2004 (Build 19041)
  • Windows 10 20H2 (Build 19042)
  • Windows 10 21H1 (Build 19043)
  • Windows 10 21H2 (Build 19044)
  • Windows 10 22H2 (Build 19045)
  • Windows 11 21H2 (Build 22000)
  • Other (specify)

Other Windows Build number

net8.0-windows10.0.22621.0

App minimum and target SDK version

  • Windows 10, version 1809 (Build 17763)
  • Windows 10, version 1903 (Build 18362)
  • Windows 10, version 1909 (Build 18363)
  • Windows 10, version 2004 (Build 19041)
  • Windows 10, version 2104 (Build 20348)
  • Windows 11, version 22H2 (Build 22000)
  • Other (specify)

Other SDK version

No response

Visual Studio Version

2022

Visual Studio Build Number

17.11.1

Device form factor

Desktop

Additional context

No response

Help us help you

No, I'm unable to contribute a solution.

Activity

  1. deleted a comment from on Aug 26, 2024
  2. Arlodotexe commented on Aug 26, 2024

    @Arlodotexe
    Member

    @LucaCris Could you provide a minimal repro for this, or a list of the nuget packages you have installed?

    This is an error message I've seen when you install Microsoft.UI.Xaml alongside Microsoft.WindowsAppSDK, but I can't be sure it's the same repro without more details.

  3. LucaCris commented on Aug 27, 2024

    @LucaCris
    Author

    Add these to the screenshot above:

    CommunityToolkit.Mvvm 8.2.2
    CommunityToolkit.WinUI.UI.Controls.DataGrid 7.1.2
    CommunityToolkit.WinUI.UI.Controls.Markdown 7.1.2
    Microsoft.Windows.SDK.BuildTools 10.0.26100.1
    Microsoft.WindowsAppSDK 1.5.240802000

  4. deleted a comment from on Aug 27, 2024
  5. LucaCris commented on Aug 29, 2024

    @LucaCris
    Author

    How to simply replicate:

    • create new packaged App using wizard
    • upgrade SDKs to latest
    • App will start normally
    • Add one CommunityToolkit 8.1, to have something like:

    Screenshot 2024-08-29 163814

    The App will crash on start.

  6. moved this to 👀 In review in Toolkit 8.xon Aug 29, 2024
  7. Arlodotexe commented on Aug 29, 2024

    @Arlodotexe
    Member

    @LucaCris I was able to reproduce the issue with the "Blank App, Packaged (WinUI 3 in Desktop)" project template, but only unpackaged, and regardless of whether the toolkit is installed.

    Running packaged seems to work fine, unpackaged gives the error message you were seeing. Can you provide more information about your packaging setup?

  8. LucaCris commented on Aug 30, 2024

    @LucaCris
    Author

    Watch the screenshot: App8 (Package) + App8... all done by VS Wizard:

    Screenshot 2024-08-30 092607

  9. wbokkers commented on Sep 2, 2024

    @wbokkers

    I see the same issue on my packaged project (with a separate package project).

  10. giraudremy commented on Sep 2, 2024

    @giraudremy

    Hi,

    I have same issue, here a sample app.
    App7.zip

    I have change to target 22621 targetframework but not working for me.
    net8.0-windows10.0.22621.0

    Is there something missing in the projet ?

  11. lhak commented on Sep 3, 2024

    @lhak
    Contributor

    @giraudremy I looked at your sample project and found the issue, but I do not know how to fix it. The issue is that in the packaging project, the community toolkit nuget package shows a dependency on the winui2 Microsoft.ui.xaml package. This is not the case for the application project itself.

  12. LucaCris commented on Sep 3, 2024

    @LucaCris
    Author

    @giraudremy I looked at your sample project and found the issue, but I do not know how to fix it. The issue is that in the packaging project, the community toolkit nuget package shows a dependency on the winui2 Microsoft.ui.xaml package. This is not the case for the application project itself.

    The idea is to work like 8.0 does, on start... 😉

  13. giraudremy commented on Sep 3, 2024

    @giraudremy

    Hi,

    I have added a PackageDependency to WindowsAppRuntime in Package.appxmanifest and now application start :

    <Dependencies>
         <TargetDeviceFamily Name="Windows.Universal" MinVersion="10.0.22621.0" MaxVersionTested="10.0.22621.0" />
         <TargetDeviceFamily Name="Windows.Desktop" MinVersion="10.0.22621.0" MaxVersionTested="10.0.22621.0" />
         <PackageDependency Name="Microsoft.WindowsAppRuntime.1.5" MinVersion="1.0.0.0" Publisher="CN=Microsoft Corporation, O=Microsoft Corporation, L=Redmond, S=Washington, C=US" />
      </Dependencies>
    
    
  14. 11 remaining items

  15. LucaCris commented on Sep 6, 2024

    @LucaCris
    Author

    It is now time to temporarily remove the update from nuget... 😑

  16. michael-hawker commented on Sep 6, 2024

    @michael-hawker
    Member

    Ah, this is a regression of #220; now that I see the PR, I understand! 😅

  17. michael-hawker commented on Sep 16, 2024

    @michael-hawker
    Member

    Shipped a hotfix in v8.1.240916, just pushed to NuGet. Will be merged to main as well shortly.

  18. moved this from 👀 In review to ✅ Done in Toolkit 8.xon Sep 16, 2024
  19. deleted a comment from on Mar 10, 2025
  20. deleted a comment from on Mar 10, 2025
  21. deleted a comment from on Mar 10, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

CI/pipeline 🔬bugSomething isn't workinglow difficultyA small or trivial change that isn't difficult to complete.nuget 📦regressionWhat was working is now broke

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions