Updating System.Drawing.Common not possible

We currently have the problem that we cannot update the package “System.Drawing.Common” from 8.0.8 to because otherwise the previewer will no longer work. However, we need to update this component. Is there a workaround for this?

@mczernia,

To address this problem, you can use assembly binding redirects in your web.config file to ensure compatibility with the newer version while maintaining the functionality of the viewer. You can add or edit the System.Drawing.Common section to your web.config:

<runtime>
  <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
    <dependentAssembly>
      <assemblyIdentity name="System.Drawing.Common" publicKeyToken="cc7b13ffcd2ddd51" culture="neutral" />
      <bindingRedirect oldVersion="0.0.0.0-8.0.0.0" newVersion="8.0.0.0" />
    </dependentAssembly>
  </assemblyBinding>
</runtime>

This will ensure that the application redirects all requests for older versions of System.Drawing.Common to version 8.0.0.0, which should allow you to update the package without breaking the previewer.

If you need additional assistance, please don’t hesitate to contact us.