Error while logging into the application

Mar 6, 2008 at 9:45 AM
After logging into the application for the first time, I get System.InvalidOperationException with the message as "Sequence contains no elements".

I debugged and found that this happens in file GetUserSettingActivity.cs in the Execute method

Can anyone point to what this means?

Also is there any documentation available that provides a walkthrough of the steps that I need to follow to install the application. I suspect that something might have gone wrong when i configured this on my machine.
Apr 30, 2008 at 3:36 PM
I corrected this by using .SingleOrDefault() instead of .First()

On the following lines:

newSetting.CurrentPageId = (from page in db.Pages
where page.UserId == UserGuid
select page.ID).SingleOrDefault();
//select page.ID).First();

this.CurrentPage = db.Pages.SingleOrDefault(page => page.ID == this.UserSetting.CurrentPageId);