<?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 Re: Azure Storage Blob - Could not load file or assembly 'System.Memory in Product Forum</title>
    <link>https://community.blueprism.com/t5/Product-Forum/Azure-Storage-Blob-Could-not-load-file-or-assembly-System-Memory/m-p/102468#M49191</link>
    <description>Hi Eric,&lt;BR /&gt;I have already found it in Blue Prism folder, you can see that I put it on External References. But I still get the following error.</description>
    <pubDate>Tue, 12 Jul 2022 09:37:13 GMT</pubDate>
    <dc:creator>MateuszWojcik</dc:creator>
    <dc:date>2022-07-12T09:37:13Z</dc:date>
    <item>
      <title>Azure Storage Blob - Could not load file or assembly 'System.Memory</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Azure-Storage-Blob-Could-not-load-file-or-assembly-System-Memory/m-p/102466#M49189</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;I have written code in Visual basic to connect to Azure Storage Blob and download it.&lt;BR /&gt;It works on Visual Studio IDE but when I try to create an object based on the code I am still getting errors "could not load file or assembly.&lt;BR /&gt;The full error message:&amp;nbsp; Internal : Could not execute code stage because exception thrown by code stage: Could not load file or assembly 'System.Memory, Version=4.0.1.1, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' or one of its dependencies. The system cannot find the file specified.&lt;BR /&gt;&lt;BR /&gt;External References:&lt;BR /&gt;System.dll&lt;BR /&gt;System.Data.dll&lt;BR /&gt;System.Xml.dll&lt;BR /&gt;System.Drawing.dll&lt;BR /&gt;System.Core.dll&lt;BR /&gt;Azure.Core.dll&lt;BR /&gt;Azure.Storage.Blobs.dll&lt;BR /&gt;netstandard.dll&lt;BR /&gt;Azure.Storage.Common.dll&lt;BR /&gt;System.Runtime.dll&lt;BR /&gt;System.Memory.dll&lt;BR /&gt;&lt;BR /&gt;Namespace Imports:&lt;BR /&gt;System&lt;BR /&gt;System.Drawing&lt;BR /&gt;System.Data&lt;BR /&gt;Azure.Storage.Blobs&lt;BR /&gt;Azure.Core&lt;BR /&gt;Microsoft.VisualBasic&lt;BR /&gt;Azure&lt;BR /&gt;System.Runtime&lt;BR /&gt;&lt;BR /&gt;MyCode:&lt;BR /&gt;'Declare variables&lt;BR /&gt;Dim SAS_Token As String&lt;BR /&gt;Dim Blob_Url As String&lt;BR /&gt;Dim destination_pat As String&lt;BR /&gt;&lt;BR /&gt;'Variables&lt;BR /&gt;SAS_Token = "sv=2020-07-04&amp;amp;st=2019-03-14714%3A12%3A54Z&amp;amp;se=2025-12-31T14%3A12%3A00Z&amp;amp;sr=c&amp;amp;sp=rdl&amp;amp;sig=YTryIR1idyBn3sK720o5ZBa9TjJ7rwrBW62pV0%3D"&lt;BR /&gt;Blob_Url = "https://servernew.blob.core.windows.net/bot-new/QA/83e65d5.zip"&lt;BR /&gt;destination_pat = "C:\Users\BOT222\Desktop\New folder\test.zip"&lt;BR /&gt;&lt;BR /&gt;'Create serviceUri object&lt;BR /&gt;Dim serviceUri As New Uri(Blob_Url)&lt;BR /&gt;'Create sasCredential object&lt;BR /&gt;Dim sasCredential As New AzureSasCredential(SAS_Token)&lt;BR /&gt;'Create BlobClient object&lt;BR /&gt;Dim blobClient As New BlobClient(serviceUri, sasCredential)&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;blobClient.DownloadTo(destination_pat)&lt;BR /&gt;&lt;BR /&gt;Do you have idea what should be done to make this code works or do you have ready object to work with?&lt;BR /&gt;&lt;BR /&gt;Thank you in advance</description>
      <pubDate>Wed, 20 Apr 2022 12:07:01 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Azure-Storage-Blob-Could-not-load-file-or-assembly-System-Memory/m-p/102466#M49189</guid>
      <dc:creator>MateuszWojcik</dc:creator>
      <dc:date>2022-04-20T12:07:01Z</dc:date>
    </item>
    <item>
      <title>Re: Azure Storage Blob - Could not load file or assembly 'System.Memory</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Azure-Storage-Blob-Could-not-load-file-or-assembly-System-Memory/m-p/102467#M49190</link>
      <description>&lt;A class="user-content-mention" data-sign="@" data-contactkey="23f2a0d8-1666-45b1-9b6f-20f82f6a4cab" data-tag-text="@Mateusz Wojcik" href="https://community.blueprism.com/network/profile?UserKey=23f2a0d8-1666-45b1-9b6f-20f82f6a4cab" data-itemmentionkey="53b2b243-c2f5-40a7-b550-91607709e3c2"&gt;@Mateusz Wojcik&lt;/A&gt;,&lt;BR /&gt;&lt;BR /&gt;This error pops up from time-to-time when you start pulling in various external libraries. It comes down to a conflict between dependencies of one or more of the external libraries you're trying to use and libraries that Blue Prism is using. Starting back in v6.6, I think, Blue Prism started making heavy use of binding redirects which contributed to this.&lt;BR /&gt;&lt;BR /&gt;The solution is to find a version of the 3rd party libraries that use dependent libraries (in this case System.Memory.dll) that don't conflict with what Blue Prism expects via it's binding redirects. Here's a screenshot of the Automate.exe.config from my BP v6.10.4 installation:&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="37053.png"&gt;&lt;img src="https://community.blueprism.com/t5/image/serverpage/image-id/37065iA764AFC6969DFA22/image-size/large?v=v2&amp;amp;px=999" role="button" title="37053.png" alt="37053.png" /&gt;&lt;/span&gt;&lt;BR /&gt;You can see the reference to System.Memory.dll here and it tells you exactly what Blue Prism expects. You should also find a copy of this DLL in the Blue Prism Automate folder.&lt;BR /&gt;&lt;BR /&gt;Cheers,&lt;BR /&gt;Eric​</description>
      <pubDate>Wed, 20 Apr 2022 15:34:33 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Azure-Storage-Blob-Could-not-load-file-or-assembly-System-Memory/m-p/102467#M49190</guid>
      <dc:creator>ewilson</dc:creator>
      <dc:date>2022-04-20T15:34:33Z</dc:date>
    </item>
    <item>
      <title>Re: Azure Storage Blob - Could not load file or assembly 'System.Memory</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Azure-Storage-Blob-Could-not-load-file-or-assembly-System-Memory/m-p/102468#M49191</link>
      <description>Hi Eric,&lt;BR /&gt;I have already found it in Blue Prism folder, you can see that I put it on External References. But I still get the following error.</description>
      <pubDate>Tue, 12 Jul 2022 09:37:13 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Azure-Storage-Blob-Could-not-load-file-or-assembly-System-Memory/m-p/102468#M49191</guid>
      <dc:creator>MateuszWojcik</dc:creator>
      <dc:date>2022-07-12T09:37:13Z</dc:date>
    </item>
    <item>
      <title>Re: Azure Storage Blob - Could not load file or assembly 'System.Memory</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Azure-Storage-Blob-Could-not-load-file-or-assembly-System-Memory/m-p/102469#M49192</link>
      <description>Hi &lt;A class="user-content-mention" data-sign="@" data-contactkey="23f2a0d8-1666-45b1-9b6f-20f82f6a4cab" data-tag-text="@Mateusz Wojcik" href="https://community.blueprism.com/network/profile?UserKey=23f2a0d8-1666-45b1-9b6f-20f82f6a4cab" data-itemmentionkey="b96c8922-f062-4fd4-b623-082bae88b042"&gt;@Mateusz Wojcik&lt;/A&gt;,&lt;BR /&gt;&lt;BR /&gt;Have you made any progress on this? You mentioned that you tested this in Visual Studio and it worked. My guess is there an additional library (one referenced by System.Memory) that's at play here. You might take a look at the Debug or Release folders under your VS application and see what additional libraries are there. You could then copy those in place of any existing DLLs in the BP Automate folder. &lt;SPAN style="text-decoration: underline;"&gt;&lt;STRONG&gt;WARNING:&lt;/STRONG&gt; &lt;STRONG&gt;Just make sure you create copies of any existing DLLs before you replace them.&lt;/STRONG&gt;&lt;/SPAN&gt;​&lt;BR /&gt;&lt;BR /&gt;Cheers,&lt;BR /&gt;Eric</description>
      <pubDate>Wed, 17 Aug 2022 15:13:03 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Azure-Storage-Blob-Could-not-load-file-or-assembly-System-Memory/m-p/102469#M49192</guid>
      <dc:creator>ewilson</dc:creator>
      <dc:date>2022-08-17T15:13:03Z</dc:date>
    </item>
  </channel>
</rss>

