ASP.NET membership

I

Inverse

Would it be alright if i contact you here about a question that's been
bugging me for some time to do with membership within ASP.NET 2.0,
basically what i am trying to do is move away from using the
ASPNETDB.MDF and instead using a SQL2000 Database, and so far i have
had no luck with doing such a thing...

so far I've created the tables in the database using aspnet_regsql.exe
and all looks correct!

I am using the following connection string

<connectionStrings>
<add name="MyDB" connectionString="Data Source=SERVER;Initial
Catalog=ASPNETDB; User Id=USERNAME; Password=PASSWORD;"/>
</connectionStrings>


and the following details in my membership section - which i copied
off your blog, changing the connectionStringName and applicationName

....
<membership>
<providers>
<clear />
<add name="AspNetSqlMembershipProvider"
type="System.Web.Security.SqlMembershipProvider,
System.Web, Version=2.0.0.0, Culture=neutral,
PublicKeyToken=b03f5f7f11d50a3a"
connectionStringName="MyDB"
enablePasswordRetrieval="false"
enablePasswordReset="true"
requiresQuestionAndAnswer="true"
requiresUniqueEmail="false"
passwordFormat="Hashed"
maxInvalidPasswordAttempts="5"
minRequiredPasswordLength="7"
minRequiredNonalphanumericCharacters="0"
passwordAttemptWindow="10"
passwordStrengthRegularExpression=""
applicationName="testApp"
/>
</providers>
</membership>
</system.web>

However when i go and run the ASP.NET Configuration it creates the
ASPNETDB.MDF and display Application:/AJAXEnabledWebSite2 which is
the folder the application is situated in.

Any help or pointers/resources would be much appreciated.

Best regards,

Malachi
 
G

Guest

Try adding
<remove name="AspNetSqlMembershipProvider"...
at the beginning of your membership section, instead of the <clear/>
Peter
 
I

Inverse

Hi, i beleive where i am going wrong is i forgot to add:

<roleManager defaultProvider="CustomizedRoleProvider"
enabled="true">
<providers>
<add name="CustomizedRoleProvider"
type="System.Web.Security.SqlRoleProvider"
connectionStringName="MyDB" />
</providers>
</roleManager>

and only changed the membership provider
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,582
Members
45,066
Latest member
VytoKetoReviews

Latest Threads

Top