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 6079387
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T10:56:26+00:00 2026-05-23T10:56:26+00:00

Is there a way to change the ValidateUser method in MVC 3? For example..

  • 0

Is there a way to change the ValidateUser method in MVC 3?
For example.. require an additional parameter like an identification number or something like that?
I get the feeling this stuff is quite static…

Oh and is there a way to use another database than the existing mdf+ldf SQL database (for example a MySQL DB)?

Edit:
I’m still having trouble with setting this stuff up.

In my BOMembershipProvider class I have

using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Security;

namespace MVCTests
{
    public class BOMembershipProvider : MembershipProvider
    {
        public override string ApplicationName

and so on.
It’s located in my App_Data folder.
My Web.config looks like this:

<membership defaultProvider="BOMembershipProvider">
      <providers>
          <clear/>
          <add name="BOMembershipProvider" type="BOMembershipProvider"
               connectionStringName="ApplicationServices"
               enablePasswordRetrieval="false"
               enablePasswordReset="true"
               requiresQuestionAndAnswer="false"
               requiresUniqueEmail="false"
               maxInvalidPasswordAttempts="5"
               minRequiredPasswordLength="6"
               minRequiredNonalphanumericCharacters="0"
               passwordAttemptWindow="10"
               applicationName="/" />
      </providers>

It’s still giving me the error with the type not found thing. Any hints, solutions, …?

Oh and I tried that with MVCTests.BOMembershipProvider in the Web.config too, with no results 🙁

  • 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-23T10:56:27+00:00Added an answer on May 23, 2026 at 10:56 am

    You can write a custom Membership provider to change the behavior of ValidateUser. This will also enable you to use a different database provider.

    See http://msdn.microsoft.com/en-us/library/aa479048.aspx or google asp.net custom membership provider.

    This example of a custom membership provider that uses entity framework codefirst helped me to get started:

    http://codefirstmembership.codeplex.com/

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

Sidebar

Related Questions

Is there a way to change the default a.out to something nicer, like file.c
Is there a way to change the smarty core {if $foo} so that it
Is there any way to change the autonumber field to a number datatype, when
Is there any way to change Visual Studio Auto formatting options? Like VS by
is there any way to change the outlook(appearance shape) of UINotification Alert, like I
Is there a way to change the pathname in the source code (browsers)? http://my.domain.com/pathname/cms/wp-content/themes/themename/example/example.js
Is there any way to change standard output stream so that it is written
Is there a way to change the highlight color when something is found with
Is there any way to change something about a table cell on the iPhone
Is there any way to change the image of the reorder control that is

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.