Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GCM Core failing on push - needs .NET 4.7.2 on Windows 10 #540

Closed
4 of 16 tasks
Hussainbabatunde opened this issue Nov 18, 2021 · 15 comments
Closed
4 of 16 tasks

GCM Core failing on push - needs .NET 4.7.2 on Windows 10 #540

Hussainbabatunde opened this issue Nov 18, 2021 · 15 comments
Labels
auth-issue An issue authenticating to a host

Comments

@Hussainbabatunde
Copy link

Hussainbabatunde commented Nov 18, 2021

Which version of GCM Core are you using?

From a terminal, run git credential-manager-core --version and paste the output.

Which Git host provider are you trying to connect to?

  • Azure DevOps
  • Azure DevOps Server (TFS/on-prem)
  • GitHub
  • GitHub Enterprise
  • Bitbucket
  • Other - please describe

Can you access the remote repository directly in the browser using the remote URL?

From a terminal, run git remote -v to see your remote URL.

  • Yes
  • No, I get a permission error
  • No, for a different reason - please describe

[Azure DevOps only] What format is your remote URL?

[Azure DevOps only] If the account picker shows more than one identity as you authenticate, check that you selected the same one that has access on the web.

  • Not applicable
  • I only see one identity
  • I checked each identity and none worked

Expected behavior

I am authenticated and my Git operation completes successfully.

Actual behavior

i tried pushing a project on github but i am getting a git-credential-manager-core.exe error. it is saying i need to install .NET framework, version=v4.7.2. But my system doesnt support that version. i have installed .NET framework runtime version 4.6.2 but the error still persists. I am using windows 10

Logs

Set the environment variables GCM_TRACE=1 and GIT_TRACE=1 and re-run your Git command. Review and redact any private information and attach the log.

@Hussainbabatunde Hussainbabatunde added the auth-issue An issue authenticating to a host label Nov 18, 2021
@dscho
Copy link
Collaborator

dscho commented Nov 18, 2021

Older Windows versions are not supported by newer .NET versions. What Windows version are you on?

@sunil-dhakad
Copy link

i facing exact same issue, not found solution yet

@dscho
Copy link
Collaborator

dscho commented Jan 21, 2022

i facing exact same issue, not found solution yet

Why won't anybody here answer the question which Windows version they use?

@mjcheetham
Copy link
Collaborator

Closing due to lack of response and Windows version information.

@abdullahmsayed
Copy link

i facing exact same issue, not found solution yet

Why won't anybody here answer the question which Windows version they use?

I'm using Windows 10 and facing the same problem

@dscho
Copy link
Collaborator

dscho commented Mar 7, 2022

I'm using Windows 10 and facing the same problem

Not quite... Your Windows version does support that .NET version.

@navetacandra
Copy link

I'm using Windows 10 and facing the same problem

Not quite... Your Windows version does support that .NET version.

In installing, it said "The .NET Framework is not supported on this operating system."

@ldennington ldennington changed the title i tried pushing a project on github but i am getting a git-credential-manager-core.exe error. it is saying i need to install .NET framework, version=v4.7.2. But my system doesnt support that version. i have installed .NET framework runtime version 4.6.2 but the error still persists. I am using windows 10 GCM Core failing on push - needs .NET 4.7.2 on Windows 10 Apr 12, 2022
@ldennington
Copy link
Contributor

@navetacandra, @SyyedAbdullah, @sunil-dhakad, @Hussainbabatunde - have you tried a manual install of .NET Framework 4.7.2? Additionally, have you ensured you have installed the latest available Windows 10 updates?

@ldennington ldennington reopened this Apr 12, 2022
@CSharperMantle
Copy link

CSharperMantle commented May 5, 2022

Nearly the same situation; installation failed due to lack of .NET Framework 4.7.2.

I have a working .NET 5 SDK & Runtime installed since I do some devs on .NET 5, so I guess that's not the issue. The problem is, why does GCM say it is built on .NET but it still depends on .NET Framework?

Upgrading Windows is unlikely an option for me because of the hardware constraints.

broken installation

System

Windows version: Windows 10 1511, OS Version 10586.1176

Installed .NET Runtimes:

  • .NET Framework 4.6.2 (Full SDK)
  • .NET SDK 5.0.301
  • .NET Core SDK 2.1.523
  • .NET Desktop Runtime - 6.0.4

@ldennington
Copy link
Contributor

@CSharperMantle - have you attempted a manual install of .NET Framework 4.7.2 as I called out in my previous comment? See discussion on this issue for reasons we still target .NET Framework.

@CSharperMantle
Copy link

CSharperMantle commented May 12, 2022

@ldennington, sad to say that does not work. In fact, the installation of .NET Framework 4.7.2 failed due to an 'unsupported Windows version'. I guess this is because those Microsoft guys have dropped their support for my ancient Windows 10 version, which is a hard restriction. Is there a workaround for this?

@ldennington
Copy link
Contributor

@CSharperMantle - would you mind providing some details on your blockers for upgrading Windows?

@ldennington
Copy link
Contributor

You do have a few options under the upgrade constraints:

  • Use an older version of GCM that ran on .NET Framework 4.6.1 (pre 2.0.374-beta) [Note this scenario is unsupported]
  • Don’t use GCM at all. Instead use wincred (details here) as the credential helper and manual PATs.
  • Take the source code, update the build to target a lower version of .NET Framework (fixing any problems), build and install it [Note this scenario is unsupported]

I would suggest option 2, given the other two are unsupported and thus carry a fair amount of risk.

@CSharperMantle
Copy link

CSharperMantle commented May 12, 2022

Thanks, @ldennington! 1. For the Windows question: whether I try to use a new installation DVD or 'Windows 10 Upgrade Assistant' the installation just stuck, those circling white dots frozen. 2. For your advice: I would give your Method 2 a try and post the results here as soon as possible.

Many thanks again for your quick and helpful suggestions.

@ldennington
Copy link
Contributor

Closing in light of the workarounds listed above for those running older versions of Windows. GCM requires .NET Framework 4.7.2, and the best solution is to upgrade your OS if possible.

@mjcheetham mjcheetham closed this as not planned Won't fix, can't repro, duplicate, stale Jun 1, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
auth-issue An issue authenticating to a host
Projects
None yet
Development

No branches or pull requests

8 participants