所以我一直在尝试配置项目以使其通过 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 运行或登录到服务器计算机并从那里运行时,我都会收到上述错误。