Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Installing Github on Windows- "Value does not fall within the expected range"

Tags:

github

windows

I'm trying to install Github on my Windows 7 laptop, and I get an error every time I run the GitHubSetup.exe, saying "Application cannot be started. Contact the application vendor.". When I hit details, this is the text that shows:

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

I'm pretty confused, and new to all this, so I'd appreciate any help to figure out installing this. Thanks!

like image 440
vmazur Avatar asked Oct 18 '14 00:10

vmazur


People also ask

Why can't I install GitHub for Windows?

One of the major caveats of this workaround is that on the problem system, GitHub for Windows will report "This isn't a networked deployed app." and therefor not automatically update. After contacting support, they emailed me and helped me work through the problem preventing GitHub for windows from installing.

How do I know if Git is installed or not?

If you're on a Windows machine, open the windows command prompt or "Git Bash". Once you've opened your terminal application, type git version. The output will either tell you which version of Git is installed, or it will alert you that git is an unknown command. If it's an unknown command, read further and find out how to install Git.

Why am I getting “value does not fall within the expected range” error?

You may come across to this error message while trying to set a custom account as application pool identity: “Value does not fall within the expected range.“ This error occurs only if you are specifying a custom account and not using any predefined accounts such as ApplicationPoolIdentity or NetworkService. The exact error message:

How to install Git on Windows 10?

Install Git on Windows. Navigate to the latest Git for Windows installer and download the latest version. Once the installer has started, follow the instructions as provided in the Git Setup wizard screen until the installation is complete. Open the windows command prompt (or Git Bash if you selected not to use the standard Git Windows Command ...


2 Answers

You can try some of the solutions of this question:

  • make sure the app is not installed or uninstall it (Control Panel)
  • run "rundll32 %windir%\system32\dfshim.dll CleanOnlineAppCache"

  • if this isn't enough, try again after a reboot

  • removing any references to in the registry (but that was not enough) and then clearing %user%\AppData\Local\Apps
  • try again as a different user account

The OP vmazur confirms in the comments:

My problem was solved by going to %LocalAppData%\Apps and deleting a folder called "2.0" there.

bkribbs cautions in the comments:

That 2.0 folder contains the data from multiple applications, I assume all the clickonce ones.
It would be worth going into that folder, expanding the names, and only deleting the ones with the app name in the folder name. Otherwise you risk losing other applications as well.

like image 92
VonC Avatar answered Sep 22 '22 13:09

VonC


Had the same problem and fixed it by restoring the application to previous state.

  • Open Control panel
  • Open programs and features
  • Find GitHub and double click it.
  • Select restore application to previous state

Open github

like image 31
Sigurður J Eggertsson Avatar answered Sep 22 '22 13:09

Sigurður J Eggertsson