asp.net mvc 3 - MEFContrib.MVC3: Exporting Controllers with Base Classes -
I have opened a question but I have not received any response.
Actually, I have a base controller that comes from all my controllers when I create a new MVC3 project, put my controllers in another assembly, and add MEFContrib.mVC3 to the project Everything works great when I deprive any controller of my base class, so they can not meet now.
I am not quite familiar with MEFContrib, to know what is okay, but I have tried to decorate my controllers This is a different assembly than the main MVC project: Edit: < / P> The counselor was absolutely right I had dependencies that were not properly marked for export and hence the controllers could not be made properly. I stepped through each of my dependencies, stepped through my dependencies, and I remembered something. Most likely there is no dependency on your Please look for some sample code that you can try and find out where your problem is. ExportAttribute s and it has not worked , Either.
Public class MyBaseController: controller {...} // This controller was not found. Public Class Home Controller: MySQL Controller {Public Action Result Index () {// Do Stuff Return View (); }} // This controller can be found Public Square Home Controller: Controller {// yada, yada, yada ...}
MyController class The problem is
Comments
Post a Comment