Solved

MySQL and ASP .NET membership (site admin) Problem

Posted on 2010-11-10
6
1,139 Views
Last Modified: 2012-05-10
i'm including my webconfig file for this question. when i try to test my provider (any of them) from the provider tab in the website administration tool i get the following error:

Provider Management
Could not establish a connection to the database.
If you have not yet created the SQL Server database, exit the Web Site Administration tool, use the aspnet_regsql command-line utility to create and configure the database, and then return to this tool to set the provider.

i'm using a MySql database (trying to anyway) i'm wondering if i don't have something correct in my config file.

on the security tab i get this error:

The following message may help in diagnosing the problem: Unable to initialize provider. Missing or incorrect schema. (C:\src\StudyTimeTracker\web.config line 23).

i'm using .NET 3.5 or higher, MySQL connector 5.2.7 (have also tried with 6.3), MySQL Workbench 5.2. I found a script that I ran to auto generate the tables in my MySQL db, although when I follow instructions on the various popular links out there, they all tell me that the schema should be autogenerated via the inclusion of the ' autogenerateschema="true" ' property that i add in my web config to the membership and other providers. i'll post the links to the various places that i've already been in a follow up to this one. this is a repost of a similar question but with a few more details

what am i doing wrong? webconfig.txt
0
Comment
Question by:mikesExpertExchange
  • 5
6 Comments
 
LVL 1

Accepted Solution

by:
mikesExpertExchange earned 0 total points
Comment Utility
here are some links i've already visited:
http://www.marvinpalmer.com/MarvinPalmer/post/Implement-NET-Membership-and-Roles-using-MySql-Connector-523-on-GoDaddy.aspx#r4

http://blog.nolanbailey.com/2008/03/08/mysql-aspnet-membership-and-role-provider/194

there is another popular link that i don't have available to me right now but the site with the instructions has an all blue (maybe aqua blue background) on it and i'm sure it would be stumbled upon easily not that it helps right here or gives any clue as to which site but just thought i'd throw it out there...sorry about the vagueness of that...
0
 
LVL 41

Expert Comment

by:guru_sami
Comment Utility
I haven't used MySql membership provider, but let me ask you, are you able to create users or do anything related to membership?
0
 
LVL 1

Author Comment

by:mikesExpertExchange
Comment Utility
i'm not able to do anything....
0
IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

 
LVL 1

Author Comment

by:mikesExpertExchange
Comment Utility
in my opinion, and its just my humble (probably unfounded) opinion, based solely on the message that i'm getting for some reason the providers can't find the database (or the schema) as it should, but i don't know why. I'm not sure if its a MySQL connector issue, or if the providers are not configured correctly in the webcofig file etc....
0
 
LVL 1

Author Comment

by:mikesExpertExchange
Comment Utility
also, all of the help (links) that i find are for ASP. NET 2.0. is there a problem with MySQL, the membership provider / site administrator and ASP NET 3.5/4.0?
0
 
LVL 1

Author Closing Comment

by:mikesExpertExchange
Comment Utility
i have no explanation as to how or why but all of a sudden it works now. i made a minor tweek to the membership provider and it seemed to work.
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Today I had a very interesting conundrum that had to get solved quickly. Needless to say, it wasn't resolved quickly because when we needed it we were very rushed, but as soon as the conference call was over and I took a step back I saw the correct …
Why do we like using grid based layouts in website design? Let's look at the live examples of websites and compare them to grid based WordPress themes.
Explain concepts important to validation of email addresses with regular expressions. Applies to most languages/tools that uses regular expressions. Consider email address RFCs: Look at HTML5 form input element (with type=email) regex pattern: T…
The viewer will learn how to dynamically set the form action using jQuery.

763 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

9 Experts available now in Live!

Get 1:1 Help Now