WinExe net8.0-windows10.0.22621.0 WinExe net8.0-windows10.0.22621.0 WinExe net8.0-windows10.0.22621.0

Faulting module name: Microsoft.ui.xaml.dll

97 Views Asked by At
<Project Sdk="Microsoft.NET.Sdk">
  <PropertyGroup>
    <OutputType>WinExe</OutputType>
    <TargetFramework>net8.0-windows10.0.22621.0</TargetFramework>
    <TargetPlatformMinVersion>10.0.22621.0</TargetPlatformMinVersion>
    <RootNamespace>X</RootNamespace>
    <Platforms>x86;x64;</Platforms>
    <RuntimeIdentifiers>win-x86;win-x64;</RuntimeIdentifiers>
    <DefaultLanguage>en</DefaultLanguage>
    <UseWinUI>true</UseWinUI>
    <EnableMsixTooling>true</EnableMsixTooling>
    <WindowsPackageType>MSIX</WindowsPackageType>
    <WindowsAppSDKSelfContained>true</WindowsAppSDKSelfContained>
  </PropertyGroup>
 ...
    <PackageReference Include="Microsoft.WindowsAppSDK" Version="1.5.240311000" />

</Project>

The latest SDK installed as the latest SDK nuget package.

I aim to debug the project but the Event Viewer exhibiting the error even if I first deploy the project and debug afterwards:

Faulting application name: x.exe, version: 1.0.0.0, time stamp: 0x65a80000
Faulting module name: Microsoft.ui.xaml.dll, version: 3.1.5.0, time stamp: 0x7fd76c03
Exception code: 0xc000027b
Fault offset: 0x0000000000404495
Faulting process id: 0x0x17F8
Faulting application start time: 0x0x1DA793E542F6342
Faulting application path: C:\Users\weath\source\repos\Weather.History\Weather.History.Windows\bin\x64\Debug\net8.0-windows10.0.22621.0\AppX\x.exe
Faulting module path: C:\Users\weath\source\repos\Weather.History\Weather.History.Windows\bin\x64\Debug\net8.0-windows10.0.22621.0\AppX\Microsoft.ui.xaml.dll
Report Id: 53b61667-909b-4964-b50a-a38a7723d309
Faulting package full name: Weather.History11_2.1.4.0_x64__qthhec8xancfe

enter image description here

WinDBG as Simon Mourier advised:

ModLoad: 00007fff`cc9b0000 00007fff`ccd96000   C:\WINDOWS\SYSTEM32\D3DCOMPILER_47.dll
ModLoad: 00007fff`d0e20000 00007fff`d0e3b000   C:\WINDOWS\SYSTEM32\CRYPTSP.dll
ModLoad: 00007ffe`f51d0000 00007ffe`f523b000   C:\Users\weath\source\repos\Weather.History\Weather.History.Windows\bin\x64\Debug\net8.0-windows10.0.22621.0\AppX\Microsoft.InputStateManager.dll
ModLoad: 00007ffe`f2f20000 00007ffe`f3088000   C:\Users\weath\source\repos\Weather.History\Weather.History.Windows\bin\x64\Debug\net8.0-windows10.0.22621.0\AppX\Microsoft.UI.Input.dll
ModLoad: 00007fff`d3c20000 00007fff`d3d74000   C:\WINDOWS\System32\msctf.dll
Microsoft.ui.xaml.dll!00007FFEE68AD96E: 80040154 - Class not registered
(5f7c.18b4): Unknown exception - code c000027b (!!! second chance !!!)
0

There are 0 best solutions below