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

Post a reply

Smilies
:) :( :oops: :chelo: :roll: :wink: :muza: :sorry: :angel: :read: *x) :clever:
View more smilies

BBCode is ON
[img] is ON
[flash] is OFF
[url] is ON
Smilies are ON

Topic review
   

Expand view Topic review: LoadFrom laden nicht aus dem Modul: C: \ Programme \ dotnet \ Shared \ Microsoft.aspnetcore.app

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?



Top