<?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: SharePoint Client Runtime DLL error even after referencing it in Object Studio in Product Forum</title>
    <link>https://community.blueprism.com/t5/Product-Forum/SharePoint-Client-Runtime-DLL-error-even-after-referencing-it-in/m-p/73467#M26072</link>
    <description>Hi Faraz,&lt;BR /&gt;&lt;BR /&gt;Even if you're importing&amp;nbsp;&lt;STRONG&gt;Microsoft.SharePoint.Client.Runtime.dll&amp;nbsp;&lt;/STRONG&gt;the namespace associated to it is still &lt;STRONG&gt;Microsoft.SharePoint.Client&lt;/STRONG&gt;. It's confusing, I know, but while you need to import the DLL in external references, there's no&amp;nbsp;&lt;STRONG&gt;Microsoft.SharePoint.Client.Runtime&lt;/STRONG&gt; namespace to import.&lt;BR /&gt;&lt;BR /&gt;Remove the nonexistent namespace and everything should be fine.&lt;BR /&gt;&lt;BR /&gt;You can learn more about the &lt;STRONG&gt;Microsoft.SharePoint.Client&lt;/STRONG&gt; namespace &lt;A href="https://docs.microsoft.com/en-us/dotnet/api/microsoft.sharepoint.client" target="_blank" rel="noopener"&gt;here&lt;/A&gt;.&lt;BR /&gt;&lt;BR /&gt;Cheers!&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Sam Assaf&lt;BR /&gt;Senior&lt;BR /&gt;EY&lt;BR /&gt;Montreal QC&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
    <pubDate>Tue, 28 Jul 2020 01:14:00 GMT</pubDate>
    <dc:creator>SamAssaf</dc:creator>
    <dc:date>2020-07-28T01:14:00Z</dc:date>
    <item>
      <title>SharePoint Client Runtime DLL error even after referencing it in Object Studio</title>
      <link>https://community.blueprism.com/t5/Product-Forum/SharePoint-Client-Runtime-DLL-error-even-after-referencing-it-in/m-p/73466#M26071</link>
      <description>Hello,&lt;BR /&gt;&lt;BR /&gt;I am writing C# code to get all list names from SharePoint Online site. I have referenced the below given DLL's with respective namespaces. But still it is throwing error on Code Check. Can someone please assist?&lt;BR /&gt;&lt;BR /&gt;Type: Error&lt;BR /&gt;Description: Compiler error at top section line 5: The type or namespace name 'Runtime' does not exist in the namespace 'Microsoft.SharePoint.Client' (are you missing an assembly reference?)&lt;BR /&gt;&lt;BR /&gt;(All DLLs are in local Blue Prism Automate folder)&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;Microsoft.SharePoint.Client.dll&lt;BR /&gt;Microsoft.SharePoint.Client.Runtime.dll&lt;BR /&gt;System.Linq.dll&lt;BR /&gt;&lt;BR /&gt;Here is my code:&lt;BR /&gt;public string GetSPOnlineListItems(string siteurl, string username, string password)&lt;BR /&gt;{ &lt;BR /&gt;string result = ""; &lt;BR /&gt;try &lt;BR /&gt;{ &lt;BR /&gt;using(var ctx = new ClientContext(siteurl)) &lt;BR /&gt;{ &lt;BR /&gt;var passWord = new SecureString(); &lt;BR /&gt;foreach (char c in password.ToCharArray())&amp;nbsp; &lt;BR /&gt;{ &lt;BR /&gt;passWord.AppendChar(c); &lt;BR /&gt;} &lt;BR /&gt;ctx.Credentials = new SharePointOnlineCredentials(username, passWord); &lt;BR /&gt;Web web = ctx.Web; &lt;BR /&gt;ctx.Load(web.Lists, lists =&amp;gt; lists.Include(list =&amp;gt; list.Title, list =&amp;gt; list.Id)); &lt;BR /&gt;ctx.ExecuteQuery(); &lt;BR /&gt;foreach(List list in web.Lists)&amp;nbsp;&amp;nbsp; &lt;BR /&gt;{&amp;nbsp;&amp;nbsp; &lt;BR /&gt;result = result + list.Title;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; }&lt;BR /&gt; }&lt;BR /&gt; } &lt;BR /&gt;catch (Exception ex)&amp;nbsp;&amp;nbsp; {&amp;nbsp;&amp;nbsp; result = result + "Error is: " + ex.Message;&amp;nbsp;&amp;nbsp; }&amp;nbsp; &lt;BR /&gt;return result;&lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Thanks,&lt;BR /&gt;Faraz&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Wed, 01 Apr 2020 21:58:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/SharePoint-Client-Runtime-DLL-error-even-after-referencing-it-in/m-p/73466#M26071</guid>
      <dc:creator>Faraz_Ahmed_Hus</dc:creator>
      <dc:date>2020-04-01T21:58:00Z</dc:date>
    </item>
    <item>
      <title>RE: SharePoint Client Runtime DLL error even after referencing it in Object Studio</title>
      <link>https://community.blueprism.com/t5/Product-Forum/SharePoint-Client-Runtime-DLL-error-even-after-referencing-it-in/m-p/73467#M26072</link>
      <description>Hi Faraz,&lt;BR /&gt;&lt;BR /&gt;Even if you're importing&amp;nbsp;&lt;STRONG&gt;Microsoft.SharePoint.Client.Runtime.dll&amp;nbsp;&lt;/STRONG&gt;the namespace associated to it is still &lt;STRONG&gt;Microsoft.SharePoint.Client&lt;/STRONG&gt;. It's confusing, I know, but while you need to import the DLL in external references, there's no&amp;nbsp;&lt;STRONG&gt;Microsoft.SharePoint.Client.Runtime&lt;/STRONG&gt; namespace to import.&lt;BR /&gt;&lt;BR /&gt;Remove the nonexistent namespace and everything should be fine.&lt;BR /&gt;&lt;BR /&gt;You can learn more about the &lt;STRONG&gt;Microsoft.SharePoint.Client&lt;/STRONG&gt; namespace &lt;A href="https://docs.microsoft.com/en-us/dotnet/api/microsoft.sharepoint.client" target="_blank" rel="noopener"&gt;here&lt;/A&gt;.&lt;BR /&gt;&lt;BR /&gt;Cheers!&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Sam Assaf&lt;BR /&gt;Senior&lt;BR /&gt;EY&lt;BR /&gt;Montreal QC&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Tue, 28 Jul 2020 01:14:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/SharePoint-Client-Runtime-DLL-error-even-after-referencing-it-in/m-p/73467#M26072</guid>
      <dc:creator>SamAssaf</dc:creator>
      <dc:date>2020-07-28T01:14:00Z</dc:date>
    </item>
  </channel>
</rss>

