Forum Discussion

🚨 This forum is archived and read-only. To submit a forum post, please visit our new Developer Forum. 🚨
jittdev's avatar
jittdev
Honored Guest
2 years ago

Meta Quest/Oculus Unreal from source .NET hostfxr.dll problem Windows 10 Pro

Hello everyone. I can't seem to get past this .Net problem when running setup.bat from the
Meta/Oculus fork (github)(most recent 5.3):

Failed to load the dll from [E:\MetaQuestDEV\UnrealEngine\Engine\Binaries\DotNET\GitDependencies\win-x64\hostfxr.dll], HRESULT: 0x80070005
The library hostfxr.dll was found, but loading it from E:\MetaQuestDEV\UnrealEngine\Engine\Binaries\DotNET\GitDependencies\win-x64\hostfxr.dll failed
- Installing .NET prerequisites might help resolve this problem.
https://go.microsoft.com/fwlink/?linkid=798306


I've reinstalled all the .Net 8 dependencies, have 4.8 framework. The hostfxr.dll file IS in the directory it fails to load it from. Just have no clue at this point. Just beginning meta programming so any feedback would be greatly appreciated. Thanks in advance.

5 Replies

Replies have been turned off for this discussion
  • I have the same issue at tag oculus-5.3.0-release-1.92.0-v60.0

    Official Unreal Engine compiles without issues.

    DotNet info:

    > dotnet.exe --info
    .NET SDK:
     Version:           8.0.101
     Commit:            6eceda187b
     Workload version:  8.0.100-manifests.825c015e
    
    Runtime Environment:
     OS Name:     Windows
     OS Version:  10.0.22621
     OS Platform: Windows
     RID:         win-x64
     Base Path:   C:\Program Files\dotnet\sdk\8.0.101\
    
    .NET workloads installed:
     Workload version: 8.0.100-manifests.825c015e
    There are no installed workloads to display.
    
    Host:
      Version:      8.0.1
      Architecture: x64
      Commit:       bf5e279d92
    
    .NET SDKs installed:
      8.0.101 [C:\Program Files\dotnet\sdk]
    
    .NET runtimes installed:
      Microsoft.AspNetCore.App 6.0.26 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
      Microsoft.AspNetCore.App 8.0.1 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
      Microsoft.NETCore.App 6.0.26 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
      Microsoft.NETCore.App 8.0.1 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
      Microsoft.WindowsDesktop.App 6.0.26 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App]
      Microsoft.WindowsDesktop.App 8.0.1 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App]
    
    Other architectures found:
      x86   [C:\Program Files (x86)\dotnet]
        registered at [HKLM\SOFTWARE\dotnet\Setup\InstalledVersions\x86\InstallLocation]
    
    Environment variables:
      Not set
    
    global.json file:
      Not found
    
    Learn more:
      https://aka.ms/dotnet/info
    
    Download .NET:
      https://aka.ms/dotnet/download

     

  • Hello jittdev,

    Mine was a permission issue. The dll's were missing the user executable permissions. Now it runs fine.

    • jcworsley's avatar
      jcworsley
      Explorer

      Thank you, 100% this. For folks who use command line tools to unzip this might be more prevalent, I ran into this after using 7z in a cygwin Terminal. chmod a+x Engine/Binaries/DotNET/GitDependencies/win-x64/*.dll resolved it.