Friday, March 16, 2012

Please help me understand this

public MembershipUser returnUserObject(Guid uID)
{
MembershipUser user;
try
{
user = Membership.GetUser(uID);

}
catch (Exception exception1)
{
ProjectData.SetProjectError(exception1);
Exception exception = exception1;
ProjectData.ClearProjectError();
}
return user;
}

it fails on return user; while just building the project I could see if Membership.GetUser(uID);
did not return anything it failing but it doesnt even give the chance for it to fail it just fails it

You problem statement is not clear but I thing whatI am able to get is you methodGetUser return null. If I am worng, please correct me. What should do in this case is check for theif( user == null ) .

Please make your problem statement more clear if still your problem is not solved.

0 comments:

Post a Comment