ASP.Net Membership & Roles Using MySQL- Basics Needed.
ASP.Net Membership & Roles Using MySQL- Basics Needed.
am 11.04.2008 00:58:53 von DanWeaver
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-membersh ip-and-role-provider/194
Very good but not complete enough for my level eg:
"
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/mysqlmembershipprovid er.aspx?fid=234396&df=90&mpp=25&noise=3&sort=Position&view=Q uick&select=2476367
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/UsingMySQLWithA spnetForAuthenticationauthorization.aspx
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
Re: ASP.Net Membership & Roles Using MySQL- Basics Needed.
am 11.04.2008 01:08:10 von NoSpamMgbworld
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" wrote in message
news:76228ffb-c313-4d0c-93dd-ef2e418ae627@q24g2000prf.google groups.com...
>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-membersh ip-and-role-provider/194
> Very good but not complete enough for my level eg:
> "
>
> 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/mysqlmembershipprovid er.aspx?fid=234396&df=90&mpp=25&noise=3&sort=Position&view=Q uick&select=2476367
> 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/UsingMySQLWithA spnetForAuthenticationauthorization.aspx
> 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
Re: ASP.Net Membership & Roles Using MySQL- Basics Needed.
am 11.04.2008 12:57:26 von DanWeaver
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?
Re: ASP.Net Membership & Roles Using MySQL- Basics Needed.
am 11.04.2008 15:17:51 von DanWeaver
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 and
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?
Re: ASP.Net Membership & Roles Using MySQL- Basics Needed.
am 11.04.2008 16:19:11 von NoSpamMgbworld
First a google search yields:
http://www.codeproject.com/KB/database/mysqlmembershipprovid er.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.as px
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" wrote in message
news:00e73621-bc2e-444e-ac19-31a5390e9af3@z24g2000prf.google groups.com...
> 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 and
> 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?
>
>
>
Re: ASP.Net Membership & Roles Using MySQL- Basics Needed.
am 11.04.2008 16:35:26 von sloan
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/010307-1.aspx
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" wrote in message
news:00e73621-bc2e-444e-ac19-31a5390e9af3@z24g2000prf.google groups.com...
> 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 and
> 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?
>
>
>
Re: ASP.Net Membership & Roles Using MySQL- Basics Needed.
am 11.04.2008 19:07:24 von DanWeaver
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