c# - Find cause of multiple System.Web.Mvc references -
using dotpeek examine references of main assembly of web project, see:
system.web.mvc, version=5.0.0.0, culture=neutral, publickeytoken=31bf3856ad364e35 system.web.mvc, version=5.2.3.0, culture=neutral, publickeytoken=31bf3856ad364e35
the project references in visual studio shows version 5.2.3.0. i've searched .csproj files of referenced projects.
manage nuget packages shows v5.2.3 of microsoft.aspnet.mvc.
searching packages
folder finds v5.2.30128.0 under microsoft.aspnet.mvc.5.2.3\lib\net45
.
gacutil /l system.web.mvc
shows versions 3.0.0.0 , 4.0.0.0.
i've looked through other references dotpeek's references hierarchy , didn't find old version.
per reply checked web.config; present:
<dependentassembly> <assemblyidentity name="system.web.mvc" publickeytoken="31bf3856ad364e35" /> <bindingredirect oldversion="0.0.0.0-5.2.3.0" newversion="5.2.3.0" /> </dependentassembly>
i checked other web.configs conflicting versions.
in addition tried setting specific version true in system.web.mvc reference properties. made no difference.
are multiple versions expected? if not, how can find , remove source of old version?
try adding web.config
<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.3.0" newversion="5.2.3.0" /> </dependentassembly> </assemblybinding> </runtime>
this test application version (from 1-5.2.3) of system.web.mvc referenced in application use 5.2.3.0 instead. more have reference still looking specific version of 5.0. burns me time json.net.
Comments
Post a Comment