My view is having issues finding a class located in one of my references. This reference is to a dll built outside of the project.
The view always gives error:
The type or namespace name 'Company' could not be found (are you missing a using directive or an assembly reference)
Here is the controller. No issues there.
using Company.Entities;
public ActionResult Find()
{
Person test = Person.SelectByADDistinguishedName("L*", false);
return View(test);
}
Here is the View. The error occurs in the @Model
line.
@model Company.Entities.Person
@{
ViewBag.Title = "Bob";
}
Find
My Views/Web.config currently looks like this
I've checked similar threads like this one but to no avail.
Here is the message on the screen
Line 25: using System.Web.Mvc.Html; Line 26: using System.Web.Routing; Line 27: using Company.Entities; Line 28: Строка 29: Исходный файл: c: \ WINDOWS \ Microsoft.NET \ Framework \ v4.0.30319 \ Temporary ASP.NET
Files \ root \ 49c9c7db \ 1f9dd5c8 \ App_Web_find.cshtml.a8d08dba.xro6gxci.0.cs Line: 27
If I strip out any mention of the assembly (out of web.config - no @using statments). I get the same error message when loaded but against this line
public class _Page_Views_Home_Find_cshtml : System.Web.Mvc.WebViewPage {