I ve recently started using the Areas functionality of the Preview2 and it was working ok until I needed to return a Model to the view.
Controller:
public ActionResult ForgotPassword()
{
return View(new PasswordViewModel());
}
View:
<%@ Import Namespace="Portal.Site.Areas.Logon.ViewModel"%>
<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<PasswordViewModel>" %>
Nothing to difficult here, except i consistently get the following error.
Parser Error Message: Could not load type System.Web.Mvc.ViewPage<PasswordViewModel> .
This seems to happen to any view/controller within the areas section. If I remove the return model and add use the Dictionary, it works fine.
Now I am aware of issues regarding this, as the thread describes.
http://forums.asp.net/t/1378448.aspx
I would be interested to see if anyone thinks this is areas related? (Although in a clean basic project this works). Any suggestions on solutions? Is this a bug?