c# - Could not load file or assembly 'System.Web.Mvc, Version=3.0.0.0' or one of its dependencies -
i adding ninject in mvc project using following commands in package manager console:
install-package ninject -version 3.0.1.10 install-package ninject.web.common -version 3.0.0.7 install-package ninject.mvc3 -version 3.0.0.6
when run application, error this:
could not load file or assembly 'system.web.mvc, version=3.0.0.0, culture=neutral, publickeytoken=31bf3856ad364e35' or 1 of dependencies. located assembly's manifest definition not match assembly reference. (exception hresult: 0x80131040)
update application web.config file
be sure make these changes in app web.config file, not web.config file in views folder.
<runtime> <assemblybinding xmlns="urn:schemas-microsoft-com:asm.v1"> <dependentassembly> <assemblyidentity name="system.web.mvc" publickeytoken="31bf3856ad364e35" /> <bindingredirect oldversion="1.0.0.0-5.0.0.0" newversion="5.0.0.0" /> </dependentassembly> </assemblybinding> </runtime>
Comments
Post a Comment