deployment-tools
deployment-tools copied to clipboard
Check for Microsoft.AspNetCore.App failing if dotnet core is not installed | NetCoreCheck
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.
[Triage] Please investigate.
Hi @MSLukeWest, could you give an update on this issue?
@hc-codes A few questions:
- 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.
- 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_")?
- 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.
- 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.
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:
- Yes ASP.NET is installed and check is failing.
- 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 ===============
- Yes both are satisfied
- Platforms are also correct
Command used: NETCorecheck.exe --runtimename Microsoft.AspNetCore.App --runtimeversion 6.0.4
@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 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