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 ExportAttribute s and it has not worked , Either.

This is a different assembly than the main MVC project:

  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 ...}   

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 MyController class The problem is

Please look for some sample code that you can try and find out where your problem is.

Comments

Popular posts from this blog

mysql - BLOB/TEXT column 'value' used in key specification without a key length -

c# - Using Vici cool Storage with monodroid -

python - referencing a variable in another function? -