Multiple assemblies of System.Web.Extensions in one project?

I am having problems moving a website from one server to another. It seems that the problem is related to downloading multiple versions of System.Web.Extensions. In most cases, the code uses version 3.5, but a third-party control requires version 1.0.6. I did not think it was possible, but it seems to work in this situation.

Is there a way to use the System.Web.Extensions version for the GAC site, but import version 1.0.6 DLLs only for these controls?

+3
source share
1 answer

You tried to put the assemblyBinding tag in your configuration file like this:

 <runtime>
    <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
      <dependentAssembly>
        <assemblyIdentity name="System.Web.Extensions" publicKeyToken="31bf3856ad364e35"/>
        <bindingRedirect oldVersion="1.0.0.0-1.1.0.0" newVersion="3.5.0.0"/>
      </dependentAssembly>
    </assemblyBinding>
  </runtime>
+3
source

Source: https://habr.com/ru/post/1737578/


All Articles