Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 3871808
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 19, 20262026-05-19T21:51:34+00:00 2026-05-19T21:51:34+00:00

Im trying switch the Visual Studio asp.net mvc web app template to use MySql

  • 0

Im trying switch the Visual Studio asp.net mvc web app template to use MySql for user auth. So far iv installed mysql and .net connectors, created a custom membership provider (although it just throws notsupported atm) and edited the web.config to use them. But no matter what I try i just keep getting the following…

“Failed to generate a user instance of
SQL Server due to failure in
retrieving the user’s local
application data path. Please make
sure the user has a local user profile
on the computer. The connection will
be closed.”

I’ve even searched the entire solution for any reference to sql to make sure its not set somewhere I was’nt expecting it too.

accompanying config is as follows…

<connectionStrings>
    <add name="MySqlMembershipConnection"
    connectionString="Data Source=server_name;
                      user id=username;
                      password=password;
                      database=database_name;"
    providerName="MySql.Data.MySqlClient"/>
</connectionStrings>

<membership>
      <providers>
        <add name="MySqlMembershipProvider" type="testmvcappp.MySqlMembershipProvider" />
      </providers>
<membership>

Thanks, Tom.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-19T21:51:34+00:00Added an answer on May 19, 2026 at 9:51 pm

    NOt sure, but a couple thoughts.

    1) It’s a generally good practice to call <clear/> in your providers list first to make sure that nothing was set in a “higher” web.config.

    2) Is your custom membership provider inheriting from ProviderBase or from the SqlMembershipProvider? If the latter, it may be calling the inherited setup methods

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm a Visual Studio .NET developer who's trying to switch to Eclipse/SpringSource Tool Suite,
I am trying to use VSDBCMD.exe (Visual Studio 2010 version) to deploy the output
I have a visual studio project which I am trying to switch over to
Trying to convince someone to switch from .NET 1.1 I saw people saying that
I'm trying to use jquery to switch between three images once you click on
Visual Studio 2010 crashes when loading Just trying to start Visual Studio 2010 to
I'm trying to use the .NET class OpenFileDialog in C++ and getting a weird
I am trying to map my Visual Studio experience onto Eclipse. Right now, I
I am trying to learn the keyboard shortcuts in Visual Studio in order to
What's the deal with Visual Studio? I tried importing the Caching App Block and

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.