Persistent Dependency Conflict with System.Drawing.Common (BC32207)

Hello UiPath Community,

I’m encountering a persistent validation error in my project and I’m hoping someone can provide some guidance. The error is a dependency conflict related to System.Drawing.Common.

The Error:

When I try to run my workflow, I get the following validation error:

Text

RuleName: Validation Error Code: ERROR Description: No compiled code to run error BC32207: The project currently contains references to more than one version of ‘System.Drawing.Common’, a direct reference to version 8.0.0.0 and an indirect reference to version 9.0.0.0. Change the direct reference to use version 9.0.0.0 (or higher) of System.Drawing.Common. File: Main.xaml

Project Context:

My project uses the ZXing.Net and ZXing.Net.Bindings.Windows.Compatibility packages to decode QR codes from image files within an Invoke Code activity. The error started appearing after adding these packages.

Troubleshooting Steps I’ve Already Taken:

I have already tried several steps to resolve this, without success:

  1. Updating System.Drawing.Common:

I tried updating the

System.Drawing.Common

package directly to version 9.0.0.0 as suggested by the error message.

  1. Updating ZXing Packages:

I updated both

ZXing.Net

and

ZXing.Net.Bindings.Windows.Compatibility

to their latest available versions.

  1. Downgrading System.Drawing.Common:

I also tried downgrading

System.Drawing.Common

to version 8.0.0.0 to see if aligning with the older version would help.

Unfortunately, the error persists after each of these attempts. It seems there is a stubborn conflict that I can’t resolve through the standard package management options.

Could anyone suggest a different approach to resolve this version conflict? Any help would be greatly appreciated!

Thank you!

@13631390123

Which ever two packages are creating this issue try to downgrade or upgrade one of them to match the other version

for example if system activities and zing are creating issue and system is having 8 and zing is having 9..then try to upgrade system to match with 9 if it exists else try to downgrade zing to come to 8

cheers

Hi Anil_G,it was Resolved as per your suggestion. Downgrade.
Thanks.

1 Like

@13631390123

Glad it helped

Happy Automation