Spring.Web.Mvc4 is broken by MVC 4 RC1
In MVC 4 RC1 System.Web.Http.Services.IDependencyResolver has been removed.
The following exception is rised within Spring.Web.Mvc4:
Could not load type 'System.Web.Http.Services.IDependencyResolver' from assembly 'System.Web.Http, Version=126.96.36.199, Culture=neutral, PublicKeyToken=31bf3856ad364e35
See Steve Bohlen's comments on https://jira.springsource.org/browse/SPRNET-1497 regarding IDependencyResolver duplication.
Well... it is not duplicated anymore ;-)
due to this, Spring.Web.Mvc4 sources does not compile anymore against latest MVC libraries.
Last edited by dante; 06-02-2012 at 04:45 PM.
Reason: Added Addendum
I have encountered the same issue. We would like to upgrade to the RC version of WebAPI as soon as possible. For the moment we are continuing with the beta of WebAPI but that's far from ideal.
Is there a new ticket raised to resolve this?
Or is there a workaround? I did try my own implementation of a spring mvc application (set the resolver: "GlobalConfiguration.Configuration.DependencyResol ver = resolver;" in ThreadSafeDependencyResolverRegistrar), with updated reference to the new namespace for IDepdendencyResolver. Unfortunately this did not work.
Any other suggestions?