签名时出错:Visual Studio 2015中的参数不正确 [英] An error occurred while signing: The parameter is incorrect in Visual Studio 2015

查看:444
本文介绍了签名时出错:Visual Studio 2015中的参数不正确的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


点击"立即发布"后,我收到以下错误消息在Visual Studio 2015中,我创建了测试证书并安装在根存储上,并通过VS2015安装了强名称文件。我试图发布的应用程序是windows
表单应用程序。



无法发布,因为项目无法构建。


签名时出错:参数不正确。



请帮忙,


Tim

解决方案

朋友,


>>参数不正确。


您的构建是在服务中运行还是在导入证书的用户帐户中运行?


这是一个频繁的MSBuild错误,来自  MSDN  您可以获得以下解决方案:


尝试关闭任何需要私钥保护的本地安全策略设置。接下来,删除并重新导入构建用户帐户的证书。


请参阅以下类似的解决方案:


http://stackoverflow.com/questions/10017423/error- the-parameter-is-incorrect-while-signing-c-sharp-vsto-manifest


HTTPS? //social.msdn.microsoft.com/Forums/windows/en-US/9421c295-ddc5-41aa-9877-92f307cdd91c/clickonce-application-signing-catch22-with-net-35-sp1-and-visual-studio- 2008?forum = winformssetup


希望有所帮助!


最好的问候,


Stanly


Hi,

I am receiving the error below when I clicked the "Publish Now" button in Visual Studio 2015, I created the test certificate and installed on the root store and also a strong name file via VS2015. The application I was trying to publish is windows form application.

Cannot publish because the project failed to build.

An error occurred while signing: The parameter is incorrect.

Please help,

Tim

解决方案

Hi friend,

>>The parameter is incorrect.

Is your build is running in a service or in a user account other than the one that imported the certificate?

This a frequent MSBuild Error, and from the MSDN you can get the below solution:

Try turning off any Local Security Policy settings that require private key protection. Next, delete and re-import the certificate for the build's user account.

And please refer to the following similar solutions:

http://stackoverflow.com/questions/10017423/error-the-parameter-is-incorrect-while-signing-c-sharp-vsto-manifest

https://social.msdn.microsoft.com/Forums/windows/en-US/9421c295-ddc5-41aa-9877-92f307cdd91c/clickonce-application-signing-catch22-with-net-35-sp1-and-visual-studio-2008?forum=winformssetup

Hope it helps!

Best Regards,

Stanly


这篇关于签名时出错:Visual Studio 2015中的参数不正确的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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