DLL not found error after publishing in VS2015 — tidy.x64.dll

0

I have an issue I struggle with since days. I nearly tried everything i am able to try but had no success. Not to hide, I am not an C# expert but I use to learn.

I use TidyHTML in a project to correct some corrupt html from an editor. The software is written in C#, .net 4.6. We publish to an FTP-Server (One Click)

I started with TidyHtml5ManagedRepack and TidyHtml5Managed from nuget. Formerly i compiled 32bit. When i tried to change over to 64bit i was no more able to reinstall TidyHtml5ManagedRepack from nuget. So i installed it manually (referencing).

On my development machine (Win7 with 64bit) everything is good when i compile 64bit or 32bit.

TidyHtml5Managed.dll is in "References-folder" and added to References. tidy.x86.dll and tidy.x64.dll are in the projects root folder and while release they got copied.

This works on my development machine AND on windows 7 client machines.

When i try to install it on windows 10 64 bit (installation works well and software starts) i get this error for x64 compilation:

System.DllNotFoundException: Die DLL "tidy.x64.dll": Das angegebene Modul wurde nicht gefunden. (Ausnahme von HRESULT: 0x8007007E) kann nicht geladen werden.

But the dll exists in the root folder. I also tried to copy it to windows-folder and other folder where it could be loaded from. Maybe the delivered x64-dll is not compatible to win10? Is this possible?

I tried also to use tidy dll for 64bit from here; http://binaries.html-tidy.org/. Just renamed it to tidy.x64.dll an renamed in the root-apps folder on clinet machine (win10). Same error.

Does anyone have an idea or a suggested setup for this issue? I want use my software in 64bit with tidy.

c#
dll
visual-studio-2015
tidy
htmltidy
asked on Stack Overflow Feb 21, 2019 by rogras • edited Feb 21, 2019 by Uwe Keim

1 Answer

0

@HansPassant thank you for your comment. Simply installing the Visual C++ 2010 Redistributable Package (x86) in Windows (https://www.microsoft.com/en-au/download/details.aspx?id=5555) was my solution.

The other option as Hans says is to include the msvcr100.dll with your executable and then you don't need the Visual C++ 2010 Redistributable Package installed. But make sure it is the correct msvcr100.dll. To be sure you have the correct one install the Visual C++ 2010 Redistributable Package first, get it from either C:\Windows\SysWOW64 or C:\Windows\system32, then you can uninstall the Visual C++ 2010 Redistributable Package again.

answered on Stack Overflow Jul 11, 2020 by Sean Griffin • edited Jul 11, 2020 by Sean Griffin

User contributions licensed under CC BY-SA 3.0