?
Solved

MySQL and ASP .NET membership (site admin) Problem

Posted on 2010-11-10
6
Medium Priority
?
1,165 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:Michael Sterling
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 5
6 Comments
 
LVL 1

Accepted Solution

by:
Michael Sterling earned 0 total points
ID: 34105838
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
ID: 34107037
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:Michael Sterling
ID: 34107304
i'm not able to do anything....
0
VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

 
LVL 1

Author Comment

by:Michael Sterling
ID: 34107372
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:Michael Sterling
ID: 34107434
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:Michael Sterling
ID: 34134756
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

Learn how to optimize MySQL for your business need

With the increasing importance of apps & networks in both business & personal interconnections, perfor. has become one of the key metrics of successful communication. This ebook is a hands-on business-case-driven guide to understanding MySQL query parameter tuning & database perf

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

When crafting your “Why Us” page, there are a plethora of pitfalls to avoid. Follow these five tips, and you’ll be well on your way to creating an effective page.
When the s#!t hits the fan, you don’t have time to look up who’s on call, draft emails, call collaborators, or send text messages. An instant chat window is definitely the way to go, especially one like HipChat. HipChat is a true business app. An…
Viewers will get an overview of the benefits and risks of using Bitcoin to accept payments. What Bitcoin is: Legality: Risks: Benefits: Which businesses are best suited?: Other things you should know: How to get started:
This tutorial walks through the best practices in adding a local business to Google Maps including how to properly search for duplicates, marker placement, and inputing business details. Login to your Google Account, then search for "Google Mapmaker…

718 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