Question

I am running into this issue with Team City C:\Windows\Microsoft.NET\Framework\v4.0.30319\Microsoft.Common.targets(2455, 5): error MSB3325: Cannot import the following key file: MYKey.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_66BA484DC57004A4

Can this be solved using NANT or Team City?

Was it helpful?

Solution

Sounds like the user you running TeamCity may not have the rights/permissions to that file/folder. Go to you Services and Change the 'TeamCity Build Agent Service' to a admin user. You can always test this with your account anything other than the default 'Local System' Account.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top