Google Groups Home
Help | Sign in
ASP.Net Membership & Roles Using MySQL- Basics Needed.
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  7 messages - Collapse all
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
DanWeaver  
View profile
 More options 10 Apr, 23:58
Newsgroups: microsoft.public.dotnet.framework.aspnet
From: DanWeaver <danofwea...@googlemail.com>
Date: Thu, 10 Apr 2008 15:58:53 -0700 (PDT)
Local: Thurs 10 Apr 2008 23:58
Subject: ASP.Net Membership & Roles Using MySQL- Basics Needed.
I am trying to use a MySQL db hosted on a shared server as an ASP.NET
Membership Provider and .net framework 3.5 (visual studio 2008)
I am new to a lot of this and have found the following websites which
offer some degree of help but by no means a complete solution or
uncomplicated explanation of whats involved:

1)  http://blog.nolanbailey.com/2008/03/08/mysql-aspnet-membership-and-ro...
Very good but not complete enough for my level eg:
"<add name="MySQLMembershipProvider" autogenerateschema="true" ...."

2)
http://aspnet101.com/aspnet101/tutorials.aspx?id=63
Looks initially promising and the kind of solution simplicity I would
expect in reality but...
the first stage of the proceeedings doesnt work out for me on my vista
machine....
c:\Windows\Microsoft.NET\Framework>aspnet_regsql -W
'aspnet_regsql' is not recognized as an internal or external command,
operable program or batch file.

3)
http://www.codeproject.com/KB/database/mysqlmembershipprovider.aspx?f...
Many credible sources point to this page but running MySQL
Administrator and trying to execute the sql to alter tables I run into
syntax errors the origins of which I dont yet understand.

4) http://www.dotnetsurfers.com/Blog/2007/12/12/UsingMySQLWithAspnetForA...
Not sufficiently detailed.

Can anyone point me to a reasonable set of instructions to SETUP ASP
MEMBERSHIP AND ROLES ON A MySQL db on a SHARED REMOTE SERVER, USING
Visual Studio 2008 and its Login, New Member etc wizards and
templates?

I would really appreciate any help.

Dan - posted also to comp.MySQL


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message, you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Cowboy (Gregory A. Beamer)  
View profile
(1 user)  More options 11 Apr, 00:08
Newsgroups: microsoft.public.dotnet.framework.aspnet
From: "Cowboy \(Gregory A. Beamer\)" <NoSpamMgbwo...@comcast.netNoSpamM>
Date: Thu, 10 Apr 2008 18:08:10 -0500
Local: Fri 11 Apr 2008 00:08
Subject: Re: ASP.Net Membership & Roles Using MySQL- Basics Needed.
I would look up Custom Membership Provider. You will have to create one to
use MySQL instead of a supported database.

--
Gregory A. Beamer
MVP, MCP: +I, SE, SD, DBA

Subscribe to my blog
http://gregorybeamer.spaces.live.com/lists/feed.rss

or just read it:
http://gregorybeamer.spaces.live.com/

*************************************************
| Think outside the box!
|
*************************************************

"DanWeaver" <danofwea...@googlemail.com> wrote in message

news:76228ffb-c313-4d0c-93dd-ef2e418ae627@q24g2000prf.googlegroups.com...


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message, you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
DanWeaver  
View profile
 More options 11 Apr, 11:57
Newsgroups: microsoft.public.dotnet.framework.aspnet
From: DanWeaver <danofwea...@googlemail.com>
Date: Fri, 11 Apr 2008 03:57:26 -0700 (PDT)
Local: Fri 11 Apr 2008 11:57
Subject: Re: ASP.Net Membership & Roles Using MySQL- Basics Needed.
A few hard hours later and I am very frustrated- there seems to be
very little support for MySQL regarding this seemingly basicish task-
is it the case that to use MySQL in this scenario you have to be a
hardcore ASP/SQL/general programmer? I cannot find a single video that
illustrates anything like this concept nor any straigtforward,
complete, relatively up to date guidelines. From an outsiders point of
view it seems like the guys at MySQL have done all the hard work
designing the right stuff- but insufficient support exists to
encourage MySQLs use in this manner.
I want to manage users and roles and get some information such as age
group on a shared server preferably using MySQL. I have now lost 2
days looking in vain through very technical and complicated half-
descriptions of how to build an operating system on a spacestation
from scratch- I am only trying to build a hello world roles and
membership on a shared MySQL server, its like reading Microsoft help
files... Is it really that hard?

    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message, you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
DanWeaver  
View profile
 More options 11 Apr, 14:17
Newsgroups: microsoft.public.dotnet.framework.aspnet
From: DanWeaver <danofwea...@googlemail.com>
Date: Fri, 11 Apr 2008 06:17:51 -0700 (PDT)
Local: Fri 11 Apr 2008 14:17
Subject: Re: ASP.Net Membership & Roles Using MySQL- Basics Needed.
Later still and...

I believe a few steps are necessary and Im not sure of the order or
exactly how to go about them:

A) Create the DB schema on a (shared host) MySQL db... Does anybody
have the SQL already made?

B) Set up the asp project to have a reference to the correct provider
ie do something in web.config relating to <providers> and <connection
string>...

C) Change the ASP.NET Web Site Administration Tool to 'know' that
we're now using a remote provider...

D) Any other mystical steps involving importing namespaces etc...

Any takers?


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message, you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Cowboy (Gregory A. Beamer)  
View profile
(1 user)  More options 11 Apr, 15:19
Newsgroups: microsoft.public.dotnet.framework.aspnet
From: "Cowboy \(Gregory A. Beamer\)" <NoSpamMgbwo...@comcast.netNoSpamM>
Date: Fri, 11 Apr 2008 09:19:11 -0500
Local: Fri 11 Apr 2008 15:19
Subject: Re: ASP.Net Membership & Roles Using MySQL- Basics Needed.
First a google search yields:
http://www.codeproject.com/KB/database/mysqlmembershipprovider.aspx

This should solve most of your needs. It has both the scripts to create the
database and the custom membership provider. This is an "out of box"
implementation, meaning it mimics the standard ASP.NET implementation.

Note that the article states you need the latest MySQL Connector:
http://www.mysql.com/products/connector/net/

There is a cost if this is a commercial site.

If this is not acceptable, thsi one might work:
http://www.codeproject.com/KB/aspnet/Suite_MySQL_Provider.aspx

And the MySQL forum has one as well:
http://forums.mysql.com/read.php?38,63403,63403

--
Gregory A. Beamer
MVP, MCP: +I, SE, SD, DBA

Subscribe to my blog
http://gregorybeamer.spaces.live.com/lists/feed.rss

or just read it:
http://gregorybeamer.spaces.live.com/

*************************************************
| Think outside the box!
|
*************************************************

"DanWeaver" <danofwea...@googlemail.com> wrote in message

news:00e73621-bc2e-444e-ac19-31a5390e9af3@z24g2000prf.googlegroups.com...


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message, you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
sloan  
View profile
(1 user)  More options 11 Apr, 15:35
Newsgroups: microsoft.public.dotnet.framework.aspnet
From: "sloan" <sl...@ipass.net>
Date: Fri, 11 Apr 2008 10:35:26 -0400
Local: Fri 11 Apr 2008 15:35
Subject: Re: ASP.Net Membership & Roles Using MySQL- Basics Needed.

C) Change the ASP.NET Web Site Administration Tool to 'know' that
we're now using a remote provider...

I believe the WSAT tool is only available locally.....I learnt this the hard
way.
Thus my opinion is that is is a hobbyist tool, and not worth the effort.

You probably don't want to hear this, but I'll give you the advice anyways.

Go here:
http://aspnet.4guysfromrolla.com/demos/printPage.aspx?path=/articles/...

And take a hour or so ... and get the crappy Access Membership Provider
working.
Try not to just look at the code setup/config setup, but actually get it
working.

You'll learn the key items needed to swap out to a custom one.

..

Then approach the MySql version with that knowledge.
Once you get one working..the others seem easier.
I suggest the Access one becaue at least you have one that differs
signficantly from Sql Server...but is decently documented.

..

I did this (a year and half ago) and that little exercise still sits with
me....as I can swap out to a custom one quickly now.

This might help as well.
http://www.devx.com/asp/Article/29256/0/page/3

"DanWeaver" <danofwea...@googlemail.com> wrote in message

news:00e73621-bc2e-444e-ac19-31a5390e9af3@z24g2000prf.googlegroups.com...


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message, you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
DanWeaver  
View profile
 More options 11 Apr, 18:07
Newsgroups: microsoft.public.dotnet.framework.aspnet
From: DanWeaver <danofwea...@googlemail.com>
Date: Fri, 11 Apr 2008 10:07:24 -0700 (PDT)
Local: Fri 11 Apr 2008 18:07
Subject: Re: ASP.Net Membership & Roles Using MySQL- Basics Needed.
Thanks very much Greg and Sloane,

Greg- the KB code project looks worth a shot- the MySQLcode is like
French to me!

Sloane- thanks for the sage and frank advice, Ill have a good look at
the 4guys.

Cheers,
Dan


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message, you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »

Create a group - Google Groups - Google Home - Terms of Service - Privacy Policy
©2008 Google