When I singup a new user I a provider error. Here is the complete stack of the error -
at FitnessTrackerPlus.Web.Services.UserInformationSer vice.CreateUser(String username, String password, String email, String passwordQuestion, String passwordAnswer) in C:\Users\\All Code_New\All Code_New\Chapter 3\Chapter 3\FitnessTrackerPlus\FitnessTrackerPlus.Web\Servic es\UserInformationService.cs:line 21
at CreateUser(DomainService , Object[] )
at System.ServiceModel.DomainServices.Server.Reflecti onDomainServiceDescriptionProvider.ReflectionDomai nOperationEntry.Invoke(DomainService domainService, Object[] parameters)
at System.ServiceModel.DomainServices.Server.DomainSe rvice.Invoke(InvokeDescription invokeDescription, IEnumerable`1& validationErrors)
The above error is thrown at the following code lines -
Code:
[Invoke]
public void CreateUser(string username, string password, string email, string passwordQuestion, string passwordAnswer)
{
MembershipCreateStatus status;
UserInformation createdUser = provider.CreateUser(username, password, email, passwordQuestion, passwordAnswer, true, null, out status) as UserInformation;
if (status != MembershipCreateStatus.Success)
throw new DomainException(status.ToString());
}
Please note that there is a 'BASIC' record in the table 'account_types'.
Thanks for your help in advance.