Can't access games in Windows 11 pro 24h2
Hi there, since i updated to 24h2 (release canditate channel) UWPHook can't read the installed apps.
On startup (and if i click on reload app list) there is an error coming up [ERR] Error trying to get installed apps on your PC Die Datei oder Assembly "System.Security.Principal.Windows, Version=4.1.1.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" oder eine Abhängigkeit davon wurde nicht gefunden. Das System kann die angegebene Datei nicht finden.
The message says: The file or assembly "System.Security.Principal.Windows, Version=4.1.1.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" or a dependency was not found. The system can't find the choosen file.
If I can do anything to help you debug this just let me know.
Yep, I get the same error when openning UWHook.
same here
same
Same
Same here :
Getting the same error:
Bump! Same error here!
Same error running 24H2.
I know practically nothing about C#; but after some trial-and-error, I copied System.Security.Principal.Windows.dll and replaced System.Memory.dll from C:\Windows\System32\WindowsPowerShell\v1.0 into the UWPHook install folder (C:\Users\<username>\AppData\Roaming\Briano\UWPHook for me). And the relevant dependencies now load correctly in Windows 11 24H2.
Fixing this issue for good will still need some effort from the developer's side; but for now this workaround works for me.
The GOAT
@jenesuispasbavard did have the solution for us. The Powershell from this Windows build comes with a new "System.Memory.dll" which access to "System.Security.Principal.Windows.dll". Both seems to be in PATH, so if you would load it from there it should work rightaway. For everyone using it copying both files from "C:\Windows\System32\WindowsPowerShell\v1.0" works fine. But i think for you it is hard to deliver both of them in your Release, so accessing the one from PATH might be the solution. Not sure if that works out for every older windows version.
What can i do, to help you debugging?
I know practically nothing about C#; but after some trial-and-error, I copied
System.Security.Principal.Windows.dlland replacedSystem.Memory.dllfromC:\Windows\System32\WindowsPowerShell\v1.0into the UWPHook install folder (C:\Users\<username>\AppData\Roaming\Briano\UWPHookfor me). And the relevant dependencies now load correctly in Windows 11 24H2.Fixing this issue for good will still need some effort from the developer's side; but for now this workaround works for me.
I feel like I'm misunderstanding something here. I took System.Memory.dll and System.Security.Principal.Windows.dll and pasted them into the UWPHook install folder like you said but it didn't fix a thing
I know practically nothing about C#; but after some trial-and-error, I copied
System.Security.Principal.Windows.dlland replacedSystem.Memory.dllfromC:\Windows\System32\WindowsPowerShell\v1.0into the UWPHook install folder (C:\Users\<username>\AppData\Roaming\Briano\UWPHookfor me). And the relevant dependencies now load correctly in Windows 11 24H2. Fixing this issue for good will still need some effort from the developer's side; but for now this workaround works for me.I feel like I'm misunderstanding something here. I took System.Memory.dll and System.Security.Principal.Windows.dll and pasted them into the UWPHook install folder like you said but it didn't fix a thing
Oh, it's because my install folder was in downloads, my bad. I just put it in C:\Users\<username>\AppData\Roaming\Briano\UWPHook
I have created a fix for this.
https://github.com/BrianLima/UWPHook/pull/152
Here is a release with this fix included.
https://github.com/dos-ise/UWPHook/releases/tag/Fix
I've pushed a new release with the fix proposed by @dos-ise:
https://github.com/BrianLima/UWPHook/releases/tag/2.14.2
I've just installed 2.14.2 and I encounter this issue. The contents of my log file is:
2024-12-01 15:32:21.359 +00:00 [INF] Init log with ERROR level.
2024-12-01 15:32:23.064 +00:00 [ERR] Error trying to get installed apps on your PC
Could not load file or assembly 'System.Security.Principal.Windows, Version=5.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The system cannot find the file specified.
(This is without trying any of the workarounds in this issue)
Windows info:
Edition Windows 11 Pro
Version 24H2
Installed on ‎18/‎09/‎2024
OS build 26100.2454
Experience Windows Feature Experience Pack 1000.26100.36.0
@AKK9
Could you try this release? https://github.com/dos-ise/UWPHook/releases/tag/Port
I have created a .NET8 Port of UWPHook with a single file publish. This should solve version conflict problems.
@dos-ise This works!
Actually it just closes when I click the Export button. Logs don't help much:
2024-12-01 18:05:09.874 +00:00 [INF] Init log with ERROR level.
Thanks @AKK9 for testing. I found the error and have updated the release.
https://github.com/dos-ise/UWPHook/releases/tag/Port
Just ran the new version in this repository, I get the following error:
I have added my System.Security.Principal.Windows.dll to the apps folders.
I have attached my application.log (there are a few more errors because I ran it multiple times) application.log
What should I do? Thanks! Here are the TEXT contents of the application.log:
2024-12-01 13:52:13.851 -05:00 [INF] Init log with ERROR level.
2024-12-01 13:52:15.211 -05:00 [ERR] Error trying to get installed apps on your PC
Could not load file or assembly 'System.Security.Principal.Windows, Version=5.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The system cannot find the file specified.
2024-12-01 13:52:15.211 -05:00 [ERR] Error trying to get installed apps on your PC
Could not load file or assembly 'System.Security.Principal.Windows, Version=5.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The system cannot find the file specified.
2024-12-01 14:07:06.751 -05:00 [ERR] Error trying to get installed apps on your PC
Could not load file or assembly 'System.Security.Principal.Windows, Version=5.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The system cannot find the file specified.
2024-12-01 14:07:06.751 -05:00 [ERR] Error trying to get installed apps on your PC
Could not load file or assembly 'System.Security.Principal.Windows, Version=5.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The system cannot find the file specified.
2024-12-01 14:07:14.916 -05:00 [ERR] Error trying to get installed apps on your PC
Could not load file or assembly 'System.Security.Principal.Windows, Version=5.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The system cannot find the file specified.
2024-12-01 14:07:14.916 -05:00 [ERR] Error trying to get installed apps on your PC
Could not load file or assembly 'System.Security.Principal.Windows, Version=5.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The system cannot find the file specified.
2024-12-01 14:09:33.697 -05:00 [INF] Init log with ERROR level.
2024-12-01 14:09:34.456 -05:00 [ERR] Error trying to get installed apps on your PC
Could not load file or assembly 'System.Security.Principal.Windows, Version=5.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)
2024-12-01 14:09:34.456 -05:00 [ERR] Error trying to get installed apps on your PC
Could not load file or assembly 'System.Security.Principal.Windows, Version=5.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)
2024-12-01 14:09:50.688 -05:00 [INF] Init log with ERROR level.
2024-12-01 14:09:51.444 -05:00 [ERR] Error trying to get installed apps on your PC
Could not load file or assembly 'System.Security.Principal.Windows, Version=5.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)
2024-12-01 14:09:51.445 -05:00 [ERR] Error trying to get installed apps on your PC
Could not load file or assembly 'System.Security.Principal.Windows, Version=5.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)
2024-12-01 14:16:30.179 -05:00 [ERR] Error trying to get installed apps on your PC
Could not load file or assembly 'System.Security.Principal.Windows, Version=5.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)
2024-12-01 14:16:30.179 -05:00 [ERR] Error trying to get installed apps on your PC
Could not load file or assembly 'System.Security.Principal.Windows, Version=5.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)
2024-12-01 14:16:54.389 -05:00 [INF] Init log with ERROR level.
2024-12-01 14:16:55.159 -05:00 [ERR] Error trying to get installed apps on your PC
Could not load file or assembly 'System.Security.Principal.Windows, Version=5.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)
2024-12-01 14:16:55.160 -05:00 [ERR] Error trying to get installed apps on your PC
Could not load file or assembly 'System.Security.Principal.Windows, Version=5.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)
2024-12-01 14:17:19.945 -05:00 [ERR] Error trying to get installed apps on your PC
Could not load file or assembly 'System.Security.Principal.Windows, Version=5.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)
2024-12-01 14:17:19.945 -05:00 [ERR] Error trying to get installed apps on your PC
Could not load file or assembly 'System.Security.Principal.Windows, Version=5.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)
2024-12-01 14:17:44.502 -05:00 [ERR] Error trying to get installed apps on your PC
Could not load file or assembly 'System.Security.Principal.Windows, Version=5.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)
2024-12-01 14:17:44.502 -05:00 [ERR] Error trying to get installed apps on your PC
Could not load file or assembly 'System.Security.Principal.Windows, Version=5.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)
2024-12-01 14:17:48.558 -05:00 [INF] Init log with ERROR level.
2024-12-01 14:17:49.310 -05:00 [ERR] Error trying to get installed apps on your PC
Could not load file or assembly 'System.Security.Principal.Windows, Version=5.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The system cannot find the file specified.
2024-12-01 14:17:49.311 -05:00 [ERR] Error trying to get installed apps on your PC
Could not load file or assembly 'System.Security.Principal.Windows, Version=5.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The system cannot find the file specified.
2024-12-01 14:19:51.520 -05:00 [INF] Init log with ERROR level.
2024-12-01 14:19:52.294 -05:00 [ERR] Error trying to get installed apps on your PC
Could not load file or assembly 'System.Security.Principal.Windows, Version=5.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)
2024-12-01 14:19:52.295 -05:00 [ERR] Error trying to get installed apps on your PC
Could not load file or assembly 'System.Security.Principal.Windows, Version=5.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)
@cooldudeseven7Dev Could you try this version?
https://github.com/dos-ise/UWPHook/releases/tag/Port
I've pushed a new release with the fix proposed by @dos-ise:
https://github.com/BrianLima/UWPHook/releases/tag/2.14.2
I don't know what went wrong but this release does contain the correct dll Files. Check here: https://github.com/dos-ise/UWPHook/releases/tag/Fix
@dos-ise Nice! I can confirm the app loads the app list and exports them into Steam.
However, when I try to launch them from Stream I get an error. I've tried STALKER 2, Celeste, Tunic and Dead Island 2, and the error looks like this:
But not sure if this is even relevant to this issue, or a something else entirely
@dos-ise Nice! I can confirm the app loads the app list and exports them into Steam. But not sure if this is even relevant to this issue, or a something else entirely
Can confirm. There is still a bug in the .NET8 port
Try to look into it today.
@AKK9 I have updated the port. Take a look at this version.
https://github.com/dos-ise/UWPHook/releases/tag/Port
@cooldudeseven7Dev Could you try this version?
https://github.com/dos-ise/UWPHook/releases/tag/Port
THANK YOU SO MUCH! This worked PERFECTLY!
Hey. For me it doesnt send anything to Steam. I just select the Game and press "export", but then it just seems to get stuck and the App closes. Any idea whats happening?