Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

BC30451 error

Status
Not open for further replies.

cmsbuffet

Programmer
Feb 3, 2009
173
CA
BC30451 I get this error. Membership and createStatus are not declared.

The error comes from the following line

Dim newUser As MembershipUser = _Membership.CreateUser(Username.Text, Password.Text, _Email.Text, passwordQuestion, _SecurityAnswer.Text, True, _createStatus)

It says that Membership is not declared. But I have a folder Membership, in which I have files such as CreatingUserAccounts.aspx, AdditionalUserInfo.aspx, EnhancedCreateUserWizard.aspx, UserBasedAuthorization.aspx and Guestbook.aspx.

How do I resolve the error? I looked online. Some say I have duplicate files and ASP. NET points to the wrong file and that's why I get this error. But I do not see where I could have the duplicates. Could you help me?
 
I am confused by your post.

What is the actual error message you are seeing? _Membership is not declared? (In which case, the system doenst know what _Membership is, are you missing ausing statement?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top