证书问题 - 导入密钥时出错“对象已存在” Windows 7升级后

发布于 2024-08-03 01:18:06 字数 229 浏览 7 评论 0原文

我有大约 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

天煞孤星 2024-08-10 01:18:06

解决了!

从 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! :)

帝王念 2024-08-10 01:18:06

我真的不想开始更改文件权限来解决这个问题。但有关文件权限的答案确实将我推向了正确的方向。

我没有更改文件权限,而是以管理员身份运行 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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文