VoicemeeterFancyOSD icon indicating copy to clipboard operation
VoicemeeterFancyOSD copied to clipboard

Error loading CLR

Open denisreed opened this issue 1 year ago • 14 comments

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

denisreed avatar Apr 16 '23 19:04 denisreed

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

A-tG avatar Apr 17 '23 09:04 A-tG

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.

s1rT0by avatar Jul 11 '23 22:07 s1rT0by

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!

denisreed avatar Jul 12 '23 05:07 denisreed

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

A-tG avatar Jul 13 '23 02:07 A-tG

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

s1rT0by avatar Jul 13 '23 07:07 s1rT0by

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

A-tG avatar Jul 13 '23 09:07 A-tG

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.

s1rT0by avatar Jul 13 '23 12:07 s1rT0by

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

A-tG avatar Jul 13 '23 15:07 A-tG

Perfect, thats it. Its working again.

Thank you very much.

Maybe this will also help @denisreed

s1rT0by avatar Jul 13 '23 16:07 s1rT0by

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

denisreed avatar Jul 13 '23 16:07 denisreed

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

A-tG avatar Jul 13 '23 16:07 A-tG

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.

s1rT0by avatar Jul 14 '23 08:07 s1rT0by

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 avatar Jul 14 '23 12:07 A-tG

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.

A-tG avatar Jul 20 '23 16:07 A-tG