c# - Conflicts between different versions of the same dependent assembly that could not be resolved -
it seems solution using 2 different versions of system.web.mvc. question how resolve uses same version?
error 2 assembly 'sportsstore.webui, version=1.0.0.0, culture=neutral, publickeytoken=null' uses 'system.web.mvc, version=5.2.2.0, culture=neutral, publickeytoken=31bf3856ad364e35' has higher version referenced assembly 'system.web.mvc, version=5.0.0.0, culture=neutral, publickeytoken=31bf3856ad364e35'
try adding in web.config
(make sure not on write existing sections)
<runtime> <assemblybinding xmlns="urn:schemas-microsoft-com:asm.v1"> <dependentassembly> <assemblyidentity name="system.web.mvc" publickeytoken="31bf3856ad364e35" /> <bindingredirect oldversion="1.0.0.0-5.2.2.0" newversion="5.2.2.0" /> </dependentassembly> </assemblybinding> </runtime>
Comments
Post a Comment