Skip to content
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

[BUG] MySql.EntityFrameworkCore 9.0 Compatibility Issue #4954

Open
blair260 opened this issue Dec 26, 2024 · 2 comments
Open

[BUG] MySql.EntityFrameworkCore 9.0 Compatibility Issue #4954

blair260 opened this issue Dec 26, 2024 · 2 comments

Comments

@blair260
Copy link

Oqtane Info

Version - 6.01
Render Mode - Static
Interactivity - Server
Database - MySQL

Describe the bug

I'm attempting to run version 6.01 and when the Installation wizard comes up I get the error below. It appears to be a compatibilty issues with MySql.EntityFrameworkCore 9.0. I'm using the root account when connecting to my mysql server and it's able to create and populate the database in version 5 using .net core 8.

An Error Occurred Creating The Database. This Is Usually Related To Your User Not Having Sufficient Rights To Perform This Operation. Please Note That You Can Also Create The Database Manually Prior To Initiating The Install Wizard. System.TypeLoadException: Method 'get_LockReleaseBehavior' in type 'MySql.EntityFrameworkCore.Migrations.Internal.MySQLHistoryRepository' from assembly 'MySql.EntityFrameworkCore, Version=0.0.0.0, Culture=neutral, PublicKeyToken=c5687fc88969c44d' does not have an implementation. at MySql.EntityFrameworkCore.Extensions.MySQLServiceCollectionExtensions.AddEntityFrameworkMySQL(IServiceCollection services) at MySql.EntityFrameworkCore.Infrastructure.Internal.MySQLOptionsExtension.ApplyServices(IServiceCollection services) at Microsoft.EntityFrameworkCore.Internal.ServiceProviderCache.ApplyServices(IDbContextOptions options, ServiceCollection services) at Microsoft.EntityFrameworkCore.Internal.ServiceProviderCache.g__BuildServiceProvider|4_1(IDbContextOptions _, ValueTuple2 arguments) at Microsoft.EntityFrameworkCore.Internal.ServiceProviderCache.<>c.b__4_0(IDbContextOptions contextOptions, ValueTuple2 tuples) at System.Collections.Concurrent.ConcurrentDictionary2.GetOrAdd[TArg](TKey key, Func3 valueFactory, TArg factoryArgument) at Microsoft.EntityFrameworkCore.Internal.ServiceProviderCache.GetOrAdd(IDbContextOptions options, Boolean providerRequired) at Microsoft.EntityFrameworkCore.DbContext..ctor(DbContextOptions options) at Oqtane.Infrastructure.DatabaseManager.CreateDatabase(InstallConfig install) in /Users/Me/RiderProjects/ubuntu/601/oqtane.framework/Oqtane.Server/Infrastructure/DatabaseManager.cs:line 224

Expected Behavior

Use can run the installer wizard for MySql and the database will be created and populated.

Steps To Reproduce

Run the installation wizard, select mysql and enter your credentials. The error appears below.

Anything else?

@sbwalker
Copy link
Member

@zyhfish
Copy link
Contributor

zyhfish commented Dec 28, 2024

looks like the mysql.entityframeworkcore package doesn't compatible with .net 9.0 yet.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants