473,289 Members | 1,729 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,289 software developers and data experts.

.NET 2.0 Security membership Provider - without SQL?

I am using .NET 2.0 Security to do login/password management, but in the
ASP.NET web site administration page, it forces me to use
"AspNetSqlProvider" as provider.

Is it possible to change it to something else? like a plain XML file?
without using SQL Database? Since our application is extremely
lightwighted, we don't really need a database. Also, we don't want our
client to install SQL Express or to use SQL server.

Thanks..
May 13 '06 #1
6 2680
Yes, even it's posible to use an Access database if you want. You have
to change the default provider for another one. Microsoft has a
provider for Access
(http://msdn.microsoft.com/asp.net/downloads/providers/), and you can
build your own provider with work and patient.

May 13 '06 #2
Hi DotNetWarrior...

From what I have "heard" but not "implemented", the grandest thing about
ASP.NET 2.0 nowadays is the Provider Model. You can configure the provider
you want to use in the Web.Config. This allows you to create you own
providers for whatever functionality (in this case, Membership) you are
seeking. For example, if you have a file named "foo.txt" and you wanted to
base all you authentication on that, you can create a FooMembershipProvider
to implement it.

Regards,

Michael Bosch

"00_DotNetWarrior" <00**************@gmail.com> wrote in message
news:44*********************@news.astraweb.com...
I am using .NET 2.0 Security to do login/password management, but in the
ASP.NET web site administration page, it forces me to use
"AspNetSqlProvider" as provider.

Is it possible to change it to something else? like a plain XML file?
without using SQL Database? Since our application is extremely
lightwighted, we don't really need a database. Also, we don't want our
client to install SQL Express or to use SQL server.

Thanks..

May 13 '06 #3
re:
it forces me to use "AspNetSqlProvider" as provider.

Is it possible to change it to something else? like a plain XML file?
At this page :
http://msdn.microsoft.com/library/de...ovMod_Prt1.asp

there's sample code for a ReadOnlyXmlMembershipProvider.

It does not support programmatically adding users, or changing passwords, though.
It's intended for read-only membership services.

You can add users/change passwords via a separate XML parse/write operation.

Maybe that's enough for you ?

Juan T. Llibre, asp.net MVP
aspnetfaq.com : http://www.aspnetfaq.com/
asp.net faq : http://asp.net.do/faq/
foros de asp.net, en español : http://asp.net.do/foros/
===================================
"00_DotNetWarrior" <00**************@gmail.com> wrote in message
news:44*********************@news.astraweb.com...I am using .NET 2.0 Security to do login/password management, but in the ASP.NET web site
administration page, it forces me to use "AspNetSqlProvider" as provider.

Is it possible to change it to something else? like a plain XML file? without using SQL Database?
Since our application is extremely lightwighted, we don't really need a database. Also, we don't
want our client to install SQL Express or to use SQL server.

Thanks..

May 13 '06 #4
The new way that Microsoft is doing things is.

they create and use an abstract class in the code, for their controls.
They ship with the framework, a class that implements the abstract class.

This way it works "out of the box".

Realizing that it won't satify all/many customer needs, you have the ability
to create your own class ( inheriting the abstract class Microsoft
provides ) and then write your own code to handle the abstract methods.
(mustinherit I think in vb.net)

Then, you override the class which ships with dotnet, in the .config file.

Its not trivial to create your own. it takes some work.

Depending on the project, you can either learn how to use it "out of the
box", or use the previously provided links to find some other people who
have create their own version.

But nothing is free. You either can tackle the setup and learning curve of
using the code "out of the box", or you can write/"borrow" other code to
replace the out of the box code.


"00_DotNetWarrior" <00**************@gmail.com> wrote in message
news:44*********************@news.astraweb.com...
I am using .NET 2.0 Security to do login/password management, but in the
ASP.NET web site administration page, it forces me to use
"AspNetSqlProvider" as provider.

Is it possible to change it to something else? like a plain XML file?
without using SQL Database? Since our application is extremely
lightwighted, we don't really need a database. Also, we don't want our
client to install SQL Express or to use SQL server.

Thanks..

May 13 '06 #5

"00_DotNetWarrior" <00**************@gmail.com> wrote in message
news:44*********************@news.astraweb.com...
I am using .NET 2.0 Security to do login/password management, but in the
ASP.NET web site administration page, it forces me to use
"AspNetSqlProvider" as provider.

Is it possible to change it to something else? like a plain XML file?
without using SQL Database? Since our application is extremely
lightwighted, we don't really need a database. Also, we don't want our
client to install SQL Express or to use SQL server.

Thanks..


In the book "Pro ASP.NET 2.0 in C# 2005" is full xml exmaple of membership
provider.

Starting on page 870. Published by Apress (www.apress.com). Probably
source is on line.

(sorry for the double post, newsreader problem)
May 13 '06 #6
re:
Probably source is on line.
It is :

http://www.apress.com/ApressCorporat...94967-2960.zip


Juan T. Llibre, asp.net MVP
aspnetfaq.com : http://www.aspnetfaq.com/
asp.net faq : http://asp.net.do/faq/
foros de asp.net, en español : http://asp.net.do/foros/
===================================
"PeterKellner" <ho****@fetchemail.com> wrote in message
news:D-******************************@comcast.com...
"00_DotNetWarrior" <00**************@gmail.com> wrote in message
news:44*********************@news.astraweb.com...
I am using .NET 2.0 Security to do login/password management, but in the ASP.NET web site
administration page, it forces me to use "AspNetSqlProvider" as provider.

Is it possible to change it to something else? like a plain XML file? without using SQL Database?
Since our application is extremely lightwighted, we don't really need a database. Also, we don't
want our client to install SQL Express or to use SQL server.

Thanks..


In the book "Pro ASP.NET 2.0 in C# 2005" is full xml exmaple of membership provider.

Starting on page 870. Published by Apress (www.apress.com). Probably
source is on line.

(sorry for the double post, newsreader problem)

May 13 '06 #7

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

Similar topics

9
by: Terry E Dow | last post by:
Howdy, I am having trouble with the objectCategory=group member.Count attribute. I get one of three counts, a number between 1-999, no member (does not contain member property), or 0. Using...
1
by: Philipp Lenz | last post by:
I'm completely new to ASP.Net 2.0 and I'm baffled about what to do to get this to work. FYI, I'm not new at this, I've used asp.net 1.1 for allmost 4 years now. I'm running a development...
3
by: ad | last post by:
I have create a custom membership provider. The common usage of custom membership is set it as default Membership Provider win web.config, and use login controls with it. How can I use custom...
9
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. ...
1
by: Karl | last post by:
We have an application that uses the new ASP.Net 2.0 membership security, but we are writing the backoffice administration for it in vb.net as an in house product. We would like to be able to...
4
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...
4
by: vincent90152900 | last post by:
How to remove Security Question and Security Answer from membership provider? Following is my codes. Please tell me how to remove Question and Answer from membership provider. Thank you for...
2
by: Nathan Sokalski | last post by:
When I call System.Web.Security.Roles.GetRolesForUser() it returns no results (an array of length 0) even though I have roles associated with the currently logged in user. I am able to get the...
2
by: Ken Fine | last post by:
I want to add the security question and answer security feature to the ChangePassword control. I am aware that this functionality is built into the PasswordRecovery tool. I have implemented the...
2
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 7 Feb 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:30 (7.30PM). In this month's session, the creator of the excellent VBE...
0
by: MeoLessi9 | last post by:
I have VirtualBox installed on Windows 11 and now I would like to install Kali on a virtual machine. However, on the official website, I see two options: "Installer images" and "Virtual machines"....
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: Aftab Ahmad | last post by:
Hello Experts! I have written a code in MS Access for a cmd called "WhatsApp Message" to open WhatsApp using that very code but the problem is that it gives a popup message everytime I clicked on...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: marcoviolo | last post by:
Dear all, I would like to implement on my worksheet an vlookup dynamic , that consider a change of pivot excel via win32com, from an external excel (without open it) and save the new file into a...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
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...

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.