I have implemented an architecture in MVC in which I created two projects:
1_Presentation layer
2_Controller layer
I have implemented my own controller factory. The overall logic is perfectly working in MVC4. But as I implement the same architecture in MVC5 I get the following error.
The view at '~/Views/Home/Index.cshtml' must derive from
WebViewPage
, orWebViewPage<TModel>
.
I have searched for this error and applied the possible solution but still getting the same issue.
I applied this solution The view must derive from WebViewPage, or WebViewPage<TModel> but unable to solve my problem.