Skip to content
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

Can't access games in Windows 11 pro 24h2 #141

Open
manituu opened this issue Jun 10, 2024 · 31 comments
Open

Can't access games in Windows 11 pro 24h2 #141

manituu opened this issue Jun 10, 2024 · 31 comments

Comments

@manituu
Copy link

manituu commented Jun 10, 2024

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.

@Mohammad-Alavi
Copy link

Yep, I get the same error when openning UWHook.
image

@whzzz
Copy link

whzzz commented Jul 27, 2024

same here
image

@LifeDreamer24
Copy link

same

@Maqiic
Copy link

Maqiic commented Sep 1, 2024

image
Same

@CobKurtain
Copy link

Same here :
image

@forebodingburger
Copy link

Getting the same error:
image
image

@LunRos
Copy link

LunRos commented Sep 23, 2024

Bump! Same error here!

@gregniblack
Copy link

Same error running 24H2.

@jenesuispasbavard
Copy link

jenesuispasbavard commented Oct 24, 2024

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.

@BlueCore7805
Copy link

The GOAT

@Brian-sketch98
Copy link

did anyone figure how to fix it

@Brian-sketch98
Copy link

manituu can you help me debug it

@manituu
Copy link
Author

manituu commented Nov 11, 2024

@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?

@CressoTheGrey
Copy link

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.

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

@CressoTheGrey
Copy link

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.

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

dos-ise pushed a commit to dos-ise/UWPHook that referenced this issue Nov 29, 2024
@dos-ise
Copy link
Contributor

dos-ise commented Nov 29, 2024

I have created a fix for this.

#152

@dos-ise

This comment was marked as resolved.

BrianLima added a commit that referenced this issue Dec 1, 2024
Fixed issue #141 Can't access games in Windows 11 pro 24h2
@BrianLima
Copy link
Owner

I've pushed a new release with the fix proposed by @dos-ise:

https://github.com/BrianLima/UWPHook/releases/tag/2.14.2

@AKK9
Copy link

AKK9 commented Dec 1, 2024

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

@dos-ise
Copy link
Contributor

dos-ise commented Dec 1, 2024

@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.

@AKK9
Copy link

AKK9 commented Dec 1, 2024

@dos-ise This works!

@AKK9
Copy link

AKK9 commented Dec 1, 2024

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.

@dos-ise
Copy link
Contributor

dos-ise commented Dec 1, 2024

Thanks @AKK9 for testing. I found the error and have updated the release.

https://github.com/dos-ise/UWPHook/releases/tag/Port

@cooldudeseven7Dev
Copy link

cooldudeseven7Dev commented Dec 1, 2024

Just ran the new version in this repository, I get the following error:
image
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)

@dos-ise
Copy link
Contributor

dos-ise commented Dec 1, 2024

@cooldudeseven7Dev Could you try this version?

https://github.com/dos-ise/UWPHook/releases/tag/Port

@dos-ise
Copy link
Contributor

dos-ise commented Dec 2, 2024

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

@AKK9
Copy link

AKK9 commented Dec 2, 2024

@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:
image

But not sure if this is even relevant to this issue, or a something else entirely

@dos-ise
Copy link
Contributor

dos-ise commented Dec 2, 2024

@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.

@dos-ise
Copy link
Contributor

dos-ise commented Dec 2, 2024

@AKK9 I have updated the port. Take a look at this version.

https://github.com/dos-ise/UWPHook/releases/tag/Port

@cooldudeseven7Dev
Copy link

@cooldudeseven7Dev Could you try this version?

https://github.com/dos-ise/UWPHook/releases/tag/Port

THANK YOU SO MUCH! This worked PERFECTLY!

@CaptSyndrum
Copy link

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests