2

Is there any IOC container that already implements a controller factory compatible with asp.net mvc 2.0 ....if so i'll move my projects to 2.0 to test... Anyone know a good reference about it?

2
  • Personally, I don't like Unity but I'll take a good look in contrib....I'll post the results when I Can...any reference article on how to use It? Commented Dec 18, 2009 at 5:32
  • I'd recommend StructureMap. Breeze to work with. Commented Dec 18, 2009 at 17:17

3 Answers 3

2

We're using NInject and it works like a charm, too. I compiled it with MVC2 RTM and it works even with that.

Sign up to request clarification or add additional context in comments.

Comments

0

MVCContrib has four different flavors for you ( StructureMap, Windsor, Spring.Net, Unity ) http://github.com/mvccontrib/MvcContrib/tree/mvc2/src/

Here is a direct link to the Unity one: http://github.com/mvccontrib/MvcContrib/blob/mvc2/src/MvcContrib.Unity/UnityControllerFactory.cs

Comments

0

Good question. I migrated a project to ASP.NEt MVC 2 using Castle Windsor as IoC container. Been struggling to get areas to work to no avail. Keep getting System.ArgumentNullException exceptions. Other than this, everything works as expected...

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.