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?
Ich habe einen Speicherblock mit einer Bytegröße von 10 erstellt und wollte eine Zufallszahl erstellen und in den Speicherblock einfügen, aber es werden mir immer nur Fehlermeldungen angezeigt,...
Ich versuche, ein ASP.NET -Kern -Web -API -Projekt in meinem Linux -System (Ubuntu 22.04) zu erstellen und mit dem Befehl dotnet restore oder dotnet New ein Problem zu stellen: Der Prozess bleibt...
Ich habe ein ASP.NET Core 8-Web-API-Projekt erstellt.
Aber wenn ich das Projekt ausführe, erhalte ich diese Fehlermeldung:
System.MissingMethodException : 'Methode nicht gefunden: 'Boolean...