views:

49

answers:

3

As the title says, I'm looking for recommendations for an IoC container to use with an ASP.NET 2.0 Webforms app. I believe that some containers are .NET3.5 or newer only.

+2  A: 

I would recommend Ninject - using the web extensions.

Although it uses 3.5 I think it will work in your 2.0 website.

You'll need 3.5 on the actual machine, but there is just one runtime version executing the app. - .NET Framework v2.0.

This blog, again using 3.5 forms, takes you through steps that should still work for you.

Joe R
+1  A: 

I've used Spring Framework.NET a lot and been very happy with it, but I haven't used it with ASP.NET. It has a release for .NET 2.0, and even has one for .NET 1.1!

Don Kirkby
A: 

I used StructureMap with 2.0.

I'm not sure if the latest version is still compatible, but the version I used back was just great.

eglasius