MySql Membership Provider for ASP.NET Configuration

What server-side scripting support do you currently use?


  • Total voters
    5

haysoft

New Member
Messages
8
Reaction score
0
Points
0
I have been using ASP.NET successfully with x10, and I am trying to use ASP.NET's Membership System with MySql.

I downloaded and installed a local instance of MySql Community Server and read a tutorial on how to configure the MySql/NET Connector for use with the ASP.NET membership system. Everything worked fine on my local machine, but I am having trouble getting it to work on x10. I am starting to think that the Mono installation on x10 is simply not configured to use MySql for a membership provider.

What am I missing? Is ASP.NET Membership authentication possible at all with Mono and MySql?

I would greatly appreciate any help on this topic.

Thanks in advance.

David Haymond
http://dev.mysql.com/doc/refman/5.4/en/connector-net-tutorials-asp-roles.html
 

Gouri

Community Paragon
Community Support
Messages
4,565
Reaction score
245
Points
63
What are errors you are getting?
 

haysoft

New Member
Messages
8
Reaction score
0
Points
0
Here is the error I get when I programmatically attempt to validate a username and password:





Server Error in '/' Application

Object reference not set to an instance of an object

Description: HTTP 500. Error processing request.
Stack Trace:
System.NullReferenceException: Object reference not set to an instance of an object
at System.Web.Security.Membership.ValidateUser (System.String username, System.String password) [0x00000]
at HaymondSoftware.login.Button_Click (System.Object sender, System.EventArgs e) [0x00000]
at System.Web.UI.WebControls.Button.OnClick (System.EventArgs e) [0x00000]
at System.Web.UI.WebControls.Button.RaisePostBackEvent (System.String eventArgument) [0x00000]
at System.Web.UI.WebControls.Button.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent (System.String eventArgument) [0x00000]
at System.Web.UI.Page.RaisePostBackEvent (IPostBackEventHandler sourceControl, System.String eventArgument) [0x00000]
at System.Web.UI.Page.RaisePostBackEvents () [0x00000]
at System.Web.UI.Page.ProcessRaiseEvents () [0x00000]
at System.Web.UI.Page.InternalProcessRequest () [0x00000]
at System.Web.UI.Page.ProcessRequest (System.Web.HttpContext context) [0x00000] Version information: Mono Version: 2.0.50727.1433; ASP.NET Version: 2.0.50727.1433
 

haysoft

New Member
Messages
8
Reaction score
0
Points
0
MoMA didn't find any problems with it. Do you have any more suggestions?

By the way, thank you for responding so quickly.
 
Top