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

0 Answers

Nobody has answered this question yet.


User contributions licensed under CC BY-SA 3.0