-
Notifications
You must be signed in to change notification settings - Fork 4.7k
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
can't dotnet run x86 at x64 on net8 #88283
Comments
Tagging subscribers to this area: @vitek-karas, @agocke, @VSadov Issue DetailsDescriptionI use dotnet run -a x86 Reproduction Stepsdotnet run -a x86 in target net 8 preview5 Expected behaviorrun successfully Actual behaviorreturn errors Failed to load the dll from [D:\dotnet-sdk-8.0.100-preview.5.23303.2-win-x64\host\fxr\8.0.0-preview.5.23280.8\hostfxr.dll], HRESULT: 0x800700C1
Regression?No response Known WorkaroundsNo response Configurationnet8 preview5 Other informationNo response
|
It seems that you are trying to run your program with x86 architecture while you only have x64 dotnet runtime installed. |
@NCLnclNCL as @hez2010 pointed out, you'll need the x86 version of .NET installed. Can you install the x86 version of .NET and try again? We do have an open issue around trying to detect the architecture mismatch case for better error messaging: |
This issue has been marked |
In this case it seems to be exaggerated by the fact that the SDK is running from a private install, so there's very likely Note that if you were using globally installed SDK/Runtime there's no need to set any env. variable as the location of the runtime for each architecture is written in registry and the app will find it from there. That's probably why it works just fine for .NET 6/7 as you're likely using the global install in that case. |
Closed as dup of #3745 |
Description
I use dotnet run -a x86
however it returns error, if i use dotnet build -a x86 it can build successfully
if i target to net7 or net6, it tool cannot run with same errors
Reproduction Steps
dotnet run -a x86 and target net 8 preview5
Expected behavior
run successfully
Actual behavior
return errors Failed to load the dll from [D:\dotnet-sdk-8.0.100-preview.5.23303.2-win-x64\host\fxr\8.0.0-preview.5.23280.8\hostfxr.dll], HRESULT: 0x800700C1
The library hostfxr.dll was found, but loading it from D:\dotnet-sdk-8.0.100-preview.5.23303.2-win-x64\host\fxr\8.0.0-preview.5.23280.8\hostfxr.dll failed
https://go.microsoft.com/fwlink/?linkid=798306
Regression?
No response
Known Workarounds
No response
Configuration
net8 preview5
window 10 2009
x64
Other information
No response
The text was updated successfully, but these errors were encountered: