UWP > WINUI3 migration problem

BitSmithy 2,226 Reputation points
2025-11-24T11:25:46.62+00:00

Hello,

I am trying to migrate my UWP based Windows Store app to WINUI3.

I had in win store UWP version.

Next, I created WINUI3 version. Validated it in my VisualStudio and published it.

WINUI3 app was validated and published via Partner Center.

Next, I updated the app on my laptop using Microsft Store function.

The app was updated sucesfully.

But now when I want to run it, It starts, but next crashes after a while.

WinUI3 App was developed on Windows 11. Packages was made in VS2022 and next in VS2026.

Laptop where I try to run the app works under Windows 10. App is published, only for direct audience (is not public.)

Event Viewer log, below:

Faulting application name: Support Center.exe, version: 1.0.0.0, time stamp: 0x68ff0000

Faulting module name: KERNELBASE.dll, version: 10.0.19041.4597, time stamp: 0x7980d421

Exception code: 0xc000027b

Fault offset: 0x000000000012d352

Faulting process ID: 0x4540

Faulting application start time: 0x01dc5d30d5e5a12f

Faulting application path: C:\Program Files\WindowsApps\20089Bitsmithy.SupportCenter_2.0.7.0_x64__dbfmhnwy1vfar\Support Center.exe

Faulting module path: C:\WINDOWS\System32\KERNELBASE.dll

Report ID: 32e39dd0-0c10-469d-adc7-5a985bddc5a8

Faulting package full name: 20089Bitsmithy.SupportCenter_2.0.7.0_x64__dbfmhnwy1vfar

Faulting package-relative application ID: App

Windows development | WinUI
{count} votes

2 answers

Sort by: Most helpful
  1. Q&A Assist
    2025-11-24T11:25:59.1666667+00:00
    AI generated content. This question contains an answer created with AI from Q&A Assist. Learn more

    It seems like you are encountering a crash with your WinUI 3 application after migrating from UWP. Here are some points to consider that might help you troubleshoot the issue:

    1. Compatibility: Ensure that your WinUI 3 app is compatible with Windows 10. While WinUI 3 can run on Windows 10, certain features or APIs might behave differently compared to Windows 11. Make sure that you are not using any APIs or features that are exclusive to Windows 11.
    2. Event Viewer Logs: The exception code 0xc000027b indicates a problem with the application, which could be related to an unhandled exception or a failure in the application logic. Check the Event Viewer logs for more detailed information about the crash, and consider adding error handling in your application to capture exceptions that may occur during runtime.
    3. Testing on Windows 10: Since you developed and published the app on Windows 11, it would be beneficial to test the app on a Windows 10 environment during development to identify any issues that may arise specifically on that OS.
    4. Debugging: Use Visual Studio to debug the application on your Windows 10 machine. This can help you identify the exact point of failure and understand why the application crashes.
    5. Dependencies: Ensure that all dependencies required by your WinUI 3 application are properly included and compatible with Windows 10.
    6. Known Issues: Review the limitations and known issues related to WinUI 3, especially regarding its use in desktop apps, as certain APIs may not be supported in that context.

    If the problem persists, consider reaching out to the Microsoft developer community or support for more targeted assistance.


    References:

    0 comments No comments

  2. Danny Nguyen (WICLOUD CORPORATION) 5,430 Reputation points Microsoft External Staff Moderator
    2025-11-25T08:23:00.78+00:00

    Hi,

    From the information you’ve provided, this looks less like a random crash and more like a compatibility / packaging issue between your WinUI 3 app (Windows App SDK) and the Windows 10 device you’re running it on.

    The KERNELBASE.dll crash with exception code 0xc000027b is a generic native failure that often appears when something goes wrong very early in the app’s startup, for example due to unsupported OS version or APIs.

    Below are some checks and suggestions you can try.


    1. Verify Windows App SDK version vs. Windows 10 build

    1. In your WinUI 3 project, open the .csproj file and locate the Windows App SDK package reference, for example:
      
         <PackageReference Include="Microsoft.WindowsAppSDK" Version="1.5.240627000" />
      
      
    2. Check the documentation / release notes for that Windows App SDK version to confirm the minimum supported Windows 10 build.
    3. On the Windows 10 laptop:
      • Press Win + R, type winver, and check the exact Windows 10 version and build number.
      • Make sure this build is supported by the Windows App SDK version you are using.

    If the laptop is running an older Windows 10 build than required by your Windows App SDK version, the app may install successfully from the Store but fail at runtime.

    If this is the case:

    • Either update the Windows 10 machine to a supported build, or
    • Use an earlier Windows App SDK version that supports your target Windows 10 build, rebuild and republish the app.

    2. Check Package.appxmanifest target device family settings

    Even for a packaged WinUI 3 desktop app, the manifest defines the supported OS versions.

    1. Open the Package.appxmanifest file (usually in the packaging project).
    2. Find the TargetDeviceFamily element, for example:
      
         <TargetDeviceFamily Name="Windows.Universal"
      
                             MinVersion="10.0.17763.0"
      
                             MaxVersionTested="10.0.22621.0" />
      
      
    3. Confirm that:
      • MinVersion is less than or equal to the Windows 10 build number on your laptop.
      • MaxVersionTested can be higher (e.g., a Windows 11 build), but MinVersion must not exceed the version of the target machine.

    If MinVersion is set higher than the Windows 10 build where you’re installing the app, it can lead to unexpected runtime failures.


    3. Capture the managed exception details from Event Viewer

    The log you posted is the native Application Error event. For .NET / WinUI applications, there is usually a corresponding .NET Runtime event that contains more useful information.

    On the Windows 10 laptop:

    1. Open Event Viewer.
    2. Navigate to Windows LogsApplication.
    3. Look for:
      • Entries with Source = .NET Runtime, close in time to the crash you reported.
    4. Open that event and check for:
      • Exception type (for example, System.TypeLoadException, System.DllNotFoundException, etc.),
      • Exception message,
      • Stack trace.

    These details often identify the specific API or assembly that is failing. If you can provide this information, it will be much easier to determine whether the issue is due to an unsupported API on Windows 10 or another migration problem.


    4. Review UWP-specific or OS-specific APIs used after migration

    When migrating from UWP to WinUI 3 desktop, it’s possible that some UWP-specific APIs remain in the code. These can cause problems when running as a desktop app, especially on older OS versions.

    Please review your code (especially app startup code such as App constructor, OnLaunched, and the first page’s constructor / Loaded handler) for:

    • UWP namespaces such as Windows.UI.Xaml.*.
    • UWP-only APIs, e.g.:
      • Windows.UI.Core.CoreWindow,
      • Windows.UI.ViewManagement.ApplicationView,
      • Some members of Windows.ApplicationModel.* and Windows.System.* that assume a UWP container.
    • Any APIs introduced in Windows 11 that might not exist or behave the same on the Windows 10 build you are targeting.

    If one of these APIs is invoked during startup and is not available on the Windows 10 device, it can cause the app to terminate with a native exception.


    5. Confirm project type and migration approach

    Please also confirm that:

    • The project is created from a WinUI 3 (Windows App SDK) desktop app template (for example, “Blank App, Packaged (WinUI in Desktop)” in Visual Studio).
    • You are not using the original UWP project type with partial WinUI 3 references.

    If you migrated by directly modifying the existing UWP project, a more reliable approach is:

    1. Create a new WinUI 3 desktop (packaged) project in Visual Studio.
    2. Move your XAML, ViewModels, and business logic into this new project.
    3. Reconfigure capabilities and manifest settings as needed.
    4. Check the Windows App SDK version and TargetDeviceFamily as described above.
    5. Build, deploy, and test on both Windows 11 and the target Windows 10 device.

    To further investigate, it would be helpful if you could provide:

    • The Windows 10 version and build number from the affected machine (winver dialog).
    • The Windows App SDK package reference (name and version) from your .csproj.
    • The TargetDeviceFamily element from your Package.appxmanifest.
    • The .NET Runtime event details from Event Viewer (exception type, message, and the first part of the stack trace).

    Hope this helps


Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.