title: How to configure PDFNet for .NET application to publish to Citrix server? (AnyCPU)
body: <p>So I have been trying to config the project to make it work on our server via Citrix.</p>
  
  <p>I used this line of code to set the path:</p>
  
  <pre><code>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"));
  </code></pre>
  
  <p>I got this error every time (bin is where the .exe file is):</p>
  
  <pre><code>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'
  </code></pre>
  
  <p>Everything works fine on local machine. I got the error above whenever I run from Citrix, or log into the server machine and run from there.</p>