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?
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?