Code Monkey home page Code Monkey logo

Comments (5)

rube200 avatar rube200 commented on June 25, 2024

Not sure but I think it's because you setup to use Microsoft.EntityFrameworkCore.Tools with a diff version than om.
Also is there anything else on logs?

from openmod.

Yannnyan avatar Yannnyan commented on June 25, 2024

I've tried resetting the server, reloaded the plugin with the right version Microsoft.EntityFrameworkCore.Tool for and got this msg
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.

from openmod.

Yannnyan avatar Yannnyan commented on June 25, 2024

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.
[21:11:30 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-000001B6F52D7D50 type:RelationalOptionsExtension member:(null)
at OpenMod.EntityFrameworkCore.MySql.Configurator.MySqlDbContextConfigurator.Configure[TDbContext] (OpenMod.EntityFrameworkCore.OpenModDbContext1[TSelf] dbContext, Microsoft.EntityFrameworkCore.DbContextOptionsBuilder optionsBuilder) [0x0004c] in /_/framework/OpenMod.EntityFrameworkCore.MySql/Configurator/MySqlDbContextConfigurator.cs:31 at OpenMod.EntityFrameworkCore.Configurator.DbContextConfiguratorCompilation+<>c__DisplayClass2_01[TDbContext].b__0 (OpenMod.EntityFrameworkCore.Configurator.IDbContextConfigurator x) [0x00000] in //framework/OpenMod.EntityFrameworkCore/Configurator/DbContextConfiguratorCompilation.cs:19
at MoreLinq.MoreEnumerable.ForEach[T] (System.Collections.Generic.IEnumerable1[T] source, System.Action1[T] action) [0x0002c] in /
/MoreLinq/ForEach.cs:38
at OpenMod.EntityFrameworkCore.Configurator.DbContextConfiguratorCompilation.Configure[TDbContext] (OpenMod.EntityFrameworkCore.OpenModDbContext1[TSelf] dbContext, Microsoft.EntityFrameworkCore.DbContextOptionsBuilder optionsBuilder) [0x00014] in /_/framework/OpenMod.EntityFrameworkCore/Configurator/DbContextConfiguratorCompilation.cs:19 at OpenMod.EntityFrameworkCore.OpenModDbContext1[TSelf].OnConfiguring (Microsoft.EntityFrameworkCore.DbContextOptionsBuilder optionsBuilder) [0x00007] in //framework/OpenMod.EntityFrameworkCore/OpenModDbContext.cs:29
at 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 SBP.Db.Contexts.PlayerConnectionContext.get_UserConnectSet () [0x00000] in :0
at SBP.Events.UserLoginListener.HandleEventAsync (System.Object sender, OpenMod.Unturned.Players.Connections.Events.UnturnedPlayerConnectedEvent event) [0x0007c] in :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

from openmod.

rube200 avatar rube200 commented on June 25, 2024

What about
om remove Microsoft.EntityFrameworkCore.Tool
om install [email protected]

from openmod.

Yannnyan avatar Yannnyan commented on June 25, 2024

It seems to be fixed after some time that I havent touched it, I've commented out this line
<PackageReference Include="Microsoft.EntityFrameworkCore.Tools" Version="3.1.32">
Thanks for helping!

from openmod.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.