Showing posts with label new. Show all posts
Showing posts with label new. Show all posts

Monday, 24 November 2008

Point old dll versions to newer versions in web.config

The following web.config entry was giving me an error stating it could not find the dll:

<add assembly="System.Web.Extensions.Design, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />

The reason for it missing is because System.Web.Extensions.Design is now in the GAC with .NET 3.5 and it can not find version 1.0.61025.0.

To fix this I placed the following config entry which routes any old dll to the new dll:

<runtime>

<dependentAssembly>

<assemblyIdentity name="System.Web.Extensions.Design" publicKeyToken="31bf3856ad364e35"/>

<bindingRedirect oldVersion="1.0.0.0-1.1.0.0" newVersion="3.5.0.0"/>

dependentAssembly>

assemblyBinding>

runtime>

Make sure it is below the ConfigSections.