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: CS0234: The type or namespace name 'EnforcerGrades' does not exist in the namespace 'CMS.Schema.Mohandesan' (are you missing an assembly reference?)

Source Error:


Line 3:      ViewBag.Title = Model.FirstName + " " + Model.LastName;
Line 4:      Layout = "~/Views/Shared/_LayoutPages.cshtml";
Line 5:      var eg = ViewData["EnforcerGrade"] as IList<CMS.Schema.Mohandesan.EnforcerGrades>;
Line 6:      var terend = ViewData["terend"] as List<CMS.Schema.Mohandesan.TerendScema> ?? new List<CMS.Schema.Mohandesan.TerendScema>();
Line 7:      var types = ViewData["Type"] as List<CMS.Schema.Mohandesan.EnforcerInGradeSchema> ?? new List<CMS.Schema.Mohandesan.EnforcerInGradeSchema>();

Source File: C:\inetpub\wwwroot\mohandesanorg\Views\Enforcer\details.cshtml    Line: 5






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