Ok I got a strange issue that I hope someone could help with
I have a MVC project based upon this demo
http://blogs.msdn.com/hammett/archive/2009/04/23/mef-and-asp-net-mvc-sample.aspx
However it has a problem when specifying 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 tracked it down to it having to with when you specify the path to the view like so
return View("~/Modules/Forums/Index.aspx",data);
it gives you that error but if you put the view under the normal path which in this case would be "~Views/Forum/Index.aspx .... it works fine when specifying the return like so
return View(data);
so why would it matter it obviously is something to with the way the view engine works and the fact that the controller is actually external to the application...Help please!
Edit: The ForumData is actually ForumExtention.ForumData, I made a mistake when I generated the error to cut and paste but it does the same thing no matter what.. I just needed to get the point accross..
Update: The sample in the link I provided works fine thats because its not using a strongly typed view...Check out the actual code I was playing with by downloading it from here
http://mysql.netpmg.com/MVCandMEF.zip
http://mysql.netpmg.com/forumdb.zip
Rename the foumdb.zip to *.bak it's a SQLEXPRESS 2008 DB backup.