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

Check for Microsoft.AspNetCore.App failing if dotnet core is not installed | NetCoreCheck #281

Open
hc-codes opened this issue Jun 26, 2023 · 6 comments
Assignees

Comments

@hc-codes
Copy link

Check for Microsoft.AspNetCore.App failing if dotnet core is not installed | NetCoreCheck

Description

  • When trying to check if aspdotnet is installed using netcorecheck.exe it was failing if dotnet core is not installed.

Please provide a solution to solve this issue.

@NikolaMilosavljevic
Copy link
Member

[Triage] Please investigate.

@hc-codes
Copy link
Author

Hi @MSLukeWest, could you give an update on this issue?

@MSLukeWest
Copy link
Contributor

@hc-codes A few questions:

  1. To be clear, are you saying you have the ASP.NET runtime installed and netcorecheck.exe is always failing? Note that if you have no .NET runtime installed (Core, Desktop, or ASP.NET) a failure is expected.
  2. What error code is returned when the failure happens (in cmd prompt "echo %errorlevel%")? And what's in the log (found under %temp%, name starts with "dd_NetCoreCheck_")?
  3. NetCoreCheck writes a temp file next to its current location, so make sure you either have admin privileges or it's running from a non-protected location.
  4. Make sure you're running the correct platform version of NetCoreCheck. For example, if you run the x86 version on a machine that only has x64 runtimes installed it will always fail.

@hc-codes
Copy link
Author

hc-codes commented Feb 22, 2024

Hi @MSLukeWest, thanks for your time. I am adding all the necessary information you have asked. Please let me know if I can help with anything more.
Answers:

  1. Yes ASP.NET is installed and check is failing.
  2. Error Code: 12289
    [02/22/24,01:23:08] ============= NetCoreCheck Start ===============
    [02/22/24,01:23:08] get_hostfxr_path failed: '-2147450749'
    [02/22/24,01:23:08] ============= NetCoreCheck End ===============
  3. Yes both are satisfied
  4. Platforms are also correct

Command used: NETCorecheck.exe --runtimename Microsoft.AspNetCore.App --runtimeversion 6.0.4

@MSLukeWest
Copy link
Contributor

@hc-codes Thanks for providing those details, I was able to reproduce the issue. It seems that NETCoreCheck requires either the .NET Core runtime or the .NET Windows Desktop runtime. We will leave this issue open for now while a fix is considered.

@hc-codes
Copy link
Author

@MSLukeWest Yes its correct if dotnet core is not installed netcorechecker is failing to execute and it seems like its a prerequisite for netcorechecker which shouldn't be the case

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants