473,320 Members | 2,122 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

problem setting a new membershipProvider in web.config

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=|DataDirector y|\ASPNETDB.MDF;Integrated
Security=True;User Instance=True" />
</connectionStrings>

Jeff
Apr 3 '07 #1
3 1579
Not sure at the moment what the problem could be.

Here is a sample entry for configuration settings that work for me:

http://www.ben-rush.net/blog/PermaLi...ef77219&dotnet.

On Apr 3, 11:00 am, "Jeff" <it_consulta...@hotmail.com.NOSPAMwrote:
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=|DataDirector y|\ASPNETDB.MDF;Integrated
Security=True;User Instance=True" />
</connectionStrings>

Jeff

Apr 3 '07 #2
Can it because I haven't specified all the settings for the membership
provider. I added applicationName="myNetwork" (mynetwork is the application
name) to the membership provider settings, and it didn't help... I assume
asp.net 2.0 use default settings if I don't specify them in web.config...
but I cannot be 100% sure about it...

any suggestions?
"Jeff" <it************@hotmail.com.NOSPAMwrote in message
news:OE**************@TK2MSFTNGP03.phx.gbl...
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=|DataDirector y|\ASPNETDB.MDF;Integrated
Security=True;User Instance=True" />
</connectionStrings>

Jeff

Apr 3 '07 #3
The error occured because I had registered 3 users without specifying
applicationName
"Jeff" <it************@hotmail.com.NOSPAMwrote in message
news:OE**************@TK2MSFTNGP03.phx.gbl...
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=|DataDirector y|\ASPNETDB.MDF;Integrated
Security=True;User Instance=True" />
</connectionStrings>

Jeff

Apr 3 '07 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
by: Graham | last post by:
I have created a custom MembershipProvider called "LassieMembershipProvider" that derives from "MembershipProvider". This providor is located in a Businesslogic layer dll called...
6
by: Scatir | last post by:
Hi, I have a membership problem I couldn't resolve. I have set up membership as most of tutorial instructed, and I am able to log on, but cannot stay log on for some reason. ex: when I log on, the...
5
by: John | last post by:
Hi I am trying to set a new password using the following code; Dim u As MembershipUser = Membership.GetUser(UserName) Dim OldPassword As String OldPassword = u.GetPassword If...
1
by: Julien Sobrier | last post by:
Hello, I'm trying to get a CreateUserWizard asp component to connect to a MySql Server. I've installed the latest Mysql connector. THep roblem is taht even after modifying web, config to connect...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.