Skip to content

.NET 6 and WINUI3 fails to start Unable to load DLL 'Microsoft.ui.xaml.dll' #1762

@devlead

Description

@devlead

Describe the bug

When running WINUI3 on Windows 10 ( 21H1 19043.1083 ) looks like the application never launches, but is application crashes with the below error in the event log

CoreCLR Version: 6.0.21.52210
.NET Version: 6.0.0
Description: The process was terminated due to an unhandled exception.
Exception Info: System.DllNotFoundException: Unable to load DLL 'Microsoft.ui.xaml.dll' or one of its dependencies: The specified module could not be found. (0x8007007E)

Steps to reproduce the bug

Packaged

  1. Install Windows 10 21H1 19043.1083
  2. Install the latest Microsoft.WindowsAppRuntime.Redist.1.0.0
  3. Install MSIX dependencies
  4. Install application MSIX
  5. Launch the application
  6. Application never launches (well crashes)

Unpackaged,

  1. Install Windows 10 21H1 19043.1083
  2. Install the latest Microsoft.WindowsAppRuntime.Redist.1.0.0
  3. Copy compiled output
  4. Launch the application
  5. Application never launches (well crashes)

Packaged

  1. Install Windows 10 21H2 2200.194
  2. Install the latest Microsoft.WindowsAppRuntime.Redist.1.0.0
  3. Install MSIX dependencies
  4. Install application MSIX
  5. Launch the application
  6. Application never launches (well crashes)

Unpackaged,

  1. Install Windows 10 21H2 2200.194
  2. Install the latest Microsoft.WindowsAppRuntime.Redist.1.0.0
  3. Copy compiled output
  4. Launch the application
  5. Application never launches (well crashes)

Expected behavior

For the application to launch.

Screenshots

No response

IDE

Visual Studio 2022

NuGet package version

Microsoft.WindowsAppSDK 1.0.0-preview3

Project type

  • Packaged
  • Unpackaged

Windows version

Windows 11 (22000), May 2021 Update (19043)

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions