C
CSharpner
I'm trying to make a customer MembershipProvider. While overrideing
the CreateUser(...) method, I get the following compiler error that
doesn't make any sense to me:
'System.Web.Security.MembershipUser.MembershipUser()' is inaccessible
due to its protection level
Here's the relavent code:
public override System.Web.Security.MembershipUser CreateUser(string
username, string password, string email, string passwordQuestion,
string passwordAnswer, bool isApproved, object providerUserKey, out
System.Web.Security.MembershipCreateStatus status)
{
// do some stuff...
MembershipUser muser = new MembershipUser(); // error is on this
line.
// do some more stuff.
return muser;
}
I'm guessing I'm doing something wrong (I'm totally new to
MembershpProviders) and may very well be going about this all wrong?
Thanks
the CreateUser(...) method, I get the following compiler error that
doesn't make any sense to me:
'System.Web.Security.MembershipUser.MembershipUser()' is inaccessible
due to its protection level
Here's the relavent code:
public override System.Web.Security.MembershipUser CreateUser(string
username, string password, string email, string passwordQuestion,
string passwordAnswer, bool isApproved, object providerUserKey, out
System.Web.Security.MembershipCreateStatus status)
{
// do some stuff...
MembershipUser muser = new MembershipUser(); // error is on this
line.
// do some more stuff.
return muser;
}
I'm guessing I'm doing something wrong (I'm totally new to
MembershpProviders) and may very well be going about this all wrong?
Thanks