InvalidOperationException: Sequence contains no elements.

Jul 26, 2008 at 11:27 PM
Hi all

I've just downloaded and compiled the release 1.6.0

When I log in for the first time, I have the following error:
InvalidOperationException: Sequence contains no elements (\DashboardBusiness\Activities\GetUserSettingActivity.cs, line 72)
Line 72 :                         newSetting.CurrentPageId = (from page in db.Pages
Line 73 : where page.UserId == UserGuid
Line 74 : select page.ID).First();

I think it's because the datable Page is empty.
How to fix that?

Thx for your help.

Jul 28, 2008 at 4:51 PM
Hi !

For me, this problem is caused by your browser cache. You have an old identity stocked in IE that is missing in the database (from scratch)

Delete all your history information and all will be ok.

Jul 28, 2008 at 8:49 PM
Edited Jul 28, 2008 at 8:50 PM
You were right.
I've always opened the site with FF.
I've just tried with IE (so no old identity) and it works

Thx a lot