Solved

MySQL and ASP .NET membership (site admin) Problem

Posted on 2010-11-10
6
1,144 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
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
DevOps Toolchain Recommendations

Read this Gartner Research Note and discover how your IT organization can automate and optimize DevOps processes using a toolchain architecture.

 
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

Master Your Team's Linux and Cloud Stack

Come see why top tech companies like Mailchimp and Media Temple use Linux Academy to build their employee training programs.

Question has a verified solution.

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

A long time ago (May 2011), I have written an article showing you how to create a DLL using Visual Studio 2005 to be hosted in SQL Server 2005. That was valid at that time and it is still valid if you are still using these versions. You can still re…
The article shows the basic steps of integrating an HTML theme template into an ASP.NET MVC project
The viewer will learn how to create and use a small PHP class to apply a watermark to an image. This video shows the viewer the setup for the PHP watermark as well as important coding language. Continue to Part 2 to learn the core code used in creat…
The is a quite short video tutorial. In this video, I'm going to show you how to create self-host WordPress blog with free hosting service.

770 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