I have an error in an ASP.Net API with Entity Framework and MySql, on my machine the application runs without problem accesses the database and shows the results, however when I publish in Azure the application generates an error: "Object reference not set to an instance of an object."
I have already checked that the error occurs when I try to access the return of the var teste2 = context.CategoriaUsuarios.ToList();
bank.
An error has occurred. Object reference not set to an instance of an object. System.NullReferenceException at MySql.Data.MySqlClient.MySqlProviderServices.GetDbProviderManifestToken (DbConnection connection at System.Data.Entity.Core.Common.DbProviderServices.GetProviderManifestToken (DbConnection connection at System.Data.Entity.Utilities.DbProviderServicesExtensions.GetProviderManifestTokenChecked (DbProviderServices providerServices, DbConnection connection) at System.Data.Entity.Infrastructure.DefaultManifestTokenResolver.