Installing .NET application missing Microsoft.Cryp

2019-07-31 14:23发布

I have developed a Console app for Lync 2013 in VS 2012, targeting .NET 4.0. I have successfully installed the application on my own machine, but now I need to run it on another client, and I get this strange error. I have Googled the error, but have not found anything useful.

Error message when installing Console application

The error is in danish, but tells me that I am missing Microsoft.Cryptography.DKM version 1.11.0.0 in GAC.

I have not seen this error before, and it seems like it is not a common error, as it is hard to find any information about this on the internet.

Any advise any suggestions are very welcome.

2条回答
男人必须洒脱
2楼-- · 2019-07-31 14:37

I solved the issue by including all the assemblies from the UMCA 4.0 api, that was used in the project, which solved the issue. I was confused by this for me unknown assembly Microsoft.Cryptography.DKM.

Thank you Csaba Toth, for pointing me in the right direction. If you will write your comment as a reply to my question, I will mark it as the correct solution.

查看更多
爷、活的狠高调
3楼-- · 2019-07-31 14:53

Since I just had the same problem and this answer is not really clear: Go to Project->xxxProperties In the Publish tab click "Application files" Change "Publish status" from "Prerequisite" to "Include"

查看更多
登录 后发表回答