C# 为什么此程序集无法通过强名称验证?

C# 为什么此程序集无法通过强名称验证?,c#,.net,visual-studio,dll,strongname,C#,.net,Visual Studio,Dll,Strongname,我在我的C#项目中使用了CabLib.dll 我正在Windows 10上使用Visual Studio 2015 当我尝试发布应用程序时,出现以下错误:强名称签名对此程序集CabLib.dll无效。 System.Deployment.Application.InvalidDeploymentException (SignatureValidation) - Strong name signature not valid for this assembly CabLib.dll.

我在我的C#项目中使用了CabLib.dll

我正在Windows 10上使用Visual Studio 2015

当我尝试发布应用程序时,出现以下错误:
强名称签名对此程序集CabLib.dll无效。

System.Deployment.Application.InvalidDeploymentException (SignatureValidation)
    - Strong name signature not valid for this assembly CabLib.dll.
    - Source: System.Deployment
    - Stack trace:
        at System.Deployment.Application.ComponentVerifier.VerifyStrongNameAssembly(String filePath, AssemblyManifest assemblyManifest)
        at System.Deployment.Application.ComponentVerifier.VerifyComponents()
        at System.Deployment.Application.DownloadManager.DownloadDependencies(SubscriptionState subState, AssemblyManifest deployManifest, AssemblyManifest appManifest, Uri sourceUriBase, String targetDirectory, String group, IDownloadNotification notification, DownloadOptions options)
        at System.Deployment.Application.ApplicationActivator.DownloadApplication(SubscriptionState subState, ActivationDescription actDesc, Int64 transactionId, TempDirectory& downloadTemp)
        at System.Deployment.Application.ApplicationActivator.InstallApplication(SubscriptionState& subState, ActivationDescription actDesc)
        at System.Deployment.Application.ApplicationActivator.PerformDeploymentActivation(Uri activationUri, Boolean isShortcut, String textualSubId, String deploymentProviderUrlFromExtension, BrowserSettings browserSettings, String& errorPageUrl)
        at System.Deployment.Application.ApplicationActivator.ActivateDeploymentWorker(Object state)
我可以从VS Dev Cmd提示符中使用SN.exe工具并获取.dll的公共令牌,但是当我使用
SN-v cablib.dll
时,我会得到错误
验证程序集失败--强名称验证失败。


在哪里可以获得有关此失败的更多信息?

首先,将ca证书添加到IE/Edge,然后重新检查项目的签名配置。我是在win7+vs2013下完成的。首先,将ca证书添加到IE/Edge,然后重新检查项目的签名配置。我在win7+vs2013下做到了这一点。