title: Jenkins Cannot import the following key file
body: <p>I am able to build my application on Visual Studio without any problem. I am trying Jenkins out on the same machine. When I try to build my application from my git remote repository (It contains the .pfx file in the SVC) I get the error </p>
  
  <blockquote>
    <p>error MSB3325: Cannot import the following key file: Key.pfx. The key
    file may be password protected. To correct this, try to import the
    certificate again or manually install the certificate to the Strong
    Name CSP with the following key container name: VS_KEY...</p>
    
    <p>error MSB3321: Importing key file "Key.pfx" was canceled.</p>
  </blockquote>
  
  <p>I had already run the command shown on the answer of this question <a href="https://stackoverflow.com/questions/2815366/cannot-import-the-keyfile-blah-pfx-error-the-keyfile-may-be-password-protec">Cannot import the keyfile &#39;blah.pfx&#39; - error &#39;The keyfile may be password protected&#39;</a> and that is the reason my application runs in Visual Studio (I've done it through the command prompt as administrator fyi), which means when I try running it again the object already exists and if I uninstall and reinstall the same problem happens again.</p>
  
  <p>Anyone has any ideas of how I can solve this problem?</p>