Ok i have a strange problem that i hope someone can help with
I have an MVC project based on this demo
http://blogs.msdn.com/hammett/archive/2009/04/23/mef-and-asp-net-mvc-sample.aspx
However, when setting a strongly typed view, I get this error
Parser Error Description: An error occurred during the parsing of a resource required to service this request. Please review the following specific parse error details and modify your source file appropriately. Parser Error Message: Could not load type 'System.Web.Mvc.ViewPage<ForumData>'.
I traced it before this happened, when you indicate the path to the view like this:
return View("~/Modules/Forums/Index.aspx",data);
it gives you this error, but if you put the view under the normal path, which in this case will be "~ Views / Forum / Index.aspx .... it works fine when specifying a return like this:
return View(data);
so why does it matter, it is obvious that this is due to the way the viewing engine works, and the fact that the controller is actually external to the application ... Help please!
Edit:. ForumData is actually ForumExtention.ForumData, I was wrong when I generated an error to cut and paste, but it does the same no matter what .. I just needed to get the point through ..
Update: The sample in the link I provided works fine because it does not use a strongly typed view ... Check the actual code I played with by downloading it here
http://mysql.netpmg.com/MVCandMEF.zip
http://mysql.netpmg.com/forumdb.zip
Rename foumdb.zip to * .bak this is a backup of the SQLEXPRESS 2008 database.