This project is read-only.

Error Running for First Time - Bad Install?


I am getting the following error running the Portal project in VS 2013 for the first time:
InvalidOperationEsception was unhandled by user code
Additional Information: Sequence contains no matching element

at line 21 of GlobalDB.cs.

return _items.Single(i => i.PortalId == portalId);

Is this a database issue? It took some manual editing to get entries into the Portal_Events and Portal_Documents tables. I'm not fully understanding what that line of code is doing, but it seems that the i.PortalID is null or missing.

My Environment: a fresh install of:
***Windows Server 2008 R2 Standard
***SQL Server 2008 R2
***Visual Studio Premium, 2013 .NET Framework 4.5

Any help would be appreciated.