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: CS0120: An object reference is required for the non-static field, method, or property 'Junki.Core.Helpers.ImagePathHelper.Get(Junki.Core.Enums.PhotoFileType, int, System.Guid, string, bool)'

Source Error:


Line 19:                 <div class="TopPhoto">
Line 20:                     
Line 21:                     <a data-lightbox="image-1" href="@Url.Content(Junki.Core.Helpers.ImagePathHelper.Get(Junki.Core.Enums.PhotoFileType.Photo, Model.CurrentPhoto.Id, Model.CurrentPhoto.Guid ?? Guid.Empty, Model.CurrentPhoto.FileName))">
Line 22:                         
Line 23:                     <img src="@Url.Content(Junki.Core.Helpers.ImagePathHelper.Get(Junki.Core.Enums.PhotoFileType.Photo, Model.CurrentPhoto.Id, Model.CurrentPhoto.Guid ?? Guid.Empty, Model.CurrentPhoto.FileName))" />

Source File: c:\home\site\wwwroot\Views\Home\TopPhoto.cshtml    Line: 21






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