如何为.NET应用程序配置PDFNet以发布到Citrix服务器? (任何CPU)

时间:2018-07-19 13:48:44

标签: winforms citrix pdftron pdfnet

因此,我一直在尝试配置该项目,以使其能够通过Citrix在我们的服务器上运行。

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

.then(() => callback(null, acl)).catch(callback)

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

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"));

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

1 个答案:

答案 0 :(得分:1)

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

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

PDFNet .Net 4.0+ Getting Started Guide

PDFNet .Net 2.0-3.5 Getting Started Guide

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