Solved

MySQL and ASP .NET membership (site admin) Problem

Posted on 2010-11-10
6
1,153 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
[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:
mikesExpertExchange 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:mikesExpertExchange
ID: 34107304
i'm not able to do anything....
0
Secure Your WordPress Site: 5 Essential Approaches

WordPress is the web's most popular CMS, but its dominance also makes it a target for attackers. Our eBook will show you how to:

Prevent costly exploits of core and plugin vulnerabilities
Repel automated attacks
Lock down your dashboard, secure your code, and protect your users

 
LVL 1

Author Comment

by:mikesExpertExchange
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:mikesExpertExchange
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:mikesExpertExchange
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

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

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

Does your audience prefer people in photos or no people? How can you best highlight what you’re selling? What are your competitors doing, and what can you do that is different and unique from them?  Continue reading to learn how to make your images …
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…
The viewer will learn how to dynamically set the form action using jQuery.
Learn how to create flexible layouts using relative units in CSS.  New relative units added in CSS3 include vw(viewports width), vh(viewports height), vmin(minimum of viewports height and width), and vmax (maximum of viewports height and width).

734 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