Skip to content
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

Unable to run published msixbundle due to application crashes at start #4690

Open
k1mmm opened this issue Sep 2, 2024 · 1 comment
Open
Labels
area-Deployment Issues related to packaging, installation, runtime (e.g., SelfContained, Unpackaged) area-DeveloperTools Issues related to authoring (source and IDL), debugging, HotReload, LiveVisualTree, VS integration

Comments

@k1mmm
Copy link

k1mmm commented Sep 2, 2024

Describe the bug

When trying to run a published application it crashes at startup

Application: Capster.exe
CoreCLR Version: 8.0.824.36612
.NET Version: 8.0.8
Description: The process was terminated due to an unhandled exception.
Exception Info: System.TypeInitializationException: The type initializer for '<Module>' threw an exception.
 ---> System.TypeInitializationException: The type initializer for 'WinRT.TypeNameSupport' threw an exception.
 ---> System.TypeLoadException: Could not load type 'System.Collections.Generic.List`1' from assembly 'System.Collections, Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'.
   at WinRT.TypeNameSupport..cctor()
   --- End of inner exception stack trace ---
   at WinRT.ProjectionInitializer.InitalizeProjection()
   --- End of inner exception stack trace ---
   at Capster.Program.Main(String[] args)

Steps to reproduce the bug

Create a winui3 application in visual studio
Publish the application
Install & run

Expected behavior

No response

Screenshots

No response

NuGet package version

Windows App SDK 1.5.6: 1.5.240802000

Packaging type

No response

Windows version

No response

IDE

No response

Additional context

No response

@k1mmm
Copy link
Author

k1mmm commented Sep 9, 2024

I've updated to Windows App SKD 1.6, and now the error are different:

Application: Capster.exe
CoreCLR Version: 8.0.824.36612
.NET Version: 8.0.8
Description: The process was terminated due to an unhandled exception.
Exception Info: System.MissingMethodException: Method not found: 'Void System.Runtime.CompilerServices.IAsyncStateMachine.SetStateMachine(System.Runtime.CompilerServices.IAsyncStateMachine)'.
   at Capster.Program.Main(String[] args)
   at Capster.Program.<Main>(String[] args)

@codendone codendone added area-DeveloperTools Issues related to authoring (source and IDL), debugging, HotReload, LiveVisualTree, VS integration area-Deployment Issues related to packaging, installation, runtime (e.g., SelfContained, Unpackaged) and removed needs-triage labels Sep 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-Deployment Issues related to packaging, installation, runtime (e.g., SelfContained, Unpackaged) area-DeveloperTools Issues related to authoring (source and IDL), debugging, HotReload, LiveVisualTree, VS integration
Projects
None yet
Development

No branches or pull requests

2 participants