加密错误错误和DLL错误的元数据文件 [英] Cryptographic failure error and metadata file for dll error

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

问题描述

我们已经从另一家公司购买了带有源代码的软件.但是当我构建它时,发生了以下两个错误.我对此进行了大量研究.但找不到解决方案.通常,.snk文件是用于DLL的(将其添加到GAC全局程序集缓存中),我在应用程序文件夹或任何位置都找不到`PublicPrivateKeyFile.snk`.应用程序引用了dll的数量,因此每个DLL都会显示相同的错误.我应该怎么做才能解决此错误.

签名程序集... \ obj \ Debug \ xyz.dll时出现错误加密失败''-``读取密钥文件''c:\ Users \ Administrator \ Desktop \ NewCode \ abc \ Libs \ PublicPrivateKeyFile.snk时出错''- -系统找不到指定的文件.
找不到错误元数据文件``C:\ Users \ Administrator \ Desktop \ NewCode \ abc \ bin \ Debug \ xyz.dll''

什么是元数据文件?
如何解决这两个错误?

We have purchase one software from another company with source code. But when i build it, following two errors had occurring. I researched lot on it. But cant find solution. Generally `.snk` files are for DLLs (to add it in GAC global assembly cache) i can''t found `PublicPrivateKeyFile.snk` in app folder or anywhere. Application references number of dlls,so same error is shown for every DLL. What should i do to resolve this errors.

Error Cryptographic failure while signing assembly ...\obj\Debug\xyz.dll'' -- ''Error reading key file ''c:\Users\Administrator\Desktop\NewCode\abc\Libs\PublicPrivateKeyFile.snk'' -- The system cannot find the file specified.`

Error metadata file ''C:\Users\Administrator\Desktop\NewCode\abc\bin\Debug\xyz.dll'' could not be found

What is metadata file?
How to resolve both errors?

推荐答案

公司不共享其密钥对,即使在公司内部,很少有人可以访问这些密钥.我认为您可以尝试在项目属性中禁用程序集签名.这样应该可以构建项目,但是您将无法在GAC中安装DLL.
Companies don''t share their key pairs, even inside a company few people have access to these keys. I think you could try to disable the assembly signing in the project properties. This should let you build the project, but you won''t be able to install the DLLs in the GAC.


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

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