Membership throws a MissingFieldException

Discussion of open issues, suggestions and bugs regarding ADO.NET provider for MySQL
Post Reply
njb
Posts: 5
Joined: Sat 25 Feb 2017 01:12

Membership throws a MissingFieldException

Post by njb » Wed 12 Apr 2017 14:51

Hi,
We are trying to replace Microsoft's Membership with the Devart Membership. Here is the appropriate membership section of the web.config:

Code: Select all

    <membership defaultProvider="AspNetMySqlMembershipProvider">
      <providers>
        <clear />
        <!--<add name="AspNetSqlMembershipProvider" type="System.Web.Security.SqlMembershipProvider" connectionStringName="ApplicationServices" enablePasswordRetrieval="false" enablePasswordReset="true" requiresQuestionAndAnswer="false" requiresUniqueEmail="true"
             maxInvalidPasswordAttempts="5" minRequiredPasswordLength="6" minRequiredNonalphanumericCharacters="0" passwordAttemptWindow="10" applicationName="/" />-->
        <add name="AspNetMySqlMembershipProvider" type="Devart.Data.MySql.Web.Providers.MySqlMembershipProvider" connectionStringName="ApplicationServicesMySql" enablePasswordRetrieval="false" enablePasswordReset="true" requiresQuestionAndAnswer="false" requiresUniqueEmail="true"
             maxInvalidPasswordAttempts="5" minRequiredPasswordLength="6" minRequiredNonalphanumericCharacters="0" passwordAttemptWindow="10" applicationName="/" />
      </providers>
    </membership>
When we do any call like

Code: Select all

Membership.FindUserNameByEmail(userData.Email)
we get the following exception:

Code: Select all

An exception of type 'System.MissingFieldException' occurred in Devart.Data.MySql.dll but was not handled in user code

Additional information: Field not found: 'Devart.Common.DbConnectionStringBuilder.initializationCommandInternal'.
What are we missing?

Pinturiccio
Devart Team
Posts: 2420
Joined: Wed 02 Nov 2011 09:44

Re: Membership throws a MissingFieldException

Post by Pinturiccio » Fri 14 Apr 2017 15:16

Membership ASP.NET provider does not have a FindUserNameByEmail method. Please provide the following information:
1. dotConnect for MySQL version;
2. Full version of Devart.Data.MySql.Web.dll added to your project References;
3. How exactly have you added the FindUserNameByEmail method to ASP.NET 2.0 Membership provider?
4. Create a small test project that reproduces the issue and send it to us with the Devart assemblies used in the project.

If your project have a size of several megabytes or more, you can archive your project and upload it to our ftp server ( ftp://ftp.devart.com/, credentials: anonymous/anonymous ) or to any file exchange server so that we could download it from there. You can send us the password to the archive via our contact form.

tchadwick
Posts: 3
Joined: Wed 10 Feb 2021 19:40

Re: Membership throws a MissingFieldException

Post by tchadwick » Tue 06 Apr 2021 15:48

Was this ever resolved? I've got the same error, but just tied to the Devart Connector, not the identity provider.

Shalex
Site Admin
Posts: 9543
Joined: Thu 14 Aug 2008 12:44

Re: Membership throws a MissingFieldException

Post by Shalex » Wed 07 Apr 2021 12:02

1. Please send us a small test project so that we can reproduce the error in our environment.

2. Specify the full stack trace of the exception.

Post Reply