强名称签名对此程序集Microsoft.Practices.EnterpriseLibrary.Data.dll无效

本文关键字:EnterpriseLibrary Practices Data dll 无效 Microsoft 程序集 强名称 | 更新日期: 2023-09-27 18:24:13

我正在以ClickOnce部署的方式运行windows窗体应用程序。当我调试解决方案时我没有犯任何错误。它运行良好。但是,当我使用单击一次部署发布应用程序并从文件夹,我得到以下错误日志。有人能帮我弄清楚到底是什么问题吗?

     The Dll's are in assemblies folder in one of the project.And they are used in other project as reference.
PLATFORM VERSION INFO
    Windows             : 6.1.7601.65536 (Win32NT)
    Common Language Runtime     : 4.0.30319.18063
    System.Deployment.dll       : 4.0.30319.17929 built by: FX45RTMREL
    clr.dll             : 4.0.30319.18063 built by: FX45RTMGDR
    dfdll.dll           : 4.0.30319.17929 built by: FX45RTMREL
    dfshim.dll          : 4.0.41209.0 (Main.041209-0000)
SOURCES
    Deployment url          :  WorkPC/FaxPromptTool/xrm.OutboundFax.application
                        Server      : Microsoft-IIS/7.5
                        X-Powered-By    : ASP.NET
    Application url         : WorkPC/FaxPromptTool/Application%20Files/xrm.OutboundFax_1_0_0_5/xrm.OutboundFax.exe.manifest
                        Server      : Microsoft-IIS/7.5
                        X-Powered-By    : ASP.NET
IDENTITIES
    Deployment Identity     : xrm.OutboundFax.application, Version=1.0.0.5, Culture=neutral, PublicKeyToken=f841479c30c8d3cb, processorArchitecture=x86
    Application Identity        : xrm.OutboundFax.exe, Version=1.0.0.5, Culture=neutral, PublicKeyToken=f841479c30c8d3cb, processorArchitecture=x86, type=win32
APPLICATION SUMMARY
    * Online only application.
    * Trust url parameter is set.
ERROR SUMMARY
    Below is a summary of the errors, details of these errors are listed later in the log.
    * Activation of http://pc265075/FaxPromptTool/xrm.OutboundFax.application resulted in exception. Following failure messages were detected:
        + Strong name signature not valid for this assembly Microsoft.Practices.EnterpriseLibrary.Data.dll.
COMPONENT STORE TRANSACTION FAILURE SUMMARY
    No transaction error was detected.
WARNINGS
    There were no warnings during this operation.
OPERATION PROGRESS STATUS
    * [09/23/14 8:53:12 PM] : Activation of http://pc265075/FaxPromptTool/xrm.OutboundFax.application has started.
    * [09/23/14 8:53:12 PM] : Processing of deployment manifest has successfully completed.
    * [09/23/14 8:53:12 PM] : Installation of the application has started.
    * [09/23/14 8:53:12 PM] : Processing of application manifest has successfully completed.
    * [09/23/14 8:53:16 PM] : Found compatible runtime version 4.0.30319.
    * [09/23/14 8:53:16 PM] : Request of trust and detection of platform is complete.
ERROR DETAILS
    Following errors were detected during this operation.
    * [09/23/14 8:53:17 PM] System.Deployment.Application.InvalidDeploymentException (SignatureValidation)
        - Strong name signature not valid for this assembly Microsoft.Practices.EnterpriseLibrary.Data.dll.
        - Source: System.Deployment
        - Stack trace:
            at System.Deployment.Application.ComponentVerifier.VerifyStrongNameAssembly(String filePath, AssemblyManifest assemblyManifest)
            at System.Deployment.Application.ComponentVerifier.StrongNameAssemblyComponent.Verify()
            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)
COMPONENT STORE TRANSACTION DETAILS
    No transaction information is available.

强名称签名对此程序集Microsoft.Practices.EnterpriseLibrary.Data.dll无效

我在进行一次性部署时也遇到了同样的问题。可能的错误是属性设置错误。1.你给这个程序集起了强有力的名字吗?。强命名后,您是否删除了旧引用并添加了新引用?如果是这样,那就错了。我们不需要再次显式添加dll。一旦我们构建了它,它就会自动被引用。如果您删除了显式添加的引用,请检查以下条件,1.a转到项目属性->发布->应用程序文件->检查是否有除GAC引用之外的对该特定DLL的任何引用(默认情况下,该DLL将从GAC引用到DLL,当您从计算机显式添加引用时,本地引用也将被添加)->如果您发现任何这样的东西,只需排除它即可重新构建它,并在构建后触发新的单击->这个问题应该得到解决。

  1. 对于引用,请将CopyLocal属性设置为true。引用->选择相应的DLL->将copyLocal属性设置为true

谢谢,Gayathri。chand.gayu@gmail.com

相关文章:
  • 没有找到相关文章