【问题标题】:Clickonce Weird ExceptionClickonce 奇怪的异常
【发布时间】:2010-06-20 20:49:08
【问题描述】:

我正在尝试通过单击一次来发布应用程序,但我遇到了这个奇怪的异常。我搜索了信息,但没有找到任何相关信息。

有没有人做可能发生的事情?您还需要其他信息吗?

谢谢。

PLATFORM VERSION INFO
    Windows             : 6.1.7600.0 (Win32NT)
    Common Language Runtime     : 4.0.30319.1
    System.Deployment.dll       : 4.0.30319.1 (RTMRel.030319-0100)
    clr.dll             : 4.0.30319.1 (RTMRel.030319-0100)
    dfdll.dll           : 4.0.30319.1 (RTMRel.030319-0100)
    dfshim.dll          : 4.0.31106.0 (Main.031106-0000)

SOURCES
    Deployment url          : http://www.domain.com/app/Atomic.Theseus.application
                        Server      : Apache/2.0.54
    Application url         : http://www.domain.com/app/Application%20Files/Atomic.Theseus_1_2_0_3/Atomic.Theseus.exe.manifest
                        Server      : Apache/2.0.54

IDENTITIES
    Deployment Identity     : Atomic.Theseus.application, Version=1.2.0.3, Culture=neutral, PublicKeyToken=0000000000000000, processorArchitecture=msil
    Application Identity        : Atomic.Theseus.exe, Version=1.2.0.3, Culture=neutral, PublicKeyToken=0000000000000000, processorArchitecture=msil, 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://www.domain.com/app/Atomic.Theseus.application resulted in exception. Following failure messages were detected:
        + Value does not fall within the expected range.

COMPONENT STORE TRANSACTION FAILURE SUMMARY
    No transaction error was detected.

WARNINGS
    * The manifest for this application does not have a signature. Signature validation will be ignored.
    * The manifest for this application does not have a signature. Signature validation will be ignored.

OPERATION PROGRESS STATUS
    * [6/20/2010 3:44:32 PM] : Activation of http://www.domain.com/app/Atomic.Theseus.application has started.
    * [6/20/2010 3:44:33 PM] : Processing of deployment manifest has successfully completed.
    * [6/20/2010 3:44:33 PM] : Installation of the application has started.
    * [6/20/2010 3:44:33 PM] : Processing of application manifest has successfully completed.
    * [6/20/2010 3:44:33 PM] : Found compatible runtime version 2.0.50727.
    * [6/20/2010 3:44:33 PM] : Detecting dependent assembly Sentinel.v3.5Client, Version=3.5.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=msil using Sentinel.v3.5Client, Version=3.5.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=msil.
    * [6/20/2010 3:44:33 PM] : Detecting dependent assembly System.Data.Entity, Version=3.5.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089, processorArchitecture=msil using System.Data.Entity, Version=3.5.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089, processorArchitecture=msil.
    * [6/20/2010 3:44:33 PM] : Detecting dependent assembly WindowsBase, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=msil using WindowsBase, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=msil.
    * [6/20/2010 3:44:33 PM] : Detecting dependent assembly System.Core, Version=3.5.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089, processorArchitecture=msil using System.Core, Version=3.5.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089, processorArchitecture=msil.
    * [6/20/2010 3:44:33 PM] : Detecting dependent assembly System.Data.Entity, Version=3.5.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089, processorArchitecture=msil using System.Data.Entity, Version=3.5.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089, processorArchitecture=msil.
    * [6/20/2010 3:44:33 PM] : Request of trust and detection of platform is complete.

ERROR DETAILS
    Following errors were detected during this operation.
    * [6/20/2010 3:44:34 PM] System.ArgumentException
        - Value does not fall within the expected range.
        - Source: System.Deployment
        - Stack trace:
            at System.Deployment.Internal.Isolation.IStore.LockApplicationPath(UInt32 Flags, IDefinitionAppId ApId, IntPtr& Cookie)
            at System.Deployment.Application.ComponentStore.LockApplicationPath(DefinitionAppId definitionAppId)
            at System.Deployment.Application.SubscriptionStore.LockApplicationPath(DefinitionAppId definitionAppId)
            at System.Deployment.Application.FileDownloader.PatchFiles(SubscriptionState subState)
            at System.Deployment.Application.FileDownloader.Download(SubscriptionState subState)
            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.

【问题讨论】:

  • 只是一个评论。此异常发生在我的机器和我尝试执行应用程序的任何其他机器上。然后,当我使用测试证书签署应用程序时,它可以在我的机器上运行,但只能在我的机器上运行。

标签: exception deployment clickonce


【解决方案1】:

您是否使用 Visual Studio 发布您的应用程序?发布后您是否对其进行了任何更改?当您有混合引用(>1 对同一 dll 的不同版本的引用)或您有循环引用时,通常会发生此错误。您还可以检查您的主项目 - 转到属性,单击“应用程序”选项卡,然后在底部的“图标和清单”下,确保“清单”显示“创建没有清单的应用程序”。

【讨论】:

  • 问题已解决。但感谢罗宾。实际上,这是我在应用程序中使用的扫描仪驱动程序的问题。一旦安装在客户端 PC 上,问题就会消失
猜你喜欢
  • 2011-10-02
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
相关资源
最近更新 更多