Membership throws a MissingFieldException

Membership throws a MissingFieldException

Postby 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?
njb
 
Posts: 2
Joined: Sat 25 Feb 2017 01:12

Re: Membership throws a MissingFieldException

Postby 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.
Pinturiccio
Devart Team
 
Posts: 1986
Joined: Wed 02 Nov 2011 09:44


Return to dotConnect for MySQL