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: 'EntityFramework.HeaderImage' does not contain a definition for 'Image' and no extension method 'Image' accepting a first argument of type 'EntityFramework.HeaderImage' could be found (are you missing a using directive or an assembly reference?)

Source Error:


Line 21:         {
Line 22:             var hImage = db.HeaderImages.SingleOrDefault(x => x.HeaderImageId == id);
Line 23:             byteArray = hImage.Image;
Line 24:         }
Line 25:         else if (from.ToLower() == "news_en")

Source File: d:\vhost\newsmart.ae\httpdocs\wcms\en\imageviewer.ashx    Line: 23






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