home writing speaking about contact rss
back to overview
· 1 min read

Supporting multiple versions of assemblies

Remove the xmlns tag: "http://schemas.microsoft.com/.NetConfiguration/v2.0" from the tag which can be found in the beginning of the web.config. Add the following code in the section of the web.config below the : Note: you can find the public key token by running the following command from the "Visual Studio 200x Command Prompt" sn.exe -T myDLL.dll.


Remove the xmlns tag: "http://schemas.microsoft.com/.NetConfiguration/v2.0" from the <configuration> tag which can be found in the beginning of the web.config.
 

Add the following code in the <configuration> section of the web.config below the <configSecionts>:
 

<runtime>
 <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
  <dependentAssembly>
   <assemblyIdentity name="CMS.WorkflowEngine" publicKeyToken="834b12a258f213f9" culture="neutral" />
   <bindingRedirect oldVersion="4.1.3518.21555" newVersion="4.1.3603.27471" />
  </dependentAssembly>
 </assemblyBinding>
</runtime> 
 

Note: you can find the public key token by running the following command from the "Visual Studio 200x Command Prompt"

sn.exe -T myDLL.dll.