证书问题 - 导入密钥时出错“对象已存在” Windows 7升级后
我有大约 60 个 .pfx 文件,用于项目的所有主要程序集。它们是独特的文件,但我对所有文件使用相同的密码。
从 Windows Vista 升级到 Windows 7 后,当我在 Visual Studio 2008 中单击“生成”时,我会收到一个“导入密钥文件”对话框,要求输入密码。
这本来很好,但在插入密码后,我收到一个错误对话框:“导入密钥时出错” - 对象已经存在。
有什么想法吗?
I have about 60 .pfx files for all major assemblies for a project. They are unique files, but I use the same password for all.
After an upgrade from Windows Vista to Windows 7 I get an Import Key File dialog requesting the password for them when I click Build in Visual Studio 2008.
This would have been fine, but after inserting the password I get an error dialog: Error Importing Key - Object Already Exists.
Any ideas?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
解决了!
从 Vista 升级到 Windows 7 后,包含证书 C:\Users\All Users\Microsoft\Crypto\RSA\MachineKeys 的文件夹的权限已更改。
更改授予完全访问权限的权限后,问题就消失了。
让我知道这是否对任何人有帮助! :)
Solved it!
After the upgrade from Vista to Windows 7 the permissions of the folder containing certificates C:\Users\All Users\Microsoft\Crypto\RSA\MachineKeys had changed.
After changing the permissions granting full access the problem went away.
Let me know if this was helpful to anyone! :)
我真的不想开始更改文件权限来解决这个问题。但有关文件权限的答案确实将我推向了正确的方向。
我没有更改文件权限,而是以管理员身份运行 VS.NET,这也解决了密钥导入问题。
I didn't really want to start changing file permissions to fix this. But the answer about file permissions did push me in the right direction.
Instead of changing the file permissions I ran VS.NET as administrator, which also resolved the key import problem.