<?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: System.Core Error when calling .NET SDK Functions from Dynamics NAV in Integration, Extension &amp; APIs</title>
    <link>https://community.qlik.com/t5/Integration-Extension-APIs/System-Core-Error-when-calling-NET-SDK-Functions-from-Dynamics/m-p/1233692#M6531</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Christopher,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;copy the mscorlib.dll (version 2.0.50727.8009), System.Core.dll (version 2.0.3.0523.6) and System.dll (version 2.0.3.0523.6) in&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; %TEMP%\Microsoft Dynamics NAV\Add-Ins.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This will solve your problem, since the dlls will be loaded by Dynamics NAV in the assembly cache.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards&lt;/P&gt;&lt;P&gt;René&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 24 Nov 2016 10:30:30 GMT</pubDate>
    <dc:creator />
    <dc:date>2016-11-24T10:30:30Z</dc:date>
    <item>
      <title>System.Core Error when calling .NET SDK Functions from Dynamics NAV</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/System-Core-Error-when-calling-NET-SDK-Functions-from-Dynamics/m-p/1233689#M6528</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;we started building a little library to get the version-no. from our qlik sense server. We wrote it into a dll because we want to connect Microsoft Dynamics NAV and Qlik Sense Server. As far I know you can call .NET-Libs from NAV (tested and it's working) but for some reason, I don't get, we can't call our connector-DLL, here's the code:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="c#" __jive_macro_name="code" class="jive_macro_code _jivemacro_uid_14788499047933234 jive_text_macro" jivemacro_uid="_14788499047933234" modifiedtitle="true"&gt;
&lt;P&gt;using System;&lt;/P&gt;
&lt;P&gt;using System.Collections.Generic;&lt;/P&gt;
&lt;P&gt;using System.Linq;&lt;/P&gt;
&lt;P&gt;using System.Text;&lt;/P&gt;
&lt;P&gt;using System.Threading.Tasks;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;/// &amp;lt;QlikSenseSDK&amp;gt;&lt;/P&gt;
&lt;P&gt;using Qlik.Engine;&lt;/P&gt;
&lt;P&gt;using Qlik.Engine.Extensions;&lt;/P&gt;
&lt;P&gt;using Qlik.Sense;&lt;/P&gt;
&lt;P&gt;using Qlik.Sense.Client;&lt;/P&gt;
&lt;P&gt;using Qlik.Sense.Client.Visualizations;&lt;/P&gt;
&lt;P&gt;/// &amp;lt;/QlikSenseSDK&amp;gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;namespace net2qlik&lt;/P&gt;
&lt;P&gt;{&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; public class Net2QlikConnector&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; string myHost = "&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://ourserver.ourdomain.ourtld" rel="nofollow" target="_blank"&gt;http://ourserver.ourdomain.ourtld&lt;/A&gt;&lt;SPAN&gt;";&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ILocation myLocation;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; public string Initialize()&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; try&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Uri absolutURI = new Uri(myHost);&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; myLocation = Qlik.Engine.Location.FromUri(absolutURI);&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; myLocation.AsNtlmUserViaProxy(false); //&amp;lt;- this function might cause the crash&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; string tempServerVersionNo = myLocation.Hub().ProductVersion();&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; return tempServerVersionNo;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; catch (Exception e)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; return e.ToString();&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/P&gt;
&lt;P&gt;asd}&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We commented out every line -&amp;gt; AsNtlmUserViaProxy or Autofac.dll might cause these crashes, or do you have a suggestion how to work around?&lt;/P&gt;&lt;P&gt;When we call this library in MS Dynamics NAV 2016 or 2017 we get an error that some file is not found which includes the system.core data from the .NET-Framework:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="errorsnav.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/143634_errorsnav.PNG" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Which would be the following in english:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;
&lt;P&gt;Error calling net2qlik.Net2QlikConnector.Initialize with the following message:&lt;/P&gt;
&lt;P&gt;Could not find file or assembly "System.Core, Version=2.0.5.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e, Retargetable=Yes" or one of its dependencies.&lt;/P&gt;
&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;Problem here is that we're using .NET Framework v4.5.1+ (as in the documentation recommended) but autofac or the dlls included by this functions throws us errors from old framework versions. We, f.e., have a System.Core.dll which is Version 4.0.0.0 so we can't find the error.&lt;/P&gt;&lt;P&gt;The DLL is x86 Visual Studio compiled only static references to the qlik-api which I included using the nuget-manager.&lt;/P&gt;&lt;P&gt;I can call the dll from a different .NET-App which works as I expected only Dynamics NAV causes me this troubles.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Does anyone know what to do or what I've been doing wrong?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best greetings&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Nov 2016 07:54:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/System-Core-Error-when-calling-NET-SDK-Functions-from-Dynamics/m-p/1233689#M6528</guid>
      <dc:creator>chrislemm</dc:creator>
      <dc:date>2016-11-11T07:54:58Z</dc:date>
    </item>
    <item>
      <title>Re: System.Core Error when calling .NET SDK Functions from Dynamics NAV</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/System-Core-Error-when-calling-NET-SDK-Functions-from-Dynamics/m-p/1233690#M6529</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Chirstoher,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;try to contact Prisma Informatik, they have written a Navision Qlik Integration and they are using the .NET SDK, so I believe they can answer this easily.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;bye Konrad&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Nov 2016 12:30:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/System-Core-Error-when-calling-NET-SDK-Functions-from-Dynamics/m-p/1233690#M6529</guid>
      <dc:creator>konrad_mattheis</dc:creator>
      <dc:date>2016-11-11T12:30:46Z</dc:date>
    </item>
    <item>
      <title>Re: System.Core Error when calling .NET SDK Functions from Dynamics NAV</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/System-Core-Error-when-calling-NET-SDK-Functions-from-Dynamics/m-p/1233691#M6530</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Well yes I could. But for example I don't know if they will help me building a simple connector between qlik and nav when they sell this kind of product.&lt;/P&gt;&lt;P&gt;I&amp;nbsp; hope we have someone here facing the same problems as I do.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Nov 2016 15:29:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/System-Core-Error-when-calling-NET-SDK-Functions-from-Dynamics/m-p/1233691#M6530</guid>
      <dc:creator>chrislemm</dc:creator>
      <dc:date>2016-11-18T15:29:50Z</dc:date>
    </item>
    <item>
      <title>Re: System.Core Error when calling .NET SDK Functions from Dynamics NAV</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/System-Core-Error-when-calling-NET-SDK-Functions-from-Dynamics/m-p/1233692#M6531</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Christopher,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;copy the mscorlib.dll (version 2.0.50727.8009), System.Core.dll (version 2.0.3.0523.6) and System.dll (version 2.0.3.0523.6) in&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; %TEMP%\Microsoft Dynamics NAV\Add-Ins.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This will solve your problem, since the dlls will be loaded by Dynamics NAV in the assembly cache.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards&lt;/P&gt;&lt;P&gt;René&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Nov 2016 10:30:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/System-Core-Error-when-calling-NET-SDK-Functions-from-Dynamics/m-p/1233692#M6531</guid>
      <dc:creator />
      <dc:date>2016-11-24T10:30:30Z</dc:date>
    </item>
    <item>
      <title>Re: System.Core Error when calling .NET SDK Functions from Dynamics NAV</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/System-Core-Error-when-calling-NET-SDK-Functions-from-Dynamics/m-p/1233693#M6532</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;We already tried this multiple times without an working result. We changed DLLs we've added them we replaced them with old ones etc.&lt;/P&gt;&lt;P&gt;What we didn't try was replacing mscorlib, system.core AND system.dll but we've troubles finding the System.Core.dll&amp;nbsp; in version 2.0.3.0523.6 and a System.dll in version 2.0.3.0523.6.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Dec 2016 06:56:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/System-Core-Error-when-calling-NET-SDK-Functions-from-Dynamics/m-p/1233693#M6532</guid>
      <dc:creator>chrislemm</dc:creator>
      <dc:date>2016-12-06T06:56:16Z</dc:date>
    </item>
    <item>
      <title>Re: System.Core Error when calling .NET SDK Functions from Dynamics NAV</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/System-Core-Error-when-calling-NET-SDK-Functions-from-Dynamics/m-p/1233694#M6533</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Having the same errors as before&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Jan 2017 06:55:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/System-Core-Error-when-calling-NET-SDK-Functions-from-Dynamics/m-p/1233694#M6533</guid>
      <dc:creator>chrislemm</dc:creator>
      <dc:date>2017-01-05T06:55:51Z</dc:date>
    </item>
    <item>
      <title>Re: System.Core Error when calling .NET SDK Functions from Dynamics NAV</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/System-Core-Error-when-calling-NET-SDK-Functions-from-Dynamics/m-p/1233695#M6534</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;did you find a solution to your problem ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Oct 2017 08:02:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/System-Core-Error-when-calling-NET-SDK-Functions-from-Dynamics/m-p/1233695#M6534</guid>
      <dc:creator />
      <dc:date>2017-10-20T08:02:49Z</dc:date>
    </item>
  </channel>
</rss>

