473,802 Members | 1,978 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

ASP.NET membership

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.e xe
and all looks correct!

I am using the following connection string

<connectionStri ngs>
<add name="MyDB" connectionStrin g="Data Source=SERVER;I nitial
Catalog=ASPNETD B; User Id=USERNAME; Password=PASSWO RD;"/>
</connectionStrin gs>
and the following details in my membership section - which i copied
off your blog, changing the connectionStrin gName and applicationName

....
<membership>
<providers>
<clear />
<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="MyDB"
enablePasswordR etrieval="false "
enablePasswordR eset="true"
requiresQuestio nAndAnswer="tru e"
requiresUniqueE mail="false"
passwordFormat= "Hashed"
maxInvalidPassw ordAttempts="5"
minRequiredPass wordLength="7"
minRequiredNona lphanumericChar acters="0"
passwordAttempt Window="10"
passwordStrengt hRegularExpress ion=""
applicationName ="testApp"
/>
</providers>
</membership>
</system.web>

However when i go and run the ASP.NET Configuration it creates the
ASPNETDB.MDF and display Application:/AJAXEnabledWebS ite2 which is
the folder the application is situated in.

Any help or pointers/resources would be much appreciated.

Best regards,

Malachi

Jan 29 '07 #1
2 1586
Try adding
<remove name="AspNetSql MembershipProvi der"...
at the beginning of your membership section, instead of the <clear/>
Peter

--
Site: http://www.eggheadcafe.com
UnBlog: http://petesbloggerama.blogspot.com
Short urls & more: http://ittyurl.net


"Inverse" wrote:
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.e xe
and all looks correct!

I am using the following connection string

<connectionStri ngs>
<add name="MyDB" connectionStrin g="Data Source=SERVER;I nitial
Catalog=ASPNETD B; User Id=USERNAME; Password=PASSWO RD;"/>
</connectionStrin gs>
and the following details in my membership section - which i copied
off your blog, changing the connectionStrin gName and applicationName

....
<membership>
<providers>
<clear />
<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="MyDB"
enablePasswordR etrieval="false "
enablePasswordR eset="true"
requiresQuestio nAndAnswer="tru e"
requiresUniqueE mail="false"
passwordFormat= "Hashed"
maxInvalidPassw ordAttempts="5"
minRequiredPass wordLength="7"
minRequiredNona lphanumericChar acters="0"
passwordAttempt Window="10"
passwordStrengt hRegularExpress ion=""
applicationName ="testApp"
/>
</providers>
</membership>
</system.web>

However when i go and run the ASP.NET Configuration it creates the
ASPNETDB.MDF and display Application:/AJAXEnabledWebS ite2 which is
the folder the application is situated in.

Any help or pointers/resources would be much appreciated.

Best regards,

Malachi

Jan 29 '07 #2
Hi, i beleive where i am going wrong is i forgot to add:

<roleManager defaultProvider ="CustomizedRol eProvider"
enabled="true">
<providers>
<add name="Customize dRoleProvider"
type="System.We b.Security.SqlR oleProvider"
connectionStrin gName="MyDB" />
</providers>
</roleManager>

and only changed the membership provider
On Jan 29, 12:45 pm, Peter Bromberg [C# MVP]
<pbromb...@yaho o.yabbadabbadoo .comwrote:
Try adding
<remove name="AspNetSql MembershipProvi der"...
at the beginning of your membership section, instead of the <clear/>
Peter

--
Site: http://www.eggheadcafe.com
UnBlog: http://petesbloggerama.blogspot.com
Short urls & more: http://ittyurl.net

"Inverse" wrote:
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.e xe
and all looks correct!
I am using the following connection string
<connectionStri ngs>
<add name="MyDB" connectionStrin g="Data Source=SERVER;I nitial
Catalog=ASPNETD B; User Id=USERNAME; Password=PASSWO RD;"/>
</connectionStrin gs>
and the following details in my membership section - which i copied
off your blog, changing the connectionStrin gName and applicationName
....
<membership>
<providers>
<clear />
<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="MyDB"
enablePasswordR etrieval="false "
enablePasswordR eset="true"
requiresQuestio nAndAnswer="tru e"
requiresUniqueE mail="false"
passwordFormat= "Hashed"
maxInvalidPassw ordAttempts="5"
minRequiredPass wordLength="7"
minRequiredNona lphanumericChar acters="0"
passwordAttempt Window="10"
passwordStrengt hRegularExpress ion=""
applicationName ="testApp"
/>
</providers>
</membership>
</system.web>
However when i go and run the ASP.NET Configuration it creates the
ASPNETDB.MDF and display Application:/AJAXEnabledWebS ite2 which is
the folder the application is situated in.
Any help or pointers/resources would be much appreciated.
Best regards,
Malachi
Jan 29 '07 #3

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

Similar topics

9
2176
by: Paul Keegstra | last post by:
Hi, I am currently working on an asp.net 2.0 web site that is a replacement of a classic asp web site. The current web site uses a Commerce Server 2002 database for storing user information. It does not currently use any of the Commerce Server 2002 functionality with the exception of the user authentication features. I have written my replacement application to use a custom login form and custom connection string so that I can use...
4
1518
by: Pony Tsui | last post by:
I was install the starter kits CLUB, and created a CLUB WEB SITE, this application use the MemberInfo table in club.mdf to store the membership'data, but i can not find out where to define or configure the MemberShipProvider relative to the MemberInfo Table, it just define the connectionString in the web.config. thanks. -- Pony Tsui
2
14160
by: Balaji | last post by:
Hi All, Can I use more than one membership provider for a given website? I understand only one of them could be default one. If yes, then how to programmatically access the other membership provider? For e.g. lets say I have a SQLMembership provider and OracleMembership provider. SQL would be my default provider. During authentication, based on the value of an additional parameter in the login screen, I need to validate against SQL or...
3
3283
by: ryan.mclean | last post by:
Hello everyone, I am wondering, can the membership provider be changed at runtime? Perhaps the connectionStringName? I would like to use a different database based on the server the site is on. I suppose that a custom provider could be used to accomplish this, is there another way?
4
4737
by: =?Utf-8?B?Q2hyaXMgQ2Fw?= | last post by:
I have been having some trouble with implementing a custom Membership Provider. We have a custom data store and business logic that pulls user information. I need some level of functionality above and beyond what the prodiver currently allows. I need the ability to access a user id and the user's permission id. With Forms authentication in 1.1, I would just create a custom identiy and principal and store the information in the identity....
4
1443
by: =?Utf-8?B?U2FsYW1FbGlhcw==?= | last post by:
Hi, I am trying to play with the Survey manager application provided gracefully by Microsoft at "http://msdn.microsoft.com/vstudio/express/sql/samples/" VB team(so many thanks), compiled the win app, added 2 users beside the "thardy" user already shipped with the aplication. I can not pass the Login page, I always get the following message on the login page : "Your login attempt was not successfull" In spite of the fact I tried to...
3
2186
by: Glenn | last post by:
My current classic-ASP site has users, projects, roles and the 2.0 membership looks like a perfect fit, but I'm having trouble finding examples of how to have users that belong to different projects, and have different roles per project. The current model.. * When a user joins my site, they eventually end up joining or creating one or more projects. But, they are not required to be a member of a project to be a member of the site.
1
2379
by: =?Utf-8?B?ZVByaW50?= | last post by:
Asp.Net v2.0 I have created a web application and I am using it from a single website and database. The web application has different ‘portals’ – each independent and I am using the Membership & Roles ApplicationName to separate out my different groups of users within the membership database. I had been having problems with ‘random’ bugs - as though my Membership database was 'sharing' information between users and...
1
3017
by: =?Utf-8?B?ZVByaW50?= | last post by:
Asp.Net v2.0 I have created a web application and I am using it from a single website and database. The web application has different ‘portals’ – each independent and I am using the Membership & Roles ApplicationName to separate out my different groups of users within the membership database. I had been having problems with ‘random’ bugs - as though my Membership database was 'sharing' information between users and...
8
3776
by: Nick | last post by:
Hi there, Membership.GetNumberOfUsersOnline() works great the first time, then jumps up to the number of users registered in the system. I have tried enumerating through each user individually and checking IsOnline which done likewise, first result was 4, then 22 every time after that and it's only be debugging locally using VS. Either I'm doing something seriously wrong or this function is a
0
9699
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9562
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10305
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...
0
9115
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
6838
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();...
0
5494
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5622
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
3792
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2966
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.