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:
MySql.Data.dll
MySql.Data.EntityFramework.dll
MySql.Web.dll

In the web config I have

<entityFramework>
<providers>
<provider invariantName="MySql.Data.MySqlClient" type="MySql.Data.MySqlClient.MySqlProviderServices, MySql.Data.EntityFramework" />
</providers>
<defaultConnectionFactory type="MySql.Data.MySqlClient.MySqlProviderServices, MySql.Data.EntityFramework" />
</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. Asp.net 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.