AssemblyLoadContext Error - .NET 8.0

The issue isn't with the availability of the .dll file—I'm certain it exists in the directory. If you have any questions, feel free to ask.

DLL extracted to: C:\Users\alakbalak123\AppData\Local\Temp\14fbfb7e-804b-4611-b386-e0c3d506c765\d9f6a1cd-4106-4385-9742-e3c1b90375b1.dll
Unhandled exception. System.IO.FileNotFoundException:
File name: 'C:\Users\alakbalak123\AppData\Local\Temp\14fbfb7e-804b-4611-b386-e0c3d506c765\d9f6a1cd-4106-4385-9742-e3c1b90375b1.dll'
   at System.Runtime.Loader.AssemblyLoadContext.LoadFromPath(IntPtr ptrNativeAssemblyLoadContext, String ilPath, String niPath, ObjectHandleOnStack retAssembly)
   at System.Runtime.Loader.AssemblyLoadContext.LoadFromAssemblyPath(String assemblyPath)
   at Z.ScreenRecorderLibrary.AssemblyResolver..ctor(String path)
   at Z.ScreenRecorderLibrary..ctor()
   at Z.ExternalLibs.LoadExternalLibraries()
   at Program.SelfExtractNativeDlls()
   at Program.Main(String[] args)

                AssemblyLoadContext.Default.LoadFromAssemblyPath(path);
gives me this error on certain machines could it be dependency related
Was this page helpful?