System.Web.Security.MembershipCreateUserException Class

The exception that is thrown when a user is not successfully created by a membership provider.

See Also: MembershipCreateUserException Members


public class MembershipCreateUserException : Exception


An instance of the System.Web.Security.MembershipCreateUserException class is thrown when a erload:System.Web.Security.Membership.CreateUser operation fails.


If you are not familiar with the membership features of ASP.NET, see Introduction to Membership before continuing. For a list of other topics related to membership, see Managing Users By Using Membership.

The MembershipCreateUserException.StatusCode property indicates the reason for the exception so you can handle it appropriately.


Namespace: System.Web.Security
Assembly: System.Web (in System.Web.dll)
Assembly Versions:
Since: .NET 2.0