In my view, I am trying to loop through a LINQ object, which is part of my view model. Today it worked perfectly with VS2010 RC and .NET 4.0 RC.
<% if (Model.User.RoleList.Count > 0 ) { %>
<% foreach (var role in Model.User.RoleList) { %>
<%: role.Name %><br />
<% } %>
<% } else { %>
<em>None</em><br />
<% } %>
He used to use a list of role names. No data or code has changed. Just software upgrade from RC to RTM.
The error I am getting is this:
\ Views \ Users \ Details.aspx (67): error CS0012: Type 'System.Data.Linq.EntitySet`1' is defined in an assembly that is not referenced. You must add a reference to the assembly "System.Data.Linq, Version = 4.0.0.0, Culture = neutral, PublicKeyToken = b77a5c561934e089".
But it refers to System.Data.Linq. I see it there in the list of links. I tried to remove it and re-add, but I get the same error.
?