Skip to content

Published app silently crashes with: Bundle header version compatibility check failed. #59819

@Symbai

Description

@Symbai

Description

Running a framework dependend, single file published wpf .NET 6.0.100-rc.1.21463.6 on a computer without .NET6 installed silently fails. But there should be a messagebox that runtime is missing. Event viewer says:

Description: A .NET application failed.
Application: WpfApp9.exe
Path: C:\Users\User\Desktop\WpfApp9.exe
Message: Failure processing application bundle.
Bundle header version compatibility check failed.
A fatal error occured while processing application bundle

Publish settings:
image

Configuration

.NET 6.0.100-rc.1.21463.6 (SDK, on computer which published the app through VS)
WPF
Windows 10
NO .net installed on target computer (edit: having .NET 5 x64 sdk or runtime installed doesn't help, app is still silently crashing)

Regression?

Yes, there should be a messagebox telling .NET 6 (desktop) runtime is missing.

Other information

I created a new WPF project using VS 2022 preview and instantly published.
//edit: Publishing the same app with no "single file" enabled opens the expected message box on target computer, so there is an issue with single file option:
image

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions