-
Notifications
You must be signed in to change notification settings - Fork 334
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
Upgraded AppSDK 0.8 App crashes on startup - Unable to load DLL 'Microsoft.UI.Xaml.dll' or one of its dependencies #974
Comments
Callstack:
|
This is not good - this also repros on a blank new WinUI project created with the 0.8 templates. Background: Same exact crash on startup as my app above It's looking for a Microsoft.UI.Xaml.dll and I don't see that in the deployed app folder. |
Do you have the package project set as startup or the app? should be the package project |
There is a different bug that will crash reunion 0.8 apps in insider builds, tracked by microsoft/microsoft-ui-xaml#5295 |
Pkg project |
I had the same problem, but running "Clean Solution" solved it for me :-) |
Please try 0.8.1 to verify if the issue is resolved! Please re-open if you're still facing the problem. |
Yes - verified it's now resolved in 0.8.1! |
I'm getting this on 1.0.0-preview3. |
I'm not getting this issue on my dev machine, but when I copy my app (unpackaged) to a virtual machine for testing, and install the Microsoft.WindowsAppRuntime.Redist.1.0.0 I seem to be missing this file that exists on my dev machine (as reported by event viewer): (edit) However this is not the case, because I confirmed using procmon64 that the above DLL is being successfully loaded. Event Viewer is saying it is unable to load Microsoft.ui.xaml.dll in XamlCheckProcessRequirements() I was following the instructions on this page https://docs.microsoft.com/en-us/windows/apps/winui/winui3/create-your-first-winui3-app?tabs=csharp%2Ccsharp-unpackaged#instructions-for-winui-3-unpackaged-desktop-apps excluding installing the VS2019 extension because my test VM is not a development machine. |
I'm getting this too on my Windows 10 VM, but works fine on Windows 11 Desktop, VM and Surface GO 3 Win11. |
I'm running Windows 10, not a VM. |
The solution was to install VCRedist . Testing WinUI 3 desktop apps in Hyper-V works fine now thanks to @MikeHillberg's comment |
Reinstalling VCRedist didn't solve this for me. Now on WindowsAppSDK 1.0 still have the problem. |
When I run Packaged app on my machine it works. When I run Unpackaged app it doesn't. When I run exe from console it doesn't work. When I deploy an app to another machine it doesn't work. When I say it doesn't work it means I am getting an error either in Event Viewer or dialog box "Unable to load DLL 'Microsoft.ui.xaml.dll' or one of its dependencies". |
@yshteinm : Did you find a solution for your issue ? It seems your comment gets upvoted, so I'm not alone having that issue, but is there an issue I can follow ? |
@jeremyVignelles I gave up on WinSDK project and doing .Net 6 Core Win Forms |
This is ridiculous. It should not be closed. |
Okay so I just updated a project from WindowsAppSDK 1.0.2 to 1.3.0 and I ran into this issue immediately, but I was able to resolve it. I did these things:
And I was able to get my app to run again. Unfortunately, you can't just set the version to something like |
Did all these still facing the same issue. "Unable to load DLL 'Microsoft.ui.xaml.dll' or one of its dependencies" |
I had the same problem |
Describe the bug
Upgraded working 0.5.7 ReUnion app to 0.8. This app also used to run fine on 0.8 Preview.
Now it crashes on startup. I had a PITA time in order to try debug it and find the exception (due to running app as admin issues) but I temporarily removed that since the app appears to crash before it hits my code.
Indeed, now I can see it crashes on basic startup.
System.DllNotFoundException
HResult=0x80131524
Message=Unable to load DLL 'Microsoft.UI.Xaml.dll' or one of its dependencies: The specified module could not be found. (0x8007007E)
Source=
StackTrace:
Steps to reproduce the bug
Expected behavior
App doesn't crash on startup and all necessary .dlls are deployed
Screenshots
Version Info
PackageReference Include="Microsoft.ProjectReunion" Version="0.8.0" />
PackageReference Include="Microsoft.ProjectReunion.Foundation" Version="0.8.0" />
PackageReference Include="Microsoft.ProjectReunion.WinUI" Version="0.8.0" />
NuGet package version:
See above
Additional context
The text was updated successfully, but these errors were encountered: