clickonce - 安装适用于 Windows 的 Github 时出现 System.Runtime.InteropServices.COMException

标签 clickonce github-for-windows

我尝试安装适用于 Windows 的 GitHub,但收到以下错误消息:

PLATFORM VERSION INFO
    Windows             : 6.0.6002.131072 (Win32NT)
    Common Language Runtime     : 4.0.30319.18052
    System.Deployment.dll       : 4.0.30319.17929 built by: FX45RTMREL
    clr.dll             : 4.0.30319.18052 built by: FX45RTMGDR
    dfdll.dll           : 4.0.30319.17929 built by: FX45RTMREL
    dfshim.dll          : 4.0.41209.0 (Main.041209-0000)

SOURCES
    Deployment url          : http://github-windows.s3.amazonaws.com/GitHub.application

ERROR SUMMARY
    Below is a summary of the errors, details of these errors are listed later in the log.
    * Activation of http://github-windows.s3.amazonaws.com/GitHub.application resulted in exception. Following failure messages were detected:
        + The referenced assembly is not installed on your system. (Exception from HRESULT: 0x800736B3)

COMPONENT STORE TRANSACTION FAILURE SUMMARY
    No transaction error was detected.

WARNINGS
    There were no warnings during this operation.

OPERATION PROGRESS STATUS
    * [04/12/2013 08:29:27] : Activation of http://github-windows.s3.amazonaws.com/GitHub.application has started.

ERROR DETAILS
    Following errors were detected during this operation.
    * [04/12/2013 08:29:27] System.Runtime.InteropServices.COMException
        - The referenced assembly is not installed on your system. (Exception from HRESULT: 0x800736B3)
        - Source: System.Deployment
        - Stack trace:
            at System.Deployment.Internal.Isolation.IStore.GetAssemblyInformation(UInt32 Flags, IDefinitionIdentity DefinitionIdentity, Guid& riid)
            at System.Deployment.Internal.Isolation.Store.GetAssemblyManifest(UInt32 Flags, IDefinitionIdentity DefinitionIdentity)
            at System.Deployment.Application.ComponentStore.GetAssemblyManifest(DefinitionIdentity asmId)
            at System.Deployment.Application.ComponentStore.GetSubscriptionStateInternal(DefinitionIdentity subId)
            at System.Deployment.Application.SubscriptionStore.GetSubscriptionStateInternal(SubscriptionState subState)
            at System.Deployment.Application.SubscriptionStore.CheckAndReferenceApplication(SubscriptionState subState, DefinitionAppId appId, Int64 transactionId)
            at System.Deployment.Application.DownloadManager.DownloadDeploymentManifestDirectBypass(SubscriptionStore subStore, Uri& sourceUri, TempFile& tempFile, SubscriptionState& subState, IDownloadNotification notification, DownloadOptions options, ServerInformation& serverInformation)
            at System.Deployment.Application.DownloadManager.DownloadDeploymentManifestBypass(SubscriptionStore subStore, Uri& sourceUri, TempFile& tempFile, SubscriptionState& subState, IDownloadNotification notification, DownloadOptions options)
            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.

有人知道这是什么原因吗?

最佳答案

这里有两种解决方案供您尝试,第二个手动删除对我有用。 (还要确保您以管理员权限运行安装程序。

这可能是 ClickOnce 应用程序缓存的问题。您可以尝试以下操作来清除缓存

  1. Hold down the Windows key and type R.
  2. Type in rundll32 %SystemRoot%\system32\dfshim.dll CleanOnlineAppCache in the run dialog and hit Enter.

Then try installing the application.

If that doesn't work, there's a more manual approach to ensuring the cache is cleared - you can delete the ClickOnce Application folder.

  • On Windows Vista or higher, this will be the %LocalAppData%\Apps\2.0 directory.
  • On Windows XP this will be the %USERPROFILE%\Local Settings\Apps\2.0 directory.

请注意,如果您使用的是非英语版本的 Windows,则此路径可能采用不同的语言。

关于clickonce - 安装适用于 Windows 的 Github 时出现 System.Runtime.InteropServices.COMException,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/20370490/

相关文章:

git - go get 不行,我有 git

deployment - ClickOnce:安装程序中显示的未知发布者,当应用程序已经签名时

git - 适用于 Windows 的 PhpStorm 和 Github

windows - 如何在 Windows 上可视化 GitHub 分支历史记录?

clickonce - 通过ClickOnce安装设置注册表项

github桌面 merge 提交 stash 评论

windows - 如何创建现有的 Git 存储库

clickonce - 如何在 ClickOnce 安装中仅更新一个 DLL?

c# - 使用 clickonce 在 C# 解决方案中部署外部文件

.net - 是否可以重命名已部署的ClickOnce应用程序?