A null was returned after calling the 'GetService' method on a store provider instance of type 'MySql.Data.MySqlClient.MySqlClientFactory'
Posted by: Venkata Ramana Raju
Date: May 03, 2024 05:28AM

I recently upgraded my database from mySql 5.5 to mySQL 8.0.27, mySQL .NET Connector 8.0.27 & Entity Framework from 5 to 6.4.4. Now when making a DB call from code using EF, I am receiving the error "System.Data.ProviderIncompatibleException: A null was returned after calling the 'GetService' method on a store provider instance of type 'MySql.Data.MySqlClient.MySqlClientFactory'. The store provider might not be functioning correctly."

Source is "System.Data.Entity".

I am using VS 2022 & .Net framework is 4.8.

Can any one please suggest where I am missing?

Options: ReplyQuote


Subject
Written By
Posted
A null was returned after calling the 'GetService' method on a store provider instance of type 'MySql.Data.MySqlClient.MySqlClientFactory'
May 03, 2024 05:28AM


Sorry, only registered users may post in this forum.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.