question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Run as administrator crashes WinUI Desktop App

See original GitHub issue

Faulting application name: TYTYTY.exe, version: 1.0.0.0, time stamp: 0x5eda9993 Faulting module name: KERNELBASE.dll, version: 10.0.19041.423, time stamp: 0xed02c0bc Exception code: 0xc000027b Fault offset: 0x000000000010b3cc Faulting process id: 0x6e34 Faulting application start time: 0x01d66a95fb1d5bdc Faulting application path: F:\Work\net5\FWMonitor\TYTYTY\TYTYTY (Package)\bin\x64\Debug\AppX\TYTYTY\TYTYTY.exe Faulting module path: C:\WINDOWS\System32\KERNELBASE.dll Report Id: ce67f678-5617-444b-8207-72b6901c29e3 Faulting package full name: 48e80bab-2df9-4a42-9e48-3f67efd23e12_1.0.0.0_x64__q29dnkf5r4tp2 Faulting package-relative application ID: App

Crashes even blank WinUI Desktop app after UAP. Crashes with

<rescap:Capability Name="runFullTrust" />
<rescap:Capability Name="allowElevation" />

in Package.appxmanifest

<requestedExecutionLevel level="requireAdministrator" uiAccess="false" />

in app.manifest get the same result

With desktop netcoreapp3.1 in Package i dont have such problem.

NuGet package version: [Microsoft.WinUI 3.0.0-preview2.200713.0]

Windows 10 version Saw the problem?
Insider Build (xxxxx)
May 2020 Update (19041) Yes
November 2019 Update (18363)
May 2019 Update (18362)
October 2018 Update (17763)
April 2018 Update (17134)
Fall Creators Update (16299)
Creators Update (15063)
Device form factor Saw the problem?
Desktop Yes
Xbox
Surface Hub
IoT

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:2
  • Comments:13 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
mrjfalkcommented, Apr 18, 2021

I’m running into a similar issue in the Reunion 0.5 release. When pressing Debug in Visual Studio I get the UAC dialog, but after allowing that nothing happens (the debugger still seems to be attached though). But if I press “Break All” button it says “No processes are currently being debugged”, so it’s most likely crashed.

0reactions
Sacwithcommented, Nov 26, 2021

is there any way to make overlay on top of always including start menu windows in winui3 preview deskotop apart from uiAcess=true in appmanifest bcoz elivation wont support in winui3 ?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Run as administrator causes windows.exe to crash
Run as administrator causes windows.exe to crash. I am a windows 7 user and I'm currently having problems with administrators stuffs.
Read more >
WinUI application running as Administrator?
I'm trying to write a WinUI 3 desktop app the requires the Administrator role. It does some msiexec work on behalf of the...
Read more >
Windows 10 constantly crashing
Windows 10 keeps crashing (even on a clean install) Motherboard - ASUS X99-A/USB3. Fix Photo App Keeps Crashing in Windows 10: If you...
Read more >
Visual Studio 2017 15.9.9 crashing when run as ...
I am running VS as an admin in order to connect to an IIS site locally. ... Visual Studiowindows 10.0idecrashperformancevisual studio 2017 ...
Read more >
Running a .NET MAUI Windows App as Administrator (Elevated)
In this post you will learn how to run your .NET MAUI Windows app as administrator. We will learn how to setup your...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found