错误_2 [英] Error_2

查看:68
本文介绍了错误_2的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

错误 2 签名时发生错误:无法签名bin \ Debug \ app.publish \ voice.exe. SignTool错误:未找到符合所有给定条件的证书.
如何解决此问题?

Error 2 An error occurred while signing: Failed to sign bin\Debug\app.publish\voice.exe. SignTool Error: No certificates were found that met all the given criteria.
how can I fix this problem ?

推荐答案

您好 Btb4198,

Hi Btb4198,

通过Visual Studio遇到此错误时,是因为存在与原始开发计算机匹配的签名证书设置.

When getting this error through Visual Studio it was because there was a signing certificate setup to match the computer it was originally developed on.

如果不想签名,可以通过转到项目属性>进行检查.签名标签并检查证书详细信息.

If you don't want to sign, You can check this by going to the project properties > signing tab and checking the certificate details.

您可以取消选中签署ClickOnce清单"禁用签名

You can uncheck "Sign the ClickOnce manifests" to disable signing

还有另一种可能性,因为大多数证书都有有效期限,所以请始终先检查您的有效期限.

There is also another possibility, please always check your certificate expiry date first because most of the certificates have an expiry date.

如果您不想关闭此选项,则必须安装证书.

If you don't want to turn this option off you will have to install the certificate.


 您必须创建  Visual Studio提供的证书.
访问签名"页面

1.在解决方案资源管理器"中选择了项目节点后,从项目"菜单中单击属性"(或在解决方案资源管理器"中右键单击该项目节点,然后单击属性").
2.在项目设计器中,单击签名"选项卡.

使用证书签署应用程序和部署清单
1.在签名"页面上,选中对ClickOnce清单进行签名"复选框.
2.单击从存储中选择"按钮.
将出现选择证书"对话框,并显示Windows证书存储区的内容.


 You had to create the  certificate from the Visual Studio.  
To access the Signing page

1.With the project node selected in Solution Explorer, from the Project menu, click Properties (or right-click the project node in Solution Explorer, and click Properties).
2.In the Project Designer, click the Signing tab.

To sign application and deployment manifests using a certificate
1.On the Signing page, select the Sign the ClickOnce manifests check box.
2.Click the Select from Store button.
The Select a Certificate dialog box appears and displays the contents of the Windows certificate store.

最诚挚的问候,

克里斯汀


这篇关于错误_2的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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