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

Error loading CLR #34

Open
denisreed opened this issue Apr 16, 2023 · 14 comments
Open

Error loading CLR #34

denisreed opened this issue Apr 16, 2023 · 14 comments

Comments

@denisreed
Copy link

Hi, this is a great app, I used on my old windows 10 laptop and worked fine, In got a windows 11 laptop and installed it and get this error (Attached image), I have installed .net desktop runtime from 5 version to 7 an I still have the same error, I have uninstalled the versions of .net runtime from 5 to 7 and reinstalled then and I still have the same error; I use windows 11 64 bits version, I haved run windows update to the latest, thanks for your help!!

01

@A-tG
Copy link
Owner

A-tG commented Apr 17, 2023

Open Command Prompt and enter dotnet --list-runtimes to see installed runtimes.
image
Try to launch VoicemeeterFancyOsd.exe instead of VoicemeeterFancyOsdHost.exe if there is no bug in Host it will probably ask to install .NET and will open link in browser. Check again if you actually installed x64 Desktop Runtime (under Run desktop apps in Microsoft download page) or try the winget command in Command Prompt
winget install Microsoft.DotNet.DesktopRuntime.7

@s1rT0by
Copy link

s1rT0by commented Jul 11, 2023

For me its the same problem since I upgraded my hardware.
With the upgrade there was a bunch of software utilities installed, one also used .NET and updated it.
My list of currently installed runtimes:
PS C:\Windows\system32> dotnet --list-runtimes
Microsoft.AspNetCore.App 7.0.5 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
Microsoft.NETCore.App 6.0.3 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
Microsoft.NETCore.App 7.0.5 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
Microsoft.NETCore.App 7.0.9 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
Microsoft.WindowsDesktop.App 6.0.3 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App]
Microsoft.WindowsDesktop.App 7.0.5 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App]
Microsoft.WindowsDesktop.App 7.0.9 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App]

Any idea on that?
Thank you very much.

@denisreed
Copy link
Author

I still have the same problem

Microsoft.NETCore.App 5.0.0 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
Microsoft.NETCore.App 7.0.9 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
Microsoft.WindowsDesktop.App 5.0.0 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App]
Microsoft.WindowsDesktop.App 6.0.18 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App]
Microsoft.WindowsDesktop.App 7.0.9 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App]

Please, help!

@A-tG
Copy link
Owner

A-tG commented Jul 13, 2023

What about launching VoicemeeterFancyOsd.exe instead of VoicemeeterFancyOsdHost.exe ?

@s1rT0by
Copy link

s1rT0by commented Jul 13, 2023

Its the exact same behaviour.
Samme error message for both, VoicemeeterFancyOsd.exe and VoicemeeterFancyOsdHost.exe.

@A-tG
Copy link
Owner

A-tG commented Jul 13, 2023

It can't be. "Error loading CLR" is a custom error message for VoicemeeterFancyOsdHost only.

@s1rT0by
Copy link

s1rT0by commented Jul 13, 2023

It is, please see the following screen capture:
https://cloud.faz.zone/index.php/s/wpoi33BtJWPEkcq

It does not make a difference if I start it as administrator, either.

@A-tG
Copy link
Owner

A-tG commented Jul 13, 2023

Delete all DXGI files and hostfxr.dll in the program's folder then try again.

Maybe some files were not updated properly. Try to use "clean" version from https://github.com/A-tG/VoicemeeterFancyOSD/releases

@s1rT0by
Copy link

s1rT0by commented Jul 13, 2023

Perfect, thats it.
Its working again.

Thank you very much.

Maybe this will also help @denisreed

@denisreed
Copy link
Author

Great!!! I delete all DXGI files and hostfxr.dll in the program's folder and it works!!! Thanks for the help!!!

@A-tG
Copy link
Owner

A-tG commented Jul 13, 2023

But that removes "overlay" functionality - being on top of fullscreen games similar to Media OSD and Game Bar. Try to download from Releases page and then you just copy 'Config' folder

@s1rT0by
Copy link

s1rT0by commented Jul 14, 2023

Tried that.
Downloaded the latest release, extracted it and copied my config folder into it.
The error message is shown again.
If I delete only the DXGI.dll its working again. (I understand without overlay functionality then).

Why is the DXGI.dll incompatible with the current .NET release?

Thank you for the great app and the continuous supper. Cheers.

@A-tG
Copy link
Owner

A-tG commented Jul 14, 2023

I have no idea. Maybe GPU driver (let me guess, Intel GPU?). DXGI.dll is slighty modified from https://github.com/ModernFlyouts-Community/ModernFlyouts I bet that program will have similar problem on your system. Try to move program to a different custom folder or even another drive. There might be problems with access rights on C, especially in Documents and Program FIles. You can try swapping hostfxr.dll and VoicemeeterFancyOsdHost.exe as described here https://github.com/A-tG/VoicemeeterFancyOSD#advanced-troubleshooting

@A-tG
Copy link
Owner

A-tG commented Jul 20, 2023

I use System Informer to check what modules are loaded by process. On my system normal exe loads "C:\Windows\System32\dxgi.dll" and Host loads DXGI.dll from the program's folder. I assume on your system both exe for some reason load the one in program's folder.

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

No branches or pull requests

3 participants