<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Loading DLL files from PATH does not seem to work in Product Forum</title>
    <link>https://community.blueprism.com/t5/Product-Forum/Loading-DLL-files-from-PATH-does-not-seem-to-work/m-p/50093#M5383</link>
    <description>Hi,

In most forum posts, it seems the people typically move their external DLL files into the folder "C:\Program Files\Blue Prism Limited\Blue Prism Automate". However, according to Knowledge Base articles* this should not be a requirement -- it should be enough to put the DLL into a folder that's in %PATH%.

However, I'm still getting error, although I have added the correct folder to %PATH%. Also, Blue Prism has been restarted. In this case, I'm trying to automate WinSCP (since it seems very convenient to use a code stage for that application). The error message is: "CODE: 'Code1' Process: 'SFTP-WinSCP' Subsheet: 'Upload files' ERROR: Internal : Could not execute code stage because exception thrown by code stage: Could not load file or assembly 'WinSCPnet, Version=1.5.7.9343, Culture=neutral, PublicKeyToken=2271ec4a3c56d0bf' or one of its dependencies. The system cannot find the file specified."

Could anyone perhaps point out any missing prerequisites? These is what I have already considered:

-I know the DLL is compatible with Blue Prism, since it works perfectly when it's in the Automate folder

-The full path to the DLL is added to the object properties (and it doesn't even contain spaces or anything)

-The folder containing the DLL is added to %PATH% in Windows (system level path)

And finally: Thanks to everyone who read through this verbose post! I suppose it's useful to discuss this topic, since it still seems to pop up quite frequently.

&amp;nbsp;

*KB References:

&lt;A href="http://portal.blueprism.com/customer-support/support-center#/path/1140188762" target="test_blank"&gt;http://portal.blueprism.com/customer-support/support-center#/path/1140188762&lt;/A&gt;

&lt;A href="http://portal.blueprism.com/customer-support/support-center#/path/1139623492" target="test_blank"&gt;http://portal.blueprism.com/customer-support/support-center#/path/1139623492&lt;/A&gt;</description>
    <pubDate>Wed, 27 Mar 2019 14:00:00 GMT</pubDate>
    <dc:creator>JukkaSalovaara</dc:creator>
    <dc:date>2019-03-27T14:00:00Z</dc:date>
    <item>
      <title>Loading DLL files from PATH does not seem to work</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Loading-DLL-files-from-PATH-does-not-seem-to-work/m-p/50093#M5383</link>
      <description>Hi,

In most forum posts, it seems the people typically move their external DLL files into the folder "C:\Program Files\Blue Prism Limited\Blue Prism Automate". However, according to Knowledge Base articles* this should not be a requirement -- it should be enough to put the DLL into a folder that's in %PATH%.

However, I'm still getting error, although I have added the correct folder to %PATH%. Also, Blue Prism has been restarted. In this case, I'm trying to automate WinSCP (since it seems very convenient to use a code stage for that application). The error message is: "CODE: 'Code1' Process: 'SFTP-WinSCP' Subsheet: 'Upload files' ERROR: Internal : Could not execute code stage because exception thrown by code stage: Could not load file or assembly 'WinSCPnet, Version=1.5.7.9343, Culture=neutral, PublicKeyToken=2271ec4a3c56d0bf' or one of its dependencies. The system cannot find the file specified."

Could anyone perhaps point out any missing prerequisites? These is what I have already considered:

-I know the DLL is compatible with Blue Prism, since it works perfectly when it's in the Automate folder

-The full path to the DLL is added to the object properties (and it doesn't even contain spaces or anything)

-The folder containing the DLL is added to %PATH% in Windows (system level path)

And finally: Thanks to everyone who read through this verbose post! I suppose it's useful to discuss this topic, since it still seems to pop up quite frequently.

&amp;nbsp;

*KB References:

&lt;A href="http://portal.blueprism.com/customer-support/support-center#/path/1140188762" target="test_blank"&gt;http://portal.blueprism.com/customer-support/support-center#/path/1140188762&lt;/A&gt;

&lt;A href="http://portal.blueprism.com/customer-support/support-center#/path/1139623492" target="test_blank"&gt;http://portal.blueprism.com/customer-support/support-center#/path/1139623492&lt;/A&gt;</description>
      <pubDate>Wed, 27 Mar 2019 14:00:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Loading-DLL-files-from-PATH-does-not-seem-to-work/m-p/50093#M5383</guid>
      <dc:creator>JukkaSalovaara</dc:creator>
      <dc:date>2019-03-27T14:00:00Z</dc:date>
    </item>
    <item>
      <title>Hi, jukka,
unfortunately, I…</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Loading-DLL-files-from-PATH-does-not-seem-to-work/m-p/50094#M5384</link>
      <description>Hi, jukka,
unfortunately, I do not have any resolution for you. I can just share my experience which is the same as you described. What I know that for some dll files&amp;nbsp;it works when there is a reference to their home directory but for example pdfclown dll must reside in Blue Prism Automate folder otherwise it does not work. I have other examples where it works fine when dll resides outside Blue Prism Automate so it seems that the issue might be a combination of dll how it is assembled and how Blue Prism calls that dll. Who knows you need to go through this via Try&amp;amp;Error and then live with that.
Regards,
&amp;nbsp;
Zdenek</description>
      <pubDate>Tue, 02 Apr 2019 14:06:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Loading-DLL-files-from-PATH-does-not-seem-to-work/m-p/50094#M5384</guid>
      <dc:creator>zdenek.kabatek</dc:creator>
      <dc:date>2019-04-02T14:06:00Z</dc:date>
    </item>
  </channel>
</rss>

