Adding bindingRedirect element in web.config when upgrading from asp.net mvc 1 to asp.net mvc 2
Posted
by mallows98
on Stack Overflow
See other posts from Stack Overflow
or by mallows98
Published on 2010-03-30T02:51:27Z
Indexed on
2010/03/30
3:03 UTC
Read the original article
Hit count: 631
Hi all,
I have got a question with regards to upgrading asp.net mvc applications from v1 to v2...
I've noticed in the ASP.NET MVC v2 Release notes that we need to add this code (please see below) when upgrading, but it did not state what would be the purpose of it because I've tried experimenting some of my apps to asp.net mvc 2 without adding this particular section in 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" newVersion="2.0.0.0"/>
</dependentAssembly>
</assemblyBinding>
</runtime>
Would there be implications should I not place this?
Thanks!
© Stack Overflow or respective owner