-
Notifications
You must be signed in to change notification settings - Fork 711
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
WINUI 3 Unable to Run Published App Due To KERNELBASE.dll Crash #6757
Comments
@evelynwu-msft FYI |
Is there any feedback or guidance on this issue? I'm running into the same issue with the MSIX produced for sideloading a winUI 3 application. |
You probably don't have it set to self-contained. |
Still happens whatever options are picked and just doesn't work |
I have the same problem and real problem is shadowed with Kernelbase.dll problem, any suggestions how to proceed with this ? |
I also have the nearly the same problem but if i publish it into a folder it works. If I copy the files from the folder publish to the ClickOnce files i dont get a error that says that "Microsoft.WindowsAppRuntime.Bootstrap.dll" is missing anymore but I get the same KERNELBASE.dll error. |
I have the same problem, when I drag and drop a file on a dropActionHandler it will crash 1 in 10 times. The dumbest thing ever is that I get a unhandled exception inside a try catch block. Of course this is typical MS quality here. |
I maybe have a similar issue in my WINUI3 Win32 (win10 x64 19045) Desktop App under .NET6. The Application Runs fine when launched in Debug Mode. As a release build or when packed to folder (single file) i got these problems: Published to Folder as single File: KERNELBASE.DLL Error like mentioned above The TitleBar-Issue seems to be related to the AppSDk Version: WinUI 3 - Windows App SDK 1.2.230118.102 = titlebar working To reproduce the issue i had to clean the project (remove obj and bin folders in windows fileexplorer) Downgrading to 1.2.230118.102 fixed the titlebar issue. However, i still get the kernelbase error when packed to a single file. |
I have this same exception; I have managed to isolate it to when I submit a message within the UI which in the background saves data to a file at the directory returned from:
The Exception Message is:
I thought maybe it was an elevation issue, but that doesn't seem to be the case. This works in Debug and Release for x32 and x64. Not sure if anyone has any suggestions as to where to look. |
+1 to this, even seems to happen on a fresh VM. Very strange |
I narrowed my issue down to a 3rd party NuGet package with a literal directory path trying to write data to somewhere it wasn't allowed to once it was installed within the You'd think there would be a more meaningful exception being raised natively for this. |
Same for me on two fresh install today. |
I had to switch to WFP to get my app to work last time and re-do parts of it. |
Stay away from this stinker. |
Maybe a little bit late, but i noticed that this issue is still open. Check if you're code make use a foreach loop. If the foreach loops through a null valued list, your application will crash. So instead of using:
which potential could be null, use an extension method
The extension method can be simple as source
|
Something that I found out since I have also a lot of problems with packaging: I have 2 projects, one is the Application, second is a Package project. When Application project has the following set: -> it installed fine, but it will not launch. However, seems that with: -> it installed fine, and does launch and run just fine. One twist to the plot: There is just one caveat: When built with |
Describe the bug
I cannot get any WINUI desktop apps I create to run outside of Visual Studio however I publish them (single app or lots of files and with or without ClickOnce installation.
I am using the 17.1 version of Visual Studio 2022 on the latest Windows 11 insider build.
Steps to reproduce the bug
Create a new Blank App, Packaged (WINUI 3 in Desktop) and then publish this (for example selecting ClickOnce then the single file option or deploying all files to a share).
Nothing happens when the .exe is launched and looking in Event Viewer Application log the following errors appears:
First this one:
Then this one:
Expected behavior
The app should launch and display the main window
Screenshots
No response
NuGet package version
WinUI 3 - Windows App SDK 1.0
Windows app type
Device form factor
No response
Windows version
No response
Additional context
No response
The text was updated successfully, but these errors were encountered: