Solved

MySQL and ASP .NET membership (site admin) Problem

Posted on 2010-11-10
6
1,150 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
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

Webinar: Aligning, Automating, Winning

Join Dan Russo, Senior Manager of Operations Intelligence, for an in-depth discussion on how Dealertrack, leading provider of integrated digital solutions for the automotive industry, transformed their DevOps processes to increase collaboration and move with greater velocity.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Mobile apps - web/native or hybrid? 1 65
VB.Net SQL Query 2 Tables Different Databases 3 43
SSIS GUID Variable 2 31
ASP.NET Built-In Report Creator / Viewer 5 19
The article shows the basic steps of integrating an HTML theme template into an ASP.NET MVC project
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 …
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…
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).

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