Blue Prism Product

 View Only
last person joined: 14 hours ago 

This community covers the core Blue Prism product.

 Blue prism PDF Toolkit VBO - System.Colletions

Maxy's profile image
Maxy posted 06-22-2022 16:34

Hi, I got the PDF Toolkit VBO, Downloaded all the .dll from the BP Guide but when I try to run the activity "PDFToDOCX", I got an error saying Jose.JWT threw an exception. -> System.IO.FileNotFoundException: Could not load file or assembly "System.Collections", Version=4.0.11.0 There also another error for 4.0.10.0, I tried to add the System.Collections.dll but still getting the same error. Anyone have an idea?

BP Version: 6.10.1​

Geoff Hirst's profile image
Geoff Hirst
Hi Maxy,

Thanks for being an SS&C Blue Prism customer and for using Blue Prism. With Blue Prism 6.10+, the dependencies sometimes differ from the dependencies used by Blue Prism. Now, to determine the dependencies used by a dll, I use a tool called .NET Dependency Walker by Workshell Ltd. this allows you to select a DLL and then understand what DLL's it uses and the versions. So, the first point to investigate is to determine what version of Jose.JWT you are using. The version I have working with 6.10.4 is 2.4.0.0.

If we can establish this, and then we can go from there.

Thanks for using Blue Prism.

regards
Geoff Hirst
Maxy's profile image
Maxy
Hi Geoff, I'm also using 2.4.0.0 for Jose.JWT
Geoff Hirst's profile image
Geoff Hirst
Hi Maxy,

OK, that's a start. Now lets be absolutely sure do you have all the dlls and their dependencies installed into the Blue Prism Automate folder? Which in the default instance is
C:\Program Files\Blue Prism Limited\Blue Prism Automate.

The PDFToolkit has a number of dependencies and some of those have dependencies of their own. The problem comes when we get to the dependencies that are part of the .NET framework that Blue Prism also uses. So, Blue prism might use x.dll version 1.2.3.4 but PDFToolkit might use x.dll version 1.2.3.3. When you are using Visual Studio, to overcome this problem we can use an assembly redirect. This isn't possible with Blue Prism so we need to trap an event. However, at this time, I just think we have a versioning issue and its not always down to the file that is listed in the error, it can be a dependency of that file. The interesting thing I noted was that my version of Jose.JWT doesn't use System.Collections. I need to ask now, do you have your Adobe credentials setup for the PDF service as this product isn't free.

Let me know how you get on working through the above.

regards
Geoff Hirst