InvalidOperationException: Sequence contains no elements.

Jul 26, 2008 at 10: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.
Lutece



Jul 28, 2008 at 3: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 7:49 PM
Edited Jul 28, 2008 at 7: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