CASE SOLVED
- From: "Jeff" <it_consultant1@xxxxxxxxxxxxxxxxxx>
- Date: Wed, 4 Apr 2007 01:41:15 +0200
The error occured because I had registered 3 users without specifying
applicationName
"Jeff" <it_consultant1@xxxxxxxxxxxxxxxxxx> wrote in message
news:OE6MukgdHHA.4872@xxxxxxxxxxxxxxxxxxxxxxx
ASP.NET 2.0
These settings below (see PROBLEM SETTINGS) are causing my webproject to
NOT connect with ASPNETDB.MDF. In this webproject have I created 3 users.
I can see 3 users in the "ASP.NET Configuration window". But after I have
added the settings (see PROBLEM SETTINGS) below to my web.config the
"ASP.NET Configuration window" says the webproject has 0 users...
Any ideas what I'm doing wrong here?
PROBLEM SETTINGS:
<membership>
<providers>
<remove name="AspNetSqlMembershipProvider" />
<add name="AspNetSqlMembershipProvider"
type="System.Web.Security.SqlMembershipProvider, System.Web,
Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"
connectionStringName="LocalSqlServer"
minRequiredNonalphanumericCharacters="0"
requiresQuestionAndAnswer="true" />
</providers>
</membership>
DATABASE CONNECTION (this is the database connection I have in web.config,
I post it here in case it make it easier for you to see what I'm doing
wrong):
<connectionStrings>
<remove name="LocalSqlServer" />
<add name="LocalSqlServer"
providerName="System.Data.SqlClient"
connectionString="Data
Source=.\SQLEXPRESS;AttachDbFilename=|DataDirectory|\ASPNETDB.MDF;Integrated
Security=True;User Instance=True" />
</connectionStrings>
Jeff
.
- References:
- Prev by Date: Re: Creating variables in a loop!
- Next by Date: MasterPage Content
- Previous by thread: Re: problem setting a new membershipProvider in web.config
- Next by thread: Session variable value resets
- Index(es):