deployment-tools icon indicating copy to clipboard operation
deployment-tools copied to clipboard

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

Open hc-codes opened this issue 1 year ago • 6 comments

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.

hc-codes avatar Jun 26 '23 09:06 hc-codes

[Triage] Please investigate.

NikolaMilosavljevic avatar Jan 16 '24 22:01 NikolaMilosavljevic

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

hc-codes avatar Feb 20 '24 18:02 hc-codes

@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.

MSLukeWest avatar Feb 21 '24 21:02 MSLukeWest

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

hc-codes avatar Feb 22 '24 06:02 hc-codes

@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.

MSLukeWest avatar Feb 23 '24 00:02 MSLukeWest

@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

hc-codes avatar Feb 27 '24 01:02 hc-codes