简体   繁体   English

在 VS2015 中发布后未找到 DLL 错误 — tidy.x64.dll

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

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.不要隐藏,我不是 C# 专家,但我习惯学习。

I use TidyHTML in a project to correct some corrupt html from an editor.我在一个项目中使用 TidyHTML 来纠正编辑器中的一些损坏的 html。 The software is written in C#, .net 4.6.该软件是用 C#、.net 4.6 编写的。 We publish to an FTP-Server (One Click)我们发布到 FTP 服务器(一键式)

I started with TidyHtml5ManagedRepack and TidyHtml5Managed from nuget.我从 nuget 开始使用 TidyHtml5ManagedRepack 和 TidyHtml5Managed。 Formerly i compiled 32bit.以前我编译的是32位。 When i tried to change over to 64bit i was no more able to reinstall TidyHtml5ManagedRepack from nuget.当我尝试更改为 64 位时,我无法从 nuget 重新安装 TidyHtml5ManagedRepack。 So i installed it manually (referencing).所以我手动安装了它(参考)。

On my development machine (Win7 with 64bit) everything is good when i compile 64bit or 32bit.在我的开发机器(带有 64 位的 Win7)上,当我编译 64 位或 32 位时,一切都很好。

TidyHtml5Managed.dll is in "References-folder" and added to References. TidyHtml5Managed.dll 位于“参考文件夹”中并添加到参考。 tidy.x86.dll and tidy.x64.dll are in the projects root folder and while release they got copied. tidy.x86.dll 和 tidy.x64.dll 位于项目根文件夹中,发布时它们被复制。

This works on my development machine AND on windows 7 client machines.这适用于我的开发机器和 Windows 7 客户端机器。

When i try to install it on windows 10 64 bit (installation works well and software starts) i get this error for x64 compilation:当我尝试将它安装在 Windows 10 64 位(安装运行良好且软件启动)上时,我收到 x64 编译错误:

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

But the dll exists in the root folder .但是 dll 存在于根文件夹中 I also tried to copy it to windows-folder and other folder where it could be loaded from.我还尝试将它复制到 windows 文件夹和其他可以从中加载它的文件夹。 Maybe the delivered x64-dll is not compatible to win10?也许交付的 x64-dll 与 win10 不兼容? Is this possible?这可能吗?

I tried also to use tidy dll for 64bit from here;我也尝试使用 tidy dll for 64bit from here; http://binaries.html-tidy.org/ . http://binaries.html-tidy.org/ Just renamed it to tidy.x64.dll an renamed in the root-apps folder on clinet machine (win10).刚刚将其重命名为 tidy.x64.dll,并在 clinet 机器(win10)上的 root-apps 文件夹中重命名。 Same error.同样的错误。

Does anyone have an idea or a suggested setup for this issue?有没有人对此问题有想法或建议的设置? I want use my software in 64bit with tidy.我想在 64 位整洁地使用我的软件。

@HansPassant thank you for your comment. @HansPassant 感谢您的评论。 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.只需在 Windows ( https://www.microsoft.com/en-au/download/details.aspx?id=5555 ) 中安装 Visual C++ 2010 Redistributable Package (x86) 就是我的解决方案。

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. Hans 所说的另一个选项是将 msvcr100.dll 包含在您的可执行文件中,然后您就不需要安装 Visual C++ 2010 Redistributable Package。 But make sure it is the correct msvcr100.dll.但请确保它是正确的 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.为了确保您首先安装了 Visual C++ 2010 Redistributable Package,请从 C:\\Windows\\SysWOW64 或 C:\\Windows\\system32 获取它,然后您可以再次卸载 Visual C++ 2010 Redistributable Package。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM