将项目从VS 2005转换为VS 2010后,.pfx文件给出错误. [英] .pfx file gives an error after converting project from VS 2005 to VS 2010.

查看:204
本文介绍了将项目从VS 2005转换为VS 2010后,.pfx文件给出错误.的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在项目中添加了.pfx文件,它是在vs2005中开发的.

我已将此项目从vs 2005转换为vs2010.

我已再次安装证书.

现在,.pfx文件出现问题.它显示3个错误,如下所示...

1.

I had added .pfx file in my project, It was developed in vs2005.

I have converted this project from vs 2005 to vs 2010.

I have install the certificate again.

now the .pfx file is giving problem. it shows 3 errors, as below...

1.

Error 3 Cannot import the following key file: TemporaryKey.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_BB29B0994ABBAB54 SSS


2.


2.

Error 4 Importing key file "CRM_TemporaryKey.pfx" was canceled. CRM


3.


3.

Error 5 The KeyContainer path ''VS_KEY_BB29B0994ABBAB54'' is invalid. KeyContainer must point to an existing file. CRM


我无法在我的项目中添加另一个.pfx,因为我已经在客户端发布了我的应用程序.如果我添加新的.pfx,则其公共密钥将被更改,并且在下一次发布时将在客户端发生错误.

我该怎么办?


I cant add another .pfx in to my project, as I have already published my application on client side. If I add new .pfx then its Public key will be changed and error will occur on client side on next publish.

What should I do ?

推荐答案

我也发现这与2010年项目有关.使用KeyContainer路径的名称创建一个空文件会有所帮助(例如,在本例中为一个名为VS_KEY_BB29B0994ABBAB54的空文件),这至少对您列出的错误点3有所帮助.
I''ve found this an issue with 2010 projects as well. Creating an empty file with the name of the KeyContainer path has help (ie in this case an empty file called VS_KEY_BB29B0994ABBAB54) This at least helps with error dot point 3 you''ve listed.


这篇关于将项目从VS 2005转换为VS 2010后,.pfx文件给出错误.的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆