LoadFrom laden nicht aus dem Modul: C: \ Programme \ dotnet \ Shared \ Microsoft.aspnetcore.appC#

Ein Treffpunkt für C#-Programmierer
Anonymous
 LoadFrom laden nicht aus dem Modul: C: \ Programme \ dotnet \ Shared \ Microsoft.aspnetcore.app

Post by Anonymous »

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?


Quick Reply

Change Text Case: 
   
  • Similar Topics
    Replies
    Views
    Last post