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

net sdk 6.0.6 hostfxr.dll is not found #28344

Closed
roofiq opened this issue Jun 29, 2022 · 2 comments
Closed

net sdk 6.0.6 hostfxr.dll is not found #28344

roofiq opened this issue Jun 29, 2022 · 2 comments
Labels
closed-no-further-action The issue is closed and no further action is planned. customer-reported

Comments

@roofiq
Copy link

roofiq commented Jun 29, 2022

Hello,

I have upgraded application from net 5 to net 6 and this error started to appear when executing it:

Failed to load the dll from [C:\hostedtoolcache\windows\dotnet\host\fxr\6.0.6\hostfxr.dll], HRESULT: 0x800700C1
The library hostfxr.dll was found, but loading it from C:\hostedtoolcache\windows\dotnet\host\fxr\6.0.6\hostfxr.dll failed
  - Installing .NET prerequisites might help resolve this problem.
     https://go.microsoft.com/fwlink/?linkid=798306

Here is a detailed COREHOST_TRACE:

Redirecting errors to custom writer.
The managed DLL bound to this executable is: 'DbMigrations.dll'
Using environment variable DOTNET_ROOT=[C:\agent_pool\agent1\_work\_tool\dotnet] as runtime location.
Reading fx resolver directory=[C:\agent_pool\agent1\_work\_tool\dotnet\host\fxr]
Considering fxr version=[3.1.21]...
Considering fxr version=[3.1.22]...
Considering fxr version=[3.1.25]...
Considering fxr version=[5.0.12]...
Considering fxr version=[5.0.13]...
Considering fxr version=[5.0.17]...
Considering fxr version=[6.0.4]...
Considering fxr version=[6.0.6]...
Detected latest fxr version=[C:\agent_pool\agent1\_work\_tool\dotnet\host\fxr\6.0.6]...
Resolved fxr [C:\agent_pool\agent1\_work\_tool\dotnet\host\fxr\6.0.6\hostfxr.dll]...
Failed to load the dll from [C:\agent_pool\agent1\_work\_tool\dotnet\host\fxr\6.0.6\hostfxr.dll], HRESULT: 0x800700C1
The library hostfxr.dll was found, but loading it from C:\agent_pool\agent1\_work\_tool\dotnet\host\fxr\6.0.6\hostfxr.dll failed
  - Installing .NET prerequisites might help resolve this problem.
     https://go.microsoft.com/fwlink/?linkid=798306

I was trying to run it on hosted agents and on self hosted (VM) - same.
I am using latest net sdk version 6.0.301, in this topic #27787 it was said, that it will resolve the issue but seems like nothing has changed.

Any ideas how to approach it?
Thanks

@ajcvickers
Copy link
Member

This issue is lacking enough information for us to be able to fully understand what is happening. Please attach a small, runnable project or post a small, runnable code listing that reproduces what you are seeing so that we can investigate.

@roofiq
Copy link
Author

roofiq commented Jul 4, 2022

Hello, just sharing with a resolution I have found.
I have reviewed COREHOST_TRACE when running it locally and it was using x86 runtimes, so I have registered self hosted agent with x86 architecture, specified demands and it successfully run :)

@roofiq roofiq closed this as completed Jul 4, 2022
@roji roji closed this as not planned Won't fix, can't repro, duplicate, stale Jul 4, 2022
@ajcvickers ajcvickers added the closed-no-further-action The issue is closed and no further action is planned. label Oct 4, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
closed-no-further-action The issue is closed and no further action is planned. customer-reported
Projects
None yet
Development

No branches or pull requests

3 participants