Azure Published API Error

0

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.

asked by anonymous 29.04.2016 / 16:59

1 answer

0

I found the error:

When I unchecked these two options, the compilation ran in Azure.

    
29.04.2016 / 20:41