Xeinٴٴٴٴٴٴٴ
Xeinٴٴٴٴٴٴٴ
CC#
Created by Xeinٴٴٴٴٴٴٴ on 3/29/2024 in #help
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
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
2 replies
CC#
Created by Xeinٴٴٴٴٴٴٴ on 3/25/2024 in #help
Parent & Child menitems - WPF .NET 8.0
I'm struggling with WPF MenuItems. Specifically, I need to open a window when the "File" parent MenuItem is clicked, but not when any of its child MenuItems are clicked. Despite trying several methods, including using tags, combining tags with click events, and relying solely on click events, nothing has worked.
<ContextMenu>
<MenuItem Header="File" Click="FileManager_Click" >
<MenuItem Header="New" >
<MenuItem Header="Open" />
<MenuItem Header="Save" />
</MenuItem>
</MenuItem>
</ContextMenu>
<ContextMenu>
<MenuItem Header="File" Click="FileManager_Click" >
<MenuItem Header="New" >
<MenuItem Header="Open" />
<MenuItem Header="Save" />
</MenuItem>
</MenuItem>
</ContextMenu>
4 replies
CC#
Created by Xeinٴٴٴٴٴٴٴ on 11/29/2023 in #help
Don't understand, want to understand. (Server & Client TCP connection)
Yeah I want to understand whats wrong with the code but I don't, so if someone wants to read this and may be able to fix it. It's supposed be a server that creates the exec on the disk with the IP and port inputted. Here is the error for .NET 7.0: Unhandled Exception: System.IO.FileNotFoundException: Could not load file or assembly 'System.Private.Corelib, Version=7 .0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e' or one of its dependencies. The system cannot find the file specified. Ask anything, tag me any time.
15 replies