A-tG / VoicemeeterFancyOSD

On-screen display for Voicemeeter that works with fullscreen apps.
MIT License
153 stars 4 forks source link

Error loading CLR #34

Open denisreed opened 1 year ago

denisreed commented 1 year ago

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 commented 1 year ago

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 commented 1 year ago

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 commented 1 year ago

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 commented 1 year ago

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

s1rT0by commented 1 year ago

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

A-tG commented 1 year ago

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

s1rT0by commented 1 year ago

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 commented 1 year ago

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 commented 1 year ago

Perfect, thats it. Its working again.

Thank you very much.

Maybe this will also help @denisreed

denisreed commented 1 year ago

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

A-tG commented 1 year ago

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 commented 1 year ago

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 commented 1 year ago

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 commented 1 year ago

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.