Base solution for your next web application

Activities of "karimgarza"

Hi,

This happens when multi-tenancy is disabled and using the following ef providers

Devart.Data.MySql.EFCore 8.9.931 Devart.Data.MySql.EFCore.Design 8.9.931

But it does not happen with the Pomelo MySQL EF providers

There must be something that the Devart EFCore components do not implement and the Pomelo ones do.

It finally works !

I don't think I know what the problem is other than the application keep trying to re-insert languages upon every re-start, but removing the references to the devart dependencies and changing them for the mysql pomelo ones, removing all of the migrations, creating a new migration, updating the database and running the application works.

I used the following mysql packages for EF Core

<a class="postlink" href="https://www.nuget.org/packages/Pomelo.EntityFrameworkCore.MySql/2.0.0-preview2-10046">https://www.nuget.org/packages/Pomelo.E ... iew2-10046</a> <a class="postlink" href="https://www.nuget.org/packages/Pomelo.EntityFrameworkCore.MySql.Design/">https://www.nuget.org/packages/Pomelo.E ... ql.Design/</a>

One thing that I noticed is that every time i re-launch the asp.net core application, the table abplanguages ends up with 10 more records. Right now I launched the application 5 times and I have 50 records.

Hi,

Thank you for your reply.

I created a new project today from your site, changed the application to single tenant, then removed the nuget package for sql server and added the the mysql nuget packagesmentioned in this post, changed the connection string, removed all the migrations, added a new migration updated the database using Update-Database.

I launched the asp.net core project and it ran (showed the swagger api), then i launched the angular project and I got the following error in the asp.net log when i opened the browser to <a class="postlink" href="http://localhost:4200">http://localhost:4200</a>

It seems that the angular project was trying to call the following endpoint <a class="postlink" href="http://localhost:22742/AbpUserConfiguration/GetAll">http://localhost:22742/AbpUserConfiguration/GetAll</a> and got back an internal server error

Abp.AbpException: No language defined!
   at Abp.Localization.MultiTenantLocalizationDictionaryProvider.GetDefaultDictionary()
   at Abp.Localization.Dictionaries.DictionaryBasedLocalizationSource.GetAllStrings(CultureInfo culture, Boolean includeDefaults)
   at Abp.Web.Configuration.AbpUserConfigurationBuilder.GetUserLocalizationConfig()
   at Abp.Web.Configuration.AbpUserConfigurationBuilder.<GetAll>d__13.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Abp.AspNetCore.Mvc.Controllers.AbpUserConfigurationController.<GetAll>d__2.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Microsoft.AspNetCore.Mvc.Internal.ObjectMethodExecutor.<CastToObject>d__38`1.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Microsoft.AspNetCore.Mvc.Internal.ControllerActionInvoker.&lt;InvokeActionMethodAsync&gt;d__27.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Microsoft.AspNetCore.Mvc.Internal.ControllerActionInvoker.&lt;InvokeNextActionFilterAsync&gt;d__25.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at Microsoft.AspNetCore.Mvc.Internal.ControllerActionInvoker.Rethrow(ActionExecutedContext context)
   at Microsoft.AspNetCore.Mvc.Internal.ControllerActionInvoker.Next(State& next, Scope& scope, Object& state, Boolean& isCompleted)
   at Microsoft.AspNetCore.Mvc.Internal.ControllerActionInvoker.&lt;InvokeNextExceptionFilterAsync&gt;d__24.MoveNext()

I'm using MySQL with this provider

Devart.Data.MySql.EFCore 8.9.931

Devart.Data.MySql.EFCore.Design 8.9.931

Showing 1 to 5 of 5 entries