Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
437 views
in Technique[技术] by (71.8m points)

c# - How to fix the error "Failed to load hostfxr.dll" but is found (0x80070057)?

I've created a .net core 3.1 project, and published it as self contained. When I try run this on a box with .net framework 4.5 on, I get this error

Failed to load the dll from [C:XXXXhostfxr.dll], HRE SULT: 0x80070057 The library hostfxr.dll was found, but loading it from C:xxxxxhostfxr.dll failed - Installing .NET Core prerequisites might help resolve this problem. https://go.microsoft.com/fwlink/?linkid=798306

I was under the impression that self contained would resolve any of these dependencies? Is there any way to resolve this issue, without having to install a new .net Framework/Core ?

question from:https://stackoverflow.com/questions/65902948/how-to-fix-the-error-failed-to-load-hostfxr-dll-but-is-found-0x80070057

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)
Waitting for answers

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...