1
Vote

Error Upon New User Registration

description

Hi,
 
When i try to Register a new user on DropThings ( http://dropthings.omaralzabir.com ), it is showing an Error that i've pasted below :
 

 

 
Error occured loading the page. Please ensure you have run the Setup page.
System.InvalidOperationException: Sequence contains more than one element
at System.Linq.Enumerable.SingleOrDefault[TSource](IEnumerable1 source)
at lambda_method(ExecutionScope )
at System.Linq.EnumerableExecutor
1.Execute()
at System.Linq.EnumerableQuery1.System.Linq.IQueryProvider.Execute[S](Expression expression)
at System.Linq.Queryable.SingleOrDefault[TSource](IQueryable
1 source)
at Dropthings.DataAccess.DropthingsDataContext.b__27[TSource,TArg0](IQueryable1 query)
at Dropthings.DataAccess.DropthingsDataContext.<>c__DisplayClass15
3.b__14(DropthingsDataContext data)
at Dropthings.DataAccess.DropthingsDataContext.InDataContext[T](SubsystemEnum subsystem, Boolean nolock, Func2 f)
at Dropthings.DataAccess.DropthingsDataContext.GetQueryResult[TSource,TArg0,TReturnType](SubsystemEnum subsystem, TArg0 arg0, Func
3 func, Func2 returnExpected)
at Dropthings.DataAccess.DropthingsDataContext.GetSingle[TSource,TArg0](SubsystemEnum subsystem, TArg0 arg0, Func
3 func)
at Dropthings.DataAccess.Repository.RoleTemplateRepository.GetRoleTemplatesByUserId(Guid userId)
at Dropthings.Business.Facade.Facade.GetRoleTemplate(Guid userGuid)
at Dropthings.Business.Facade.Facade.FirstVisitHomePage(String userName, String pageTitle, Boolean isAnonymous)
at Dropthings.Business.Facade.Facade.RepeatVisitHomePage(String userName, String pageTitle, Boolean isAnonymous)
at _Default.<>c__DisplayClass5.b__4()
at _Default.TrapDatabaseException(Action work)
Error occured loading the page. Please ensure you have run the Setup page.
System.NullReferenceException: Object reference not set to an instance of an object.
at _Default.b__0()
at _Default.TrapDatabaseException(Action work)

 
Error occured loading the page. Please ensure you have run the Setup page.
 
System.InvalidOperationException: Sequence contains more than one element
 
at System.Linq.Enumerable.SingleOrDefault[TSource](IEnumerable1 source)
 
at lambda_method(ExecutionScope )
 
at System.Linq.EnumerableExecutor
1.Execute()
 
at System.Linq.EnumerableQuery1.System.Linq.IQueryProvider.Execute[S](Expression expression)
 
at System.Linq.Queryable.SingleOrDefault[TSource](IQueryable
1 source)
 
at Dropthings.DataAccess.DropthingsDataContext.b__27[TSource,TArg0](IQueryable1 query)
 
at Dropthings.DataAccess.DropthingsDataContext.<>c__DisplayClass15
3.b__14(DropthingsDataContext data)
 
at Dropthings.DataAccess.DropthingsDataContext.InDataContext[T](SubsystemEnum subsystem, Boolean nolock, Func2 f)
 
at Dropthings.DataAccess.DropthingsDataContext.GetQueryResult[TSource,TArg0,TReturnType](SubsystemEnum subsystem, TArg0 arg0, Func
3 func, Func2 returnExpected)
 
at Dropthings.DataAccess.DropthingsDataContext.GetSingle[TSource,TArg0](SubsystemEnum subsystem, TArg0 arg0, Func
3 func)
 
at Dropthings.DataAccess.Repository.RoleTemplateRepository.GetRoleTemplatesByUserId(Guid userId)
 
at Dropthings.Business.Facade.Facade.GetRoleTemplate(Guid userGuid)
 
at Dropthings.Business.Facade.Facade.FirstVisitHomePage(String userName, String pageTitle, Boolean isAnonymous)
 
at Dropthings.Business.Facade.Facade.RepeatVisitHomePage(String userName, String pageTitle, Boolean isAnonymous)
 
at _Default.<>c__DisplayClass5.b__4()
 
at _Default.TrapDatabaseException(Action work)
 
Error occured loading the page. Please ensure you have run the Setup page.
 
System.NullReferenceException: Object reference not set to an instance of an object.
 
at _Default.b__0()
 
at _Default.TrapDatabaseException(Action work)
 

 
Upon registration, it sends me the confirmation email also, at the email address i provide, but still, its throwing this error. I downloaded the latest source code for Dropthings , and even when i try to run this project locally on my machine, and try to register a new user, it throws the same Error.
 
Does anybody know of the solution to this problem ? You can yourself experience this by Registering your self at ( http://dropthings.omaralzabir.com ), and provide me with the solution.
 
Thanks.
 
reply me at saadumair@gmail.com
 
-- SaadUmair

comments