How can I fix "Bad IL format" Error when Publishing after UiPath.Form.Activities Install?

I added the UiPath.Form.Activities (version 1.96) to my C# UiPath Project. Now, when I publish my project, numerous Bad IL format. messages show following the INITIALIZATION: Loading dependencies (see below).

How can I resolve these Bad IL format errors?

message list:

05/20/2022 10:26:47 => [Info] INITIALIZATION: Validating arguments.
05/20/2022 10:26:47 => [Debug] INITIALIZATION: Loading dependencies.
05/20/2022 10:26:47 => [Error] Bad IL format. The format of the file ‘C:\Users\GaryR.nuget\packages\UiPath.cefsharpbundle.netcore\1.8.0\lib/net5.0-windows7.0/chrome_elf.dll’ is invalid.
05/20/2022 10:26:47 => [Error] Bad IL format. The format of the file ‘C:\Users\GaryR.nuget\packages\UiPath.cefsharpbundle.netcore\1.8.0\lib/net5.0-windows7.0/d3dcompiler_47.dll’ is invalid.
05/20/2022 10:26:47 => [Error] Bad IL format. The format of the file ‘C:\Users\GaryR.nuget\packages\UiPath.cefsharpbundle.netcore\1.8.0\lib/net5.0-windows7.0/Ijwhost.dll’ is invalid.
05/20/2022 10:26:47 => [Error] Bad IL format. The format of the file ‘C:\Users\GaryR.nuget\packages\UiPath.cefsharpbundle.netcore\1.8.0\lib/net5.0-windows7.0/libcef.dll’ is invalid.
05/20/2022 10:26:47 => [Error] Bad IL format. The format of the file ‘C:\Users\GaryR.nuget\packages\UiPath.cefsharpbundle.netcore\1.8.0\lib/net5.0-windows7.0/libEGL.dll’ is invalid.
05/20/2022 10:26:47 => [Error] Bad IL format. The format of the file ‘C:\Users\GaryR.nuget\packages\UiPath.cefsharpbundle.netcore\1.8.0\lib/net5.0-windows7.0/libGLESv2.dll’ is invalid.
05/20/2022 10:26:47 => [Error] Bad IL format. The format of the file ‘C:\Users\GaryR.nuget\packages\UiPath.cefsharpbundle.netcore\1.8.0\lib/net5.0-windows7.0/msvcp140.dll’ is invalid.
05/20/2022 10:26:47 => [Error] Bad IL format. The format of the file ‘C:\Users\GaryR.nuget\packages\UiPath.cefsharpbundle.netcore\1.8.0\lib/net5.0-windows7.0/vcruntime140.dll’ is invalid.
05/20/2022 10:26:47 => [Error] Bad IL format. The format of the file ‘C:\Users\GaryR.nuget\packages\UiPath.cefsharpbundle.netcore\1.8.0\lib/net5.0-windows7.0/vcruntime140_1.dll’ is invalid.
05/20/2022 10:26:47 => [Error] Bad IL format. The format of the file ‘C:\Users\GaryR.nuget\packages\UiPath.cefsharpbundle.netcore\1.8.0\lib/net5.0-windows7.0/vk_swiftshader.dll’ is invalid.
05/20/2022 10:26:47 => [Error] Bad IL format. The format of the file ‘C:\Users\GaryR.nuget\packages\UiPath.cefsharpbundle.netcore\1.8.0\lib/net5.0-windows7.0/vulkan-1.dll’ is invalid.
05/20/2022 10:26:47 => [Error] Bad IL format. The format of the file ‘C:\Users\GaryR.nuget\packages\UiPath.cefsharpbundle.netcore\1.8.0\lib/net5.0-windows7.0/swiftshader/libEGL.dll’ is invalid.
05/20/2022 10:26:47 => [Error] Bad IL format. The format of the file ‘C:\Users\GaryR.nuget\packages\UiPath.cefsharpbundle.netcore\1.8.0\lib/net5.0-windows7.0/swiftshader/libGLESv2.dll’ is invalid.

Additional Info:
Using Windows 11
After installation of UiPath.Form.Activities, any attempts to use Open Form Designer fail.

1 Like

did you get solution for that?

Hello @grosner,

the compilation errors are probably caused by the package UiPath.IntelligentOCR.Activities which requires UiPath.CefSharpBundle.NetCore. The latter one is the package the errors are centered around.

According to the documentation, the UiPath.IntelligentOCR.Activities are only compatible with certain versions of the UiPath.Form.Activities in the following way:

  • UiPath.IntelligentOCR.Activities version 4.10.2 is compatible only with UiPath.Form.Activities versions from 1.1.8 to 1.1.10 included, if used in the same workflow.

  • UiPath.IntelligentOCR.Activities version 4.13.0 is compatible only with UiPath.Form.Activities versions higher than or equal to 1.1.11, if used in the same workflow.

So, I recommend to check which version of UiPath.IntelligentOCR.Activities you’ve installed and to evaluate whether it is compatible with UiPath.Form.Activities (version 1.96).

Best, Emerald.

1 Like