在Windows上安装Github-“价值不在预期的范围内”

时间:2014-10-18 00:47:42

标签: windows github

我正在尝试在我的Windows 7笔记本电脑上安装Github,每次运行GitHubSetup.exe时都会出错,说“无法启动应用程序。请联系应用程序供应商。”。当我点击详细信息时,这是显示的文字:

PLATFORM VERSION INFO
Windows             : 6.1.7601.65536 (Win32NT)
Common Language Runtime     : 4.0.30319.18444
System.Deployment.dll       : 4.0.30319.34244 built by: FX452RTMGDR
clr.dll             : 4.0.30319.18444 built by: FX451RTMGDR
dfdll.dll           : 4.0.30319.34244 built by: FX452RTMGDR
dfshim.dll          : 4.0.41209.0 (Main.041209-0000)

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

IDENTITIES
Deployment Identity     : GitHub.application, Version=2.4.1.2, Culture=neutral, PublicKeyToken=317444273a93ac29, processorArchitecture=x86

APPLICATION SUMMARY
* Installable 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://github-windows.s3.amazonaws.com/GitHub.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
There were no warnings during this operation.

OPERATION PROGRESS STATUS
* [10/17/2014 5:20:08 PM] : Activation of http://github-windows.s3.amazonaws.com/GitHub.application has started.
* [10/17/2014 5:20:09 PM] : Processing of deployment manifest has successfully completed.

ERROR DETAILS
Following errors were detected during this operation.
* [10/17/2014 5:20:09 PM] System.ArgumentException
    - Value does not fall within the expected range.
    - Source: System.Deployment
    - Stack trace:
        at System.Deployment.Application.NativeMethods.CorLaunchApplication(UInt32 hostType, String applicationFullName, Int32 manifestPathsCount, String[] manifestPaths, Int32 activationDataCount, String[] activationData, PROCESS_INFORMATION processInformation)
        at System.Deployment.Application.ComponentStore.ActivateApplication(DefinitionAppId appId, String activationParameter, Boolean useActivationParameter)
        at System.Deployment.Application.SubscriptionStore.ActivateApplication(DefinitionAppId appId, String activationParameter, Boolean useActivationParameter)
        at System.Deployment.Application.ApplicationActivator.Activate(DefinitionAppId appId, AssemblyManifest appManifest, String activationParameter, Boolean useActivationParameter)
        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
* Transaction at [10/17/2014 5:20:09 PM]
    + System.Deployment.Internal.Isolation.StoreOperationSetDeploymentMetadata
        - Status: Set
        - HRESULT: 0x0
    + System.Deployment.Internal.Isolation.StoreTransactionOperationType (27)
        - HRESULT: 0x0

我很困惑,对这一切都很陌生,所以我很感激任何帮助来弄清楚这个。谢谢!

3 个答案:

答案 0 :(得分:9)

您可以尝试this question的一些解决方案:

  • 确保未安装该应用或将其卸载(控制面板)
  • 运行" rundll32 %windir%\system32\dfshim.dll CleanOnlineAppCache"

  • 如果这还不够,请在重启后再试一次

  • 删除对注册表中的任何引用(但这还不够),然后清除%user%\AppData\Local\Apps
  • 再次尝试使用其他用户帐户

OP vmazur确认in the comments

  

我的问题通过转到%LocalAppData%\Apps删除名为" 2.0" 的文件夹来解决。

bkribbs提醒in the comments

  

2.0文件夹包含来自多个应用程序的数据,我假设所有clickonce文件。
  值得进入该文件夹,扩展名称,只删除文件夹名称中具有应用程序名称的名称。 否则您可能会失去其他应用程序

答案 1 :(得分:2)

遇到同样的问题并通过将应用程序恢复到以前的状态来修复它。

  • 打开控制面板
  • 打开程序和功能
  • 找到GitHub并双击它。
  • 选择将应用程序恢复到以前的状态

打开github

答案 2 :(得分:1)

我最近遇到了这个问题,这就是我修复它的方法。

记录的错误显示不同的dll存在一些依赖性。

  • 完全卸载应用程序,如果可能,请检查AppData / 2.0下的任何文件夹 - 如果有,请在确保仅删除应用程序文件夹后将其删除[如接受的答案中所述]。
  • 转到项目属性 - >发布 - >应用程序文件。

enter image description here

  • 全部重置

enter image description here

重新发布应用程序并重新安装并运行。