-
Notifications
You must be signed in to change notification settings - Fork 44
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Openmod Entity Framework could Could not set up parent class #813
Comments
Not sure but I think it's because you setup to use |
I've tried resetting the server, reloaded the plugin with the right version |
Could not load signature of Microsoft.EntityFrameworkCore.Infrastructure.RelationalOptionsExtension:ApplyServices due to: Could not load file or assembly 'Microsoft.Extensions.DependencyInjection.Abstractions, Version=3.1.19.0, Culture=neutral, PublicKeyToken=adb9793829ddae60' or one of its dependencies. |
What about |
It seems to be fixed after some time that I havent touched it, I've commented out this line |
I was following up on the guide here https://openmod.github.io/openmod-docs/devdoc/concepts/databases.html, i've tried
deploying the plugin and loading the plugin, yet i've gotten a runtime exception that 'Could not resolve the signature of a virtual method assembly '. Can someone help?
[15:11:55 ERR][OpenMod.Core.Eventing.EventBus] Exception occured during event UnturnedPlayerConnected
System.TypeLoadException: Could not set up parent class, due to: Could not resolve the signature of a virtual method assembly:data-00000223E9351C30 type:RelationalOptionsExtension member:(null)
at OpenMod.EntityFrameworkCore.MySql.Configurator.MySqlDbContextConfigurator.Configure[TDbContext] (OpenMod.EntityFrameworkCore.OpenModDbContext
1[TSelf] dbContext, Microsoft.EntityFrameworkCore.DbContextOptionsBuilder optionsBuilder) [0x0004c] in /_/framework/OpenMod.EntityFrameworkCore.MySql/Configurator/MySqlDbContextConfigurator.cs:31 at OpenMod.EntityFrameworkCore.Configurator.DbContextConfiguratorCompilation+<>c__DisplayClass2_0
1[TDbContext].b__0 (OpenMod.EntityFrameworkCore.Configurator.IDbContextConfigurator x) [0x00000] in //framework/OpenMod.EntityFrameworkCore/Configurator/DbContextConfiguratorCompilation.cs:19at MoreLinq.MoreEnumerable.ForEach[T] (System.Collections.Generic.IEnumerable
1[T] source, System.Action
1[T] action) [0x0002c] in //MoreLinq/ForEach.cs:38at OpenMod.EntityFrameworkCore.Configurator.DbContextConfiguratorCompilation.Configure[TDbContext] (OpenMod.EntityFrameworkCore.OpenModDbContext
1[TSelf] dbContext, Microsoft.EntityFrameworkCore.DbContextOptionsBuilder optionsBuilder) [0x00014] in /_/framework/OpenMod.EntityFrameworkCore/Configurator/DbContextConfiguratorCompilation.cs:19 at OpenMod.EntityFrameworkCore.OpenModDbContext
1[TSelf].OnConfiguring (Microsoft.EntityFrameworkCore.DbContextOptionsBuilder optionsBuilder) [0x00007] in //framework/OpenMod.EntityFrameworkCore/OpenModDbContext.cs:29at Microsoft.EntityFrameworkCore.DbContext.get_InternalServiceProvider () [0x00041] in <25b3d70e4fdd45f7a2d848578491534a>:0
at Microsoft.EntityFrameworkCore.DbContext.get_DbContextDependencies () [0x00010] in <25b3d70e4fdd45f7a2d848578491534a>:0
at Microsoft.EntityFrameworkCore.DbContext.Set[TEntity] () [0x00000] in <25b3d70e4fdd45f7a2d848578491534a>:0
at ScoreBoardPlugin.Db.Contexts.PlayerConnectionContext.get_UserConnectSet () [0x00000] in <09382a155d4347e2b97b6fad0787b06b>:0
at ScoreBoardPlugin.Events.UserLoginListener.HandleEventAsync (System.Object sender, OpenMod.Unturned.Players.Connections.Events.UnturnedPlayerConnectedEvent event) [0x0007c] in <09382a155d4347e2b97b6fad0787b06b>:0
at OpenMod.Core.Eventing.EventBus.EmitAsync (OpenMod.API.IOpenModComponent component, System.Object sender, OpenMod.API.Eventing.IEvent event, OpenMod.API.Eventing.EventExecutedCallback callback) [0x0035a] in //framework/OpenMod.Core/Eventing/EventBus.cs:377
This is what my csproj looks like, and my target framework is netstandard2.1, i tried using netstandard 2.0, and net461
The text was updated successfully, but these errors were encountered: