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

  • SEARCH
  • Home
  • 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 3807970
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 19, 20262026-05-19T15:04:28+00:00 2026-05-19T15:04:28+00:00

new to .net so still learning….I have managed to get ASP.NET Membership mainly working

  • 0

new to .net so still learning….I have managed to get ASP.NET Membership mainly working with my SQL server.

The problem i’m having is I get an error in VS2010 in my code behind file when attempting to create a user. I get a Red Exclamation mark appear on .CreateUser on the code below.

Error Message:

Reference required to assembly 'System.Web.Security.ApplicationServices, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e65' containing the type 'System.Web.Security.MembershipUser'. Add one to your project.

Code:

    Protected Sub Button1_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles Button1.Click
    Try
        Membership.CreateUser(r_user_name.Text, r_password.Text)
        Label1.Text = "User created"

        'Response.Redirect("default.aspx")

    Catch ex As Exception
        Label1.Text = "Error"
    End Try

I’ve tried adding the following to the web.config:

Not sure if thats correct!! but i get an error message when I open the page:

Parser Error Message: Could not load file or assembly 'System.Web.Security.MembershipUser\, System.Web.ApplicationServices\, Version\=4.0.0.0\, Culture\=neutral\, PublicKeyToken\=31bf3856ad364e65' or one of its dependencies. The given assembly name or codebase was invalid. (Exception from HRESULT: 0x80131047)

Thanks for any help.

J.

  • 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-19T15:04:29+00:00Added an answer on May 19, 2026 at 3:04 pm

    Sounds like you haven’t actually added the reference, though. Right-click on the project, select Add Reference, and navigate through the .NET libraries to find that assembly.

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

Sidebar

Related Questions

I am still learning ASP.NET MVC. With webforms, I would create a new folder
Question ONE: I'm still pretty new to .net, but have used Visual Studio for
I still new using Asp.net with vb.net Protected Sub login_Click(ByVal sender As Object, ByVal
learning about loops (still a beginner) in VB.net. I have got the below code
I am new to asp.net. I am learning SignalR, going through this tutorial .
I'm new to .net and c# and want to connect Sql server express available
I'm fairly new to ASP.NET MVC and still getting used to some of the
I am still struggling with learning ASP.NET MVC. All my form entries are required
So, I am kinda new to ASP.net development still, and I already don't like
I'm really new to .NET, and I still didn't get the hang about how

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.