I made a project where I have a basic DemoController
:
<Export(GetType(IController))> _
<ExportMetadata("controllerName", "Demo")> _
<PartCreationPolicy(CreationPolicy.NonShared)> _
Public Class DemoController Inherits Controller
Public Function Index() As ActionResult
Return View("~/Views/Demo/Index.aspx")
End Function
End Class
In my "plugin" project that has this controller, it has the path /View/Demo/Index.aspx
. When I run my main web app, I can get to the return View
line but then it says the file cannot be found.
Why would this be?
I hope this all makes sense and sorry for the poor formatting.
I should probably mention that my .aspx file is in another project than the web app. I build everything into a dll then put that into a folder in my web app project. The error I am getting is "The view '~/Views/Demo/Index.aspx' or its master was not found or no view engine supports the searched locations. The following locations were searched: ~/Views/Demo/Index.aspx"