473,395 Members | 1,938 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

Error: 'CreateUser' is not a member of 'Membership'

I am getting this error: error BC30456: 'CreateUser' is not a member of
'Membership'.

What does that mean? Here's my code. It seems correct (no squigglies,
etc...)
' store it in db
Dim result As System.Web.Security.MembershipCreateStatus
Try
Dim newUser As MembershipUser =
Membership.CreateUser(Me.txtUsername.Text, Me.txtPassword.Text,
Me.txtEmail.Text, Me.ddlSecurityQuestion.SelectedItem.Text,
Me.txtSecurityAnswer.Text, False, result)
If newUser Is Nothing Then
Me.lblUserReject.Text = GetErrorMessage(result)
Else
Response.Redirect("ThankYouSubmitApp.aspx")
End If
Catch
Me.lblUserReject.Text = "An exception occurred creating the
user."
End Try

Thanks,
Robert
Jan 12 '06 #1
3 2005
Thanks.

I followed that example exactly. I still get a build error, 'CreateUser' is
not a member of 'Membership'...

------ Build started: Project: 1320Stompers_deploy, Configuration: Debug Any
CPU ------
C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\aspn et_compiler.exe -v
/1320Stompers -p C:\work-related\Websites\1320Stompers -u -f -d
C:\work-related\Websites\1320Stompers_deploy\1320Stompers_ deploy\Debug\
C:\work-related\Websites\1320Stompers\SubmitProfile.aspx.v b(45): error
BC30456: 'CreateUser' is not a member of 'Membership'.
Done building project "1320Stompers_deploy.wdproj" -- FAILED.
========== Build: 0 succeeded or up-to-date, 2 failed, 0 skipped ==========

Here's my code:
Dim status As MembershipCreateStatus
Try
Dim newUser As MembershipUser =
Membership.CreateUser(Me.txtUsername.Text, Me.txtPassword.Text, _
Me.txtEmail.Text,
Me.txtSecurityAnswer.Text, _
Me.txtSecurityAnswer.Text,
False, status)
If newUser Is Nothing Then
Me.lblUserReject.Text = GetErrorMessage(status)
Else
Response.Redirect("ThankYouSubmitApp.aspx")
End If
Catch
Me.lblUserReject.Text = "An exception occurred creating the
user."
End Try

I didn't like this line, I guess:

Dim newUser As MembershipUser =
Membership.CreateUser(Me.txtUsername.Text, Me.txtPassword.Text, _

I restarted VS2005 with the same result.

Any ideas?

"Henrique Mello" <hm****@gmail.com> wrote in message
news:11**********************@g44g2000cwa.googlegr oups.com...
Well, hope this helps

http://msdn2.microsoft.com/en-us/lib...atestatus.aspx

Jan 13 '06 #3
Fully qualifying it seemed to fix it...
Dim newUser As MembershipUser =
System.Web.Security.Membership.CreateUser(Me.txtUs ername.Text,

BUT, at the top I had put
Imports System.Web.Security
So that doesn't make sense....
"VB Programmer" <do**@emailme.com> wrote in message
news:Oc****************@TK2MSFTNGP09.phx.gbl...
Thanks.

I followed that example exactly. I still get a build error, 'CreateUser'
is not a member of 'Membership'...

------ Build started: Project: 1320Stompers_deploy, Configuration: Debug
Any CPU ------
C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\aspn et_compiler.exe -v
/1320Stompers -p C:\work-related\Websites\1320Stompers -u -f -d
C:\work-related\Websites\1320Stompers_deploy\1320Stompers_ deploy\Debug\
C:\work-related\Websites\1320Stompers\SubmitProfile.aspx.v b(45): error
BC30456: 'CreateUser' is not a member of 'Membership'.
Done building project "1320Stompers_deploy.wdproj" -- FAILED.
========== Build: 0 succeeded or up-to-date, 2 failed, 0 skipped
==========

Here's my code:
Dim status As MembershipCreateStatus
Try
Dim newUser As MembershipUser =
Membership.CreateUser(Me.txtUsername.Text, Me.txtPassword.Text, _
Me.txtEmail.Text,
Me.txtSecurityAnswer.Text, _

Me.txtSecurityAnswer.Text, False, status)
If newUser Is Nothing Then
Me.lblUserReject.Text = GetErrorMessage(status)
Else
Response.Redirect("ThankYouSubmitApp.aspx")
End If
Catch
Me.lblUserReject.Text = "An exception occurred creating the
user."
End Try

I didn't like this line, I guess:

Dim newUser As MembershipUser =
Membership.CreateUser(Me.txtUsername.Text, Me.txtPassword.Text, _

I restarted VS2005 with the same result.

Any ideas?

"Henrique Mello" <hm****@gmail.com> wrote in message
news:11**********************@g44g2000cwa.googlegr oups.com...
Well, hope this helps

http://msdn2.microsoft.com/en-us/lib...atestatus.aspx


Jan 13 '06 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
by: bluekite2000 | last post by:
I have Vector<complex<float> > V(5); V.rand(); Vector<float> V1(V); //specialized function here to return norm(V). This works fine Vector<double> V2(5); V2.rand(); Vector<float>...
1
by: bluekite2000 | last post by:
Here is the compilable code, along w/ the error #include<iostream> #include<complex> typedef std::complex<float> ComplexSingle; using namespace std; template<typename T> class X { private:...
3
by: Adam J Knight | last post by:
Hi all, I am in the process of creating a custom membership provider (ASP.NET 2.0): Currently I am inheriting from MembershipProvider which isn't a problem. However, the...
5
by: Pedro Sousa | last post by:
Hi, I'm trying to create an template class that represent points in all possible dimensions, what I've made until now is #ifndef _POINT_HPP_ #define _POINT_HPP_ #include <vector>
0
by: Argirop | last post by:
My app is asp.net 2.0. It works fine on my development machine. When I am deploying it to the production I get an error. --------------------- The error is: Value cannot be null. Parameter name:...
7
by: v4vijayakumar | last post by:
Is it possible to implement member object's virtual functions, in the containing class? If not, is it possible to simulate this behavior? ex: class test { protected: virtual void fun() = 0;...
1
by: Josh | last post by:
I'm having trouble resetting a password using these new fangled membership classes, can anyone tell me whats wrong with this sample? The membership user is being correctly returned. But I get a...
1
by: George2 | last post by:
Hello everyone, Why the below code segment will result in compile error? When I change code to the comment one (constructor), it can compile. The compiler is too stupid? :-) I am using...
2
by: Noor Alsawadi | last post by:
Hi, i am a student, i have knowledge in java but im still a beginner in C++ . i am doing a simple inheritance program, where my base class has a header "clockType.h" and an implementation file "clock...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.