Nedd help with a small problem in Web.Config

R

Raja

Hi everybody
I am not using App_Data\aspnetdb.mdf but my own database TESTDB in
SQLEXPRESS.
In web.config I am using:

<connectionStrings>
<add name="TESTDB" connectionString="Data Source=.\SQLEXPRESS;Initial
Catalog=TESTDB;Integrated Security=True"
providerName="System.Data.SqlClient" />

<remove name="LocalSqlServer"/>
<add name="LocalSqlServer" connectionString="Data
Source=.\SQLEXPRESS;Initial Catalog=TESTDB;Integrated Security=True"
providerName="System.Data.SqlClient" />
</connectionStrings>

VWD shows me the exact number of users I have in TESTDB, AND EVERYTHING
WORKS.

But when I remove the above LocalSqlServer and add these:

<system.web>
<membership defaultProvider="CustomizedProvider">
<providers>
<add name="CustomizedProvider"
type="System.Web.Security.SqlMembershipProvider"
connectionStringName="TESTDB"
minRequiredPasswordLength="5"
minRequiredNonalphanumericCharacters="0" />
</providers>
</membership>
</system.web>

Then VWD shows me 0 number of users, and during the login process it
says wrong credentials.

Where is the problem? What I am missing?

Thanks in advance
Raja
 

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

Forum statistics

Threads
473,769
Messages
2,569,582
Members
45,068
Latest member
MakersCBDIngredients

Latest Threads

Top