Re: 8.0.18 A null was returned after calling the 'GetService' method on a store provider instance of type 'MySql.Data.MySqlClient.MySqlClientFactory'.
Posted by: Massimiliano Mattei
Date: June 01, 2020 03:33PM

Same issue here. I'm with 8.0.20 connector.
All three libraries are referenced in the project:

In the web config I have

<provider invariantName="MySql.Data.MySqlClient" type="MySql.Data.MySqlClient.MySqlProviderServices, MySql.Data.EntityFramework" />
<defaultConnectionFactory type="MySql.Data.MySqlClient.MySqlProviderServices, MySql.Data.EntityFramework" />

But when accessing the provider from a webforms like this:

<asp:EntityDataSource ID="LogTypesDataSource" EntitySetName="eva_logtypes" Select="it.[LogTypeId], it.[LogName]" DefaultContainerName="MyDb" ConnectionString="name=ConnStringName" runat="server" />

I got the exact same error.
Visual Studio 2019. 4.7.2

Options: ReplyQuote

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.