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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 17, 20262026-05-17T21:10:07+00:00 2026-05-17T21:10:07+00:00

I coded a custom Membership provider and I want to run some Unit tests

  • 0

I coded a custom Membership provider and I want to run some Unit tests against it. However, whenever I create a “Test” project, I can’t access MembershipCreateStatus. You may know that this is a type on an out parameter for CreateUser.

I am using VS2010 Ultimate and just can’t seem to grasp why, even when I add a reference to System.Web (and for good faith a reference to all the libs in the membership provider project), I can’t access it.

Is there something preventing it from being used in Test projects?

I am targeting 3.5 Framework.

Thanks!

  • 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-17T21:10:07+00:00Added an answer on May 17, 2026 at 9:10 pm

    Ok figured it out…

    System.Web.ApplicationServices.dll has a System.Web.Security namespace within it which contains the enum.

    MSDN still lists it being in System.Web.dll for 3.5 framework (http://msdn.microsoft.com/en-us/library/system.web.security.membershipcreatestatus(v=VS.90).aspx)

    However, I just noticed VS2010 doesn’t let you create any 3.5 framework unit tests, they force 4.0 so that’s why the difference. My membership is a 3.5 where the Enum is in System.Web and the unit test is force to 4.0 where it’s in System.Web.ApplicationServices.

    Is there a reason we can no longer create 3.5 unit tests in VS2010?

    Thanks for anyone who looked at this.

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

Sidebar

Related Questions

We have a project where a vendor produces some custom code for us and
I am creating a custom membership provider for a web app that already has
I created a custom Membership Provider which is now working in production just fine
I'm wrestling with building a custom membership provider that allows me to have the
I've got a site that uses Forms Authentication (with a custom membership provider, but
In an ASP.net application I'm using a Login control with a custom membership provider
Do I need to make a Custom Membership Provider or is there another way?
I have custom coded several enterprise applications for mid to large organizations to use
Like the title says, how do you create custom code snippets in Visual Studio
I would like to enable/disable some code based on a custom solution configuration I

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.