Server Error in '/' Application.

Compilation Error

Description: An error occurred during the compilation of a resource required to service this request. Please review the following specific error details and modify your source code appropriately.

Compiler Error Message: CS1061: 'MyBuyList.Shared.Entities.Menu' does not contain a definition for 'UserFavoriteMenus' and no extension method 'UserFavoriteMenus' accepting a first argument of type 'MyBuyList.Shared.Entities.Menu' could be found (are you missing a using directive or an assembly reference?)

Source Error:


Line 259:                                              PublishDate = m.ModifiedDate.ToString("dd/MM/yyyy"),
Line 260:                                              MenuThumbnail = ResolveUrl(m.Picture != null ? string.Format("~/ShowPicture.ashx?MenuId={0}", m.MenuId) : "~/Images/Img_Default_small.jpg"),
Line 261:                                              IsInFavorites = (m.UserFavoriteMenus.SingleOrDefault(ufm => ufm.UserId == ((BasePage)this.Page).UserId) != null),
Line 262:                                              NumUserFavorites = m.UserFavoriteMenus.Count
Line 263:                                          };

Source File: g:\pleskvhosts\mybuylist.com\httpdocs\Menus.aspx.cs    Line: 261






Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.8.4700.0