473,732 Members | 2,210 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

problem setting a new membershipProvi der 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="AspNetSql MembershipProvi der" />
<add name="AspNetSql MembershipProvi der"
type="System.We b.Security.SqlM embershipProvid er, System.Web,
Version=2.0.0.0 , Culture=neutral , PublicKeyToken= b03f5f7f11d50a3 a"
connectionStrin gName="LocalSql Server"
minRequiredNona lphanumericChar acters="0"
requiresQuestio nAndAnswer="tru e" />
</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):
<connectionStri ngs>
<remove name="LocalSqlS erver" />
<add name="LocalSqlS erver"
providerName="S ystem.Data.SqlC lient"
connectionStrin g="Data
Source=.\SQLEXP RESS;AttachDbFi lename=|DataDir ectory|\ASPNETD B.MDF;Integrate d
Security=True;U ser Instance=True" />
</connectionStrin gs>

Jeff
Apr 3 '07 #1
3 1596
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.NO SPAMwrote:
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="AspNetSql MembershipProvi der" />
<add name="AspNetSql MembershipProvi der"
type="System.We b.Security.SqlM embershipProvid er, System.Web,
Version=2.0.0.0 , Culture=neutral , PublicKeyToken= b03f5f7f11d50a3 a"
connectionStrin gName="LocalSql Server"
minRequiredNona lphanumericChar acters="0"
requiresQuestio nAndAnswer="tru e" />
</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):
<connectionStri ngs>
<remove name="LocalSqlS erver" />
<add name="LocalSqlS erver"
providerName="S ystem.Data.SqlC lient"
connectionStrin g="Data
Source=.\SQLEXP RESS;AttachDbFi lename=|DataDir ectory|\ASPNETD B.MDF;Integrate d
Security=True;U ser Instance=True" />
</connectionStrin gs>

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.NO SPAMwrote in message
news:OE******** ******@TK2MSFTN GP03.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="AspNetSql MembershipProvi der" />
<add name="AspNetSql MembershipProvi der"
type="System.We b.Security.SqlM embershipProvid er, System.Web,
Version=2.0.0.0 , Culture=neutral , PublicKeyToken= b03f5f7f11d50a3 a"
connectionStrin gName="LocalSql Server"
minRequiredNona lphanumericChar acters="0"
requiresQuestio nAndAnswer="tru e" />
</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):
<connectionStri ngs>
<remove name="LocalSqlS erver" />
<add name="LocalSqlS erver"
providerName="S ystem.Data.SqlC lient"
connectionStrin g="Data
Source=.\SQLEXP RESS;AttachDbFi lename=|DataDir ectory|\ASPNETD B.MDF;Integrate d
Security=True;U ser Instance=True" />
</connectionStrin gs>

Jeff

Apr 3 '07 #3
The error occured because I had registered 3 users without specifying
applicationName
"Jeff" <it************ @hotmail.com.NO SPAMwrote in message
news:OE******** ******@TK2MSFTN GP03.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="AspNetSql MembershipProvi der" />
<add name="AspNetSql MembershipProvi der"
type="System.We b.Security.SqlM embershipProvid er, System.Web,
Version=2.0.0.0 , Culture=neutral , PublicKeyToken= b03f5f7f11d50a3 a"
connectionStrin gName="LocalSql Server"
minRequiredNona lphanumericChar acters="0"
requiresQuestio nAndAnswer="tru e" />
</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):
<connectionStri ngs>
<remove name="LocalSqlS erver" />
<add name="LocalSqlS erver"
providerName="S ystem.Data.SqlC lient"
connectionStrin g="Data
Source=.\SQLEXP RESS;AttachDbFi lename=|DataDir ectory|\ASPNETD B.MDF;Integrate d
Security=True;U ser Instance=True" />
</connectionStrin gs>

Jeff

Apr 3 '07 #4

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

Similar topics

5
2552
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 "Enlighten.LinkMad.Businesslogic". In one of my frontend websites I use this type to authenticate a user who is trying to login. The following excerpt is from the web.config of the particular site showing the reference to the custom provider, allowing .Net to do...
6
1895
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 log in become log on, but when I access the protected page, it still prompt me for log in. Please help! I am using SQL to store the membership, the code in web.config is as follow, <roleManager enabled="true"/>
5
3299
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 u.ChangePassword(OldPassword, Password) Then ChangePassword = True
1
3731
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 to the MySQL server, the ASP.Net application send MS-SQL requests on port 3610 t03618 instead of a MySQL request to port 3306 (but it sends it to the right IP address).
0
9447
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
9307
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
9235
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9181
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
6735
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6031
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
1
3261
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
2721
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2180
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.