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

Popular posts from this blog

php - Invalid Cofiguration - yii\base\InvalidConfigException - Yii2 -

How to show in django cms breadcrumbs full path? -

ruby on rails - npm error: tunneling socket could not be established, cause=connect ETIMEDOUT -