I have an MVC4 application developed with Visual Studio 2010.
Project works fine on IIS Express.
When publishing it to IIS8 and trying to access it I get an exception saying the System.Web.Mvc, Version=3.0.0.0
assembly could not be loaded.
The calling assembly is AttributeRouting.Web.Mvc
, which is a NuGet package I use.
The way I understand it, my project referes to version 4.0.0.0 of System.Web.Mvc
, while the package I'm using depends on 3.0.0.0.
If Visual Studio/IIS Express can run it perfectly, how come the published version has this problem?
I read a lot only today, but still couldn't figure it out. Is this what Binding Redirect used for?
I'm kind'a lost here, feeling like I don't really have any direction. Any advice is welcomed.
Thanks in advance, Shy.