by Anonymous » 18 Aug 2025, 21:45
Ich versuche, DLLs aus meiner App zu laden, untersucht zu werden. Ich verwende LoadFrom , um sie so zu laden
Code: Select all
Assembly.LoadFrom("C:/Dev/MyApp/My.Dll");
< /code>
und es schlägt mit < /p>
fehlSystem.Reflection.ReflectionTypeLoadException: Unable to load one or more of the requested types.
Could not load file or assembly 'Microsoft.AspNetCore.Mvc.Abstractions, Version=8.0.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60'. The system cannot find the file specified.
Could not load file or assembly 'Microsoft.AspNetCore.Mvc.Core, Version=8.0.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60'. The system cannot find the file specified.
at System.Reflection.RuntimeModule.GetTypes(RuntimeModule module)
at System.Reflection.RuntimeModule.GetTypes()
...
< /code>
Wenn ich Module beim Ausführen der App aufliste, sehe ich < /p>
C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App\8.0.18\Microsoft.AspNetCore.Mvc.Abstractions.dll
< /code>
Warum wird es nicht in meine Seite geladen? Wie kann es funktionieren?
Ich versuche, DLLs aus meiner App zu laden, untersucht zu werden. Ich verwende LoadFrom , um sie so zu laden
[code]Assembly.LoadFrom("C:/Dev/MyApp/My.Dll");
< /code>
und es schlägt mit < /p>
fehlSystem.Reflection.ReflectionTypeLoadException: Unable to load one or more of the requested types.
Could not load file or assembly 'Microsoft.AspNetCore.Mvc.Abstractions, Version=8.0.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60'. The system cannot find the file specified.
Could not load file or assembly 'Microsoft.AspNetCore.Mvc.Core, Version=8.0.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60'. The system cannot find the file specified.
at System.Reflection.RuntimeModule.GetTypes(RuntimeModule module)
at System.Reflection.RuntimeModule.GetTypes()
...
< /code>
Wenn ich Module beim Ausführen der App aufliste, sehe ich < /p>
C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App\8.0.18\Microsoft.AspNetCore.Mvc.Abstractions.dll
< /code>
Warum wird es nicht in meine Seite geladen? Wie kann es funktionieren?
[/code]