<?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 C# assembly and namespace reference question in Product Forum</title>
    <link>https://community.blueprism.com/t5/Product-Forum/C-assembly-and-namespace-reference-question/m-p/80381#M32112</link>
    <description>&lt;P&gt;edit: A colleague solved the issue by adding some references that didn't pop up for me when checking for errors. So I am not exactly sure why I was told to add the '... version=4.0...' reference when it eventually worked with a simple reference to System.Windows.Forms and one more reference which was not even mentioned for me.&lt;/P&gt;
&lt;P&gt;(I didn't find a 'delete' button for this thread so I added a short update)&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;We got a C# DLL from another development team that we should add to our VBO to directly use its APIs.&lt;/P&gt;
&lt;P&gt;The DLL is located in let's say 'c:\BluePrism\DLL\myApp.dll' since we won't be able to deploy and later regularly replace this DLL in any folder with restricted access (ie c:\program files\ ; c:\windows\system...).&lt;/P&gt;
&lt;P&gt;We have added this reference to External References in the Code Options page.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;BP then told us a specific namespace reference is missing: 'System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=xyzxyzxyz'. So we added this too, enclosed in double quotation marks. If only the namespace is used without Version=... an error message is shown when checking the code.&lt;/P&gt;
&lt;P&gt;We created a code stage with the C# code provided to us and did a code check: no errors.&lt;/P&gt;
&lt;P&gt;However, when we want to run the VBO, the page or even this particular code stage, BP refuses with an error message. When checking the object for errors:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="23157.png"&gt;&lt;img src="https://community.blueprism.com/t5/image/serverpage/image-id/23292i7C9FF7DCE743F13B/image-size/large?v=v2&amp;amp;px=999" role="button" title="23157.png" alt="23157.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;The page Initialize has Start -&amp;gt; End stages only. There is no Stage1 so this must refer to something internal to BP.&lt;/P&gt;
&lt;P&gt;Error checking the code stage show no issues.&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;When removing the additional parameter from the namespace, this error does not show up anymore but the code stage fails because of the missing namespace reference.&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;Any ideas on how we can enable the usage of this DLL in BP?&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;Thanks in advance&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Walter Koller&lt;BR /&gt;Solution Manager&lt;BR /&gt;Erste Digital / Erste Group Bank&lt;BR /&gt;Europe/Vienna&lt;BR /&gt;------------------------------&lt;/P&gt;</description>
    <pubDate>Wed, 08 Nov 2023 10:00:00 GMT</pubDate>
    <dc:creator>Walter.Koller</dc:creator>
    <dc:date>2023-11-08T10:00:00Z</dc:date>
    <item>
      <title>C# assembly and namespace reference question</title>
      <link>https://community.blueprism.com/t5/Product-Forum/C-assembly-and-namespace-reference-question/m-p/80381#M32112</link>
      <description>&lt;P&gt;edit: A colleague solved the issue by adding some references that didn't pop up for me when checking for errors. So I am not exactly sure why I was told to add the '... version=4.0...' reference when it eventually worked with a simple reference to System.Windows.Forms and one more reference which was not even mentioned for me.&lt;/P&gt;
&lt;P&gt;(I didn't find a 'delete' button for this thread so I added a short update)&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;We got a C# DLL from another development team that we should add to our VBO to directly use its APIs.&lt;/P&gt;
&lt;P&gt;The DLL is located in let's say 'c:\BluePrism\DLL\myApp.dll' since we won't be able to deploy and later regularly replace this DLL in any folder with restricted access (ie c:\program files\ ; c:\windows\system...).&lt;/P&gt;
&lt;P&gt;We have added this reference to External References in the Code Options page.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;BP then told us a specific namespace reference is missing: 'System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=xyzxyzxyz'. So we added this too, enclosed in double quotation marks. If only the namespace is used without Version=... an error message is shown when checking the code.&lt;/P&gt;
&lt;P&gt;We created a code stage with the C# code provided to us and did a code check: no errors.&lt;/P&gt;
&lt;P&gt;However, when we want to run the VBO, the page or even this particular code stage, BP refuses with an error message. When checking the object for errors:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="23157.png"&gt;&lt;img src="https://community.blueprism.com/t5/image/serverpage/image-id/23292i7C9FF7DCE743F13B/image-size/large?v=v2&amp;amp;px=999" role="button" title="23157.png" alt="23157.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;The page Initialize has Start -&amp;gt; End stages only. There is no Stage1 so this must refer to something internal to BP.&lt;/P&gt;
&lt;P&gt;Error checking the code stage show no issues.&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;When removing the additional parameter from the namespace, this error does not show up anymore but the code stage fails because of the missing namespace reference.&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;Any ideas on how we can enable the usage of this DLL in BP?&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;Thanks in advance&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Walter Koller&lt;BR /&gt;Solution Manager&lt;BR /&gt;Erste Digital / Erste Group Bank&lt;BR /&gt;Europe/Vienna&lt;BR /&gt;------------------------------&lt;/P&gt;</description>
      <pubDate>Wed, 08 Nov 2023 10:00:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/C-assembly-and-namespace-reference-question/m-p/80381#M32112</guid>
      <dc:creator>Walter.Koller</dc:creator>
      <dc:date>2023-11-08T10:00:00Z</dc:date>
    </item>
  </channel>
</rss>

