Could not load file or assembly 'System.Drawing.Primitives, Version=6.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'. Format of the executable (.exe) or library (.dll) is invalid

I’m getting this error opening a project, can’t work on the main workflow.
Some one knows what is going on?
Thanks

23.4.0+Branch.master.Sha.15bc3fc85b406a32b67c536391f113e77fd95f28

Could not load file or assembly ‘System.Drawing.Primitives, Version=6.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a’. Format of the executable (.exe) or library (.dll) is invalid.

Error: System.BadImageFormatException: Could not load file or assembly ‘System.Drawing.Primitives, Version=6.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a’. Format of the executable (.exe) or library (.dll) is invalid.
File name: ‘System.Drawing.Primitives, Version=6.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a’
at UiPath.Studio.Shell.Analytics.ShellAnalyticsExtensions.TryTrackApplicationEnvironment(ITelemetryProvider telemetry, IApplicationInfoService appInfoService, ISystemInfoService systemInfoService, IShellLicenseService shellLicenseService, IThemeService themeService, IUpdateService updateInfoService, IProfile profile)
at UiPath.Studio.Shell.Views.MainWindow.<>c__DisplayClass95_0.g__FinishClose|1()
at UiPath.Studio.Shell.Views.MainWindow.OnClosing(CancelEventArgs e)
at System.Threading.Tasks.Task.<>c.b__128_0(Object state)
at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler), HResult -2147024703

Hi!

Did you solve this problem? I’m having the same thing =/…

Can you try upgrading the Studio to 23.10.7 using this link https://download.uipath.com/versions/23.10.7/UiPathStudio.msi or 23.4.8 using this link https://download.uipath.com/versions/23.4.8/UiPathStudio.msi and test the behavior after reopening the project?

If you have that pop-up in the project, press Yes.

Reference Studio - 2023.4.0

Which are the results?

Hi!

Thanks for the answer… My Studio is already 2023.10.7… But I solved my problem, I believe there was a problem with my .net 6 installation, because I opened the project on another computer and then my project opened No errors, I saved and reopened it on my computer and the problem no longer appeared… I don’t know what happened, but it resolved it…

Thank you.

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.