在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 

我很困惑,所有这一切都是新的,所以我很感激任何帮助,找出安装这个。 谢谢!

Solutions Collecting From Web of "在Windows上安装Github-“价值不在预期的范围内”"

你可以试试这个问题的一些解决方案:

  • 确保应用程序没有安装或卸载(控制面板)
  • 运行“ rundll32 %windir%\system32\dfshim.dll CleanOnlineAppCache

  • 如果这还不够,重新启动后再试一次

  • 删除注册表中的任何引用(但这还不够),然后清除%user%\AppData\Local\Apps
  • 再次尝试作为一个不同的用户帐户

OP vmazur 在评论中证实:

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

bkribbs 在评论中警告:

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

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

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

打开github

我最近面临这个问题,这里是我如何解决这个问题。

记录的错误表明,对于不同的DLL有一些依赖关系。

  • 完全卸载应用程序,如果可能的话,检查AppData / 2.0下的任何文件夹 – 如果存在,确保只删除应用程序文件夹(如接受的答案中所述)后删除它。
  • 转到项目属性 – >发布 – >应用程序文件。

在这里输入图像说明

  • 重置全部

在这里输入图像说明

重新发布应用程序,并重新安装,它的工作。