1

Closed

MVC4 routing issue with web api

description

In VS 12 professional and express: When trying to launch MVC4 I get: Could not load type 'System.Web.Http.RouteParameter' from assembly 'System.Web.Http, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35'.
MVC3 works fine.
When i comment with // the line WebApiConfig.Register(GlobalConfiguration.Configuration); in Global.asax it launches, but i can not use deeper Web API functionality.
I installed, reinstalled few times: .net 4.5, MVC4, visual studio 12 express and professional- but always is the same problem. I did uninstall my VS12 beta. What else to do short of throwing my old Windows 7 and reisntalling it?
Thanks!
Closed Apr 6 at 1:15 AM by HongmeiG
Please reactivate if this still repros for you.

comments

HenrikN wrote Oct 21, 2012 at 3:27 PM

Can you check that you don't have an old version in the GAC:

From a Visual Studio Command prompt running as admin, try this command:

gacutil -l system.web.http

if you get any results then delete them.

Thanks,

Henrik