AspNetMySqlMembershipProvider applicationName property

AspNetMySqlMembershipProvider applicationName property

Postby kevink » Sun 30 Apr 2006 19:24

It appears as though the applicationName property doesn't work on the AspNetMySqlMembershipProvider. It also seems that changing the Membership.ApplicationName in code has no effect. Is there any other way to change the application name that the provider uses?
kevink
 
Posts: 10
Joined: Tue 20 Dec 2005 18:30

Postby eric1980 » Wed 03 May 2006 15:03

I was able to set the ApplicationName in the web.config file. You need to include ApplicationName="someApplicationName" as an attribute to the tag. Seems to be working fine for me but I haven't tested roles yet.
eric1980
 
Posts: 2
Joined: Wed 03 May 2006 14:59

Postby kevink » Thu 04 May 2006 17:12

I am not sure about where in the web.config file you are talking about adding the Application Name. The membership section in my web.config file looks like this:




type="CoreLab.MySql.Web.Providers.MySqlMembershipProvider, CoreLab.MySql.Web, Version=3.50.10.0, Culture=neutral, PublicKeyToken=09af7300eec23701"
description="MySQLDirect membership provider"
connectionStringName="MySqlSessionServices"
enablePasswordRetrieval="false"
enablePasswordReset="true"
requiresQuestionAndAnswer="true"
requiresUniqueEmail="false"
maxInvalidPasswordAttempts="5"
minRequiredPasswordLength="1"
minRequiredNonalphanumericCharacters="0"
passwordAttemptWindow="10" />



In the Microsoft SQL Server add provider section they add applicationName like this:
...applicationName="/" ... />

If I put in an applicationName property like they do:
...applicationName="/" ... />

I get the following error when I view the web page in a browser:
Parser Error Message: Unrecognized attribute: applicationName
kevink
 
Posts: 10
Joined: Tue 20 Dec 2005 18:30

Postby kevink » Thu 04 May 2006 17:17

Ok, I see.
The property is ApplicationName and not applicationName.

That is a little bit confusing since all the other attributes have the same case as in the SQL Server provider.
kevink
 
Posts: 10
Joined: Tue 20 Dec 2005 18:30


Return to dotConnect for MySQL