2

所以我一直在尝试配置项目以使其通过 Citrix 在我们的服务器上运行。

我使用这行代码来设置路径:

private static pdftron.PDFNetLoader loader = pdftron.PDFNetLoader.Instance().Path(String.Format(@"{0}\{1}",
        System.IO.Path.GetDirectoryName(System.Reflection.Assembly.GetAssembly(typeof(IndexUIZoom)).Location), @"PDFNet"));

我每次都收到此错误(bin 是 .exe 文件所在的位置):

INFO  Program [(null)] - Path: [bin]\PDFNet -

ERROR Program [(null)] - System.IO.FileNotFoundException: Could not load file or assembly 'PDFNet.dll' or one of its dependencies.
The specified module could not be found. File name: 'PDFNet.dll'

在本地机器上一切正常。每当我从 Citrix 运行或登录到服务器计算机并从那里运行时,我都会收到上述错误。

4

1 回答 1

1

您的服务器很可能缺少 MS VC++ 运行时依赖项。开发人员计算机通常将它们安装为 Visual Studio 安装的一部分,但服务器通常不会。您可以从 MSDN 下载 MS VC++ 安装程序。

要找到您需要下载的确切版本,请参阅下面 PDFNet .Net 入门指南的第 3.2.1 节。请注意,对于 PDFNet.dll 和 MS VC++ 运行时,您还需要匹配进程的运行时 32 位或 64 位。

PDFNet .Net 4.0+ 入门指南

PDFNet .Net 2.0-3.5 入门指南

https://www.pdftron.com/documentation/windows/guides

于 2018-07-19T15:43:44.790 回答