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
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