title: Trying to create a X509Certificate2 certificate fails when called within a COM interop environment
body: <p>I've got a classlibrary which defines a couple of helper classes/methods which are used from a classic asp web application. So far, everything works fine. Now I've added a new helper method which signs a PDF file using a third party tool. Using a console application to call this wrapper method, everything works fine. Once I use an asp page to call the exact same method, the call to </p>
  
  <pre><code>X509Certificate2 cert = new X509Certificate2(sigFilePath, sigPassword);
  </code></pre>
  
  <p>fails with the error "The system cannot find the specified file" (translated from german). </p>
  
  <p>Since the same code works fine called from the console application, i guess the problem must be located somewhere different. Could it be a security issue?</p>