<?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: Web sockets connectivity issue .net SDK in Connectivity &amp; Data Prep</title>
    <link>https://community.qlik.com/t5/Connectivity-Data-Prep/Web-sockets-connectivity-issue-net-SDK/m-p/1820417#M9268</link>
    <description>&lt;P&gt;I have been working with something similar but I do get an error message&lt;/P&gt;&lt;P&gt;"Exception calling "AppWithId" with "2" argument(s): "Ticket retrieval failed.""&lt;/P&gt;&lt;P&gt;When trying the line&amp;nbsp;&lt;/P&gt;&lt;P&gt;$AppIdentifiersByID = [Qlik.Engine.LocationExtensions]::AppWithId($Location,$AppID)&lt;/P&gt;&lt;P&gt;Otherwise my setup is pretty much the same. The weird thing is that it works when I run the script on my local laptop with a VPN connection, but when I am signed on the qlik server and trying the script I get the Ticket retrieval failed error. I'll continue to debug on my end, hopefully we can find a solution.&lt;/P&gt;</description>
    <pubDate>Wed, 07 Jul 2021 13:52:20 GMT</pubDate>
    <dc:creator>StevenTeng90</dc:creator>
    <dc:date>2021-07-07T13:52:20Z</dc:date>
    <item>
      <title>Web sockets connectivity issue .net SDK</title>
      <link>https://community.qlik.com/t5/Connectivity-Data-Prep/Web-sockets-connectivity-issue-net-SDK/m-p/1818740#M9218</link>
      <description>&lt;P&gt;I have been writing to get the following powershell script to work but I'm getting the error listed below it not sure what would be causing the issue. The user account that the script is running under has admin access to the instance as an administrator and is running on the server where the Qlik Sense instance is located.&amp;nbsp;&lt;/P&gt;&lt;P&gt;add-type -path "D:\QLIK\Software\TypeLib\Newtonsoft.Json\lib\net45\Newtonsoft.Json.dll"&lt;BR /&gt;add-type -path "D:\QLIK\Software\TypeLib\QlikSense.NetSDK\lib\net452\Qlik.Engine.dll"&lt;BR /&gt;add-type -path "D:\QLIK\Software\TypeLib\QlikSense.NetSDK\lib\net452\Qlik.Sense.JsonRpc.dll"&lt;BR /&gt;add-type -path "D:\QLIK\Software\TypeLib\QlikSense.NetSDK\lib\net452\Qlik.Sense.Client.dll"&lt;/P&gt;&lt;P&gt;$QlikSenseServer = "QlikSenseServer" #Name of the Qlik Sense Server&lt;BR /&gt;$SenseServerURL = "&lt;A href="https://QlikSenseUrl/" target="_blank" rel="noopener"&gt;https://QlikSenseUrl/&lt;/A&gt;"&lt;BR /&gt;$ProxyUsesSSL = $true&lt;BR /&gt;$TrustAllCerts = $true&lt;/P&gt;&lt;P&gt;$QlikCeredentials = [System.Net.CredentialCache]::DefaultNetworkCredentials&lt;/P&gt;&lt;P&gt;$Location = [Qlik.Engine.Location]::FromUri($SenseServerURL)&lt;/P&gt;&lt;P&gt;$Credentials = [Qlik.Engine.LocationExtensions]::AsNtlmUserViaProxy($Location,$ProxyUsesSSL,$QlikCeredentials,$TrustAllCerts)&lt;/P&gt;&lt;P&gt;$AppIdentifiers = [Qlik.Engine.LocationExtensions]::GetAppIdentifiers($Location)&lt;/P&gt;&lt;P&gt;Error:&lt;/P&gt;&lt;P&gt;Exception calling "GetAppIdentifiers" with "1" argument(s): "The WebSocket is in an invalid state ('Aborted') for this operation. Valid states are: 'Open, CloseReceived'"&lt;BR /&gt;At D:\QLIK\Development\PowerShell\LoadScriptAudit0.ps1:25 char:1&lt;BR /&gt;+ $AppIdentifiers = [Qlik.Engine.LocationExtensions]::GetAppIdentifiers($Location)&lt;BR /&gt;+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~&lt;BR /&gt;+ CategoryInfo : NotSpecified: (:) [], MethodInvocationException&lt;BR /&gt;+ FullyQualifiedErrorId : WebSocketException&lt;/P&gt;</description>
      <pubDate>Wed, 30 Jun 2021 06:47:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Connectivity-Data-Prep/Web-sockets-connectivity-issue-net-SDK/m-p/1818740#M9218</guid>
      <dc:creator>michasiuk</dc:creator>
      <dc:date>2021-06-30T06:47:11Z</dc:date>
    </item>
    <item>
      <title>Re: Web sockets connectivity issue .net SDK</title>
      <link>https://community.qlik.com/t5/Connectivity-Data-Prep/Web-sockets-connectivity-issue-net-SDK/m-p/1819252#M9236</link>
      <description>&lt;P&gt;I have been looking at the script in more detail for some reason the variable&amp;nbsp;&lt;SPAN&gt;$QlikCeredentials is not getting the details of the userid the script is running under.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 02 Jul 2021 04:53:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Connectivity-Data-Prep/Web-sockets-connectivity-issue-net-SDK/m-p/1819252#M9236</guid>
      <dc:creator>michasiuk</dc:creator>
      <dc:date>2021-07-02T04:53:54Z</dc:date>
    </item>
    <item>
      <title>Re: Web sockets connectivity issue .net SDK</title>
      <link>https://community.qlik.com/t5/Connectivity-Data-Prep/Web-sockets-connectivity-issue-net-SDK/m-p/1819950#M9249</link>
      <description>&lt;P&gt;Got the get-credentials part to work properly now but still the same error occuring&lt;/P&gt;</description>
      <pubDate>Tue, 06 Jul 2021 04:54:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Connectivity-Data-Prep/Web-sockets-connectivity-issue-net-SDK/m-p/1819950#M9249</guid>
      <dc:creator>michasiuk</dc:creator>
      <dc:date>2021-07-06T04:54:04Z</dc:date>
    </item>
    <item>
      <title>Re: Web sockets connectivity issue .net SDK</title>
      <link>https://community.qlik.com/t5/Connectivity-Data-Prep/Web-sockets-connectivity-issue-net-SDK/m-p/1820417#M9268</link>
      <description>&lt;P&gt;I have been working with something similar but I do get an error message&lt;/P&gt;&lt;P&gt;"Exception calling "AppWithId" with "2" argument(s): "Ticket retrieval failed.""&lt;/P&gt;&lt;P&gt;When trying the line&amp;nbsp;&lt;/P&gt;&lt;P&gt;$AppIdentifiersByID = [Qlik.Engine.LocationExtensions]::AppWithId($Location,$AppID)&lt;/P&gt;&lt;P&gt;Otherwise my setup is pretty much the same. The weird thing is that it works when I run the script on my local laptop with a VPN connection, but when I am signed on the qlik server and trying the script I get the Ticket retrieval failed error. I'll continue to debug on my end, hopefully we can find a solution.&lt;/P&gt;</description>
      <pubDate>Wed, 07 Jul 2021 13:52:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Connectivity-Data-Prep/Web-sockets-connectivity-issue-net-SDK/m-p/1820417#M9268</guid>
      <dc:creator>StevenTeng90</dc:creator>
      <dc:date>2021-07-07T13:52:20Z</dc:date>
    </item>
    <item>
      <title>Re: Web sockets connectivity issue .net SDK</title>
      <link>https://community.qlik.com/t5/Connectivity-Data-Prep/Web-sockets-connectivity-issue-net-SDK/m-p/1828730#M9430</link>
      <description>&lt;P&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/29458"&gt;@Marc&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have been following the following community post to try and view the load script.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Solved: Re: edit script load editor with .net SDK - Page 2 - Qlik Community - 1755324&lt;/P&gt;&lt;P&gt;I had a good look at the server and found that the dll's that the post told me to download are already on the server.&amp;nbsp;&lt;BR /&gt;I tried to do an add type with the already registered dlls and got a different error this time.&lt;/P&gt;&lt;P&gt;add-type : Could not load file or assembly 'file:///&lt;A target="_blank" rel="noopener"&gt;C:\Program&lt;/A&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;Files\Common Files\Qlik\Custom Data\QsAppMetadataConnector\Newtonsoft.Json.dll' or one of its dependencies. Operation is not&amp;nbsp;&lt;/P&gt;&lt;P&gt;supported. (Exception from HRESULT: 0x80131515)&lt;/P&gt;&lt;P&gt;At&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;A target="_blank" rel="noopener"&gt;D:\QLIK\Development\PowerShell\LoadScriptAudit.ps1&lt;/A&gt;:9 char:1&lt;/P&gt;&lt;P&gt;+ add-type -path "&lt;A target="_blank" rel="noopener"&gt;C:\Program&lt;/A&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;Files\Common Files\Qlik\Custom Data\QsAppMetadataConn ...&lt;/P&gt;&lt;P&gt;+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; + CategoryInfo &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;: NotSpecified: (:) [Add-Type], FileLoadException&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; + FullyQualifiedErrorId : System.IO.FileLoadException,Microsoft.PowerShell.Commands.AddTypeCommand&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;add-type : Could not load file or assembly 'file:///&lt;A target="_blank" rel="noopener"&gt;C:\Program&lt;/A&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;Files\Common Files\Qlik\Custom Data\QsAppMetadataConnector\Qlik.Engine.dll' or one of its dependencies. Operation is not&amp;nbsp;&lt;/P&gt;&lt;P&gt;supported. (Exception from HRESULT: 0x80131515)&lt;/P&gt;&lt;P&gt;At&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;A target="_blank" rel="noopener"&gt;D:\QLIK\Development\PowerShell\LoadScriptAudit.ps1&lt;/A&gt;:10 char:1&lt;/P&gt;&lt;P&gt;+ add-type -path "&lt;A target="_blank" rel="noopener"&gt;C:\Program&lt;/A&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;Files\Common Files\Qlik\Custom Data\QsAppMetadataConn ...&lt;/P&gt;&lt;P&gt;+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; + CategoryInfo &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;: NotSpecified: (:) [Add-Type], FileLoadException&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; + FullyQualifiedErrorId : System.IO.FileLoadException,Microsoft.PowerShell.Commands.AddTypeCommand&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;add-type : Could not load file or assembly 'file:///&lt;A target="_blank" rel="noopener"&gt;C:\Program&lt;/A&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;Files\Common Files\Qlik\Custom Data\QsAppMetadataConnector\Qlik.Sense.JsonRpc.dll' or one of its dependencies. Operation is&amp;nbsp;&lt;/P&gt;&lt;P&gt;not supported. (Exception from HRESULT: 0x80131515)&lt;/P&gt;&lt;P&gt;At&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;A target="_blank" rel="noopener"&gt;D:\QLIK\Development\PowerShell\LoadScriptAudit.ps1&lt;/A&gt;:11 char:1&lt;/P&gt;&lt;P&gt;+ add-type -path "&lt;A target="_blank" rel="noopener"&gt;C:\Program&lt;/A&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;Files\Common Files\Qlik\Custom Data\QsAppMetadataConn ...&lt;/P&gt;&lt;P&gt;+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; + CategoryInfo &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;: NotSpecified: (:) [Add-Type], FileLoadException&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; + FullyQualifiedErrorId : System.IO.FileLoadException,Microsoft.PowerShell.Commands.AddTypeCommand&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;add-type : Could not load file or assembly 'file:///&lt;A target="_blank" rel="noopener"&gt;C:\Program&lt;/A&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;Files\Common Files\Qlik\Custom Data\QsAppMetadataConnector\Qlik.Sense.Client.dll' or one of its dependencies. Operation is not&amp;nbsp;&lt;/P&gt;&lt;P&gt;supported. (Exception from HRESULT: 0x80131515)&lt;/P&gt;&lt;P&gt;At&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;A target="_blank" rel="noopener"&gt;D:\QLIK\Development\PowerShell\LoadScriptAudit.ps1&lt;/A&gt;:12 char:1&lt;/P&gt;&lt;P&gt;+ add-type -path "&lt;A target="_blank" rel="noopener"&gt;C:\Program&lt;/A&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;Files\Common Files\Qlik\Custom Data\QsAppMetadataConn ...&lt;/P&gt;&lt;P&gt;+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; + CategoryInfo &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;: NotSpecified: (:) [Add-Type], FileLoadException&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; + FullyQualifiedErrorId : System.IO.FileLoadException,Microsoft.PowerShell.Commands.AddTypeCommand&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 16 Aug 2021 08:38:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Connectivity-Data-Prep/Web-sockets-connectivity-issue-net-SDK/m-p/1828730#M9430</guid>
      <dc:creator>michasiuk</dc:creator>
      <dc:date>2021-08-16T08:38:54Z</dc:date>
    </item>
    <item>
      <title>Re: Web sockets connectivity issue .net SDK</title>
      <link>https://community.qlik.com/t5/Connectivity-Data-Prep/Web-sockets-connectivity-issue-net-SDK/m-p/1828732#M9431</link>
      <description>&lt;P&gt;This is the post that I was following:&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/t5/Connectivity-Data-Prep/Web-sockets-connectivity-issue-net-SDK/m-p/1819950#M9249" target="_blank"&gt;https://community.qlik.com/t5/Connectivity-Data-Prep/Web-sockets-connectivity-issue-net-SDK/m-p/1819950#M9249&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 16 Aug 2021 08:41:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Connectivity-Data-Prep/Web-sockets-connectivity-issue-net-SDK/m-p/1828732#M9431</guid>
      <dc:creator>michasiuk</dc:creator>
      <dc:date>2021-08-16T08:41:30Z</dc:date>
    </item>
    <item>
      <title>Re: Web sockets connectivity issue .net SDK</title>
      <link>https://community.qlik.com/t5/Connectivity-Data-Prep/Web-sockets-connectivity-issue-net-SDK/m-p/1828743#M9432</link>
      <description>&lt;P&gt;&lt;SPAN&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/42326"&gt;@michasiuk&lt;/a&gt;&amp;nbsp;&amp;nbsp;I cant talk directly to the files you found in QsAppMetadataConnector as they are from a 3rd party and there may be version differences... but using the binaries in the latest version of QsAppMetadataConnector, it seems throw a error.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;if you get a copy of the &lt;A href="https://community.qlik.com/t5/Scalability/Qlik-Sense-Scalability-Tools/td-p/1490846" target="_blank" rel="noopener"&gt;Qlik Scalability tools&lt;/A&gt;&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;you can get the binaries&amp;nbsp; from the SDKExerciser folder.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Additionally [System.Net.CredentialCache]::DefaultNetworkCredentials does not return anything in my lab... so you may need to reconsider that... something like this&lt;/SPAN&gt;&lt;/P&gt;&lt;LI-CODE lang="csharp"&gt;$binaryroot = "C:\ExtractLocation\ScalabilityTools\scalabilitytools-5.12.3\SDKExerciser\Feb2021"

add-type -path "$($binaryroot)\Newtonsoft.Json.dll"
add-type -path "$($binaryroot)\Qlik.Engine.dll"
add-type -path "$($binaryroot)\Qlik.Sense.JsonRpc.dll"
add-type -path "$($binaryroot)\Qlik.Sense.Client.dll"

$QlikSenseServer = "QlikSenseServer" #Name of the Qlik Sense Server
$SenseServerURL = "https://QlikSenseUrl/"
$ProxyUsesSSL = $true
$TrustAllCerts = $true

if ($null -eq $QlikCeredentials){
    $credfile = "$($env:USERPROFILE)\pwsh_cred_$($env:USERNAME).clixml"
    if (Test-Path $credfile){
        $QlikCeredentials = Import-Clixml $credfile
    }else{
        $QlikCeredentials = Get-Credential
        $QlikCeredentials|Export-Clixml $credfile
    }
}

$Location = [Qlik.Engine.Location]::FromUri($SenseServerURL)
$Credentials = [Qlik.Engine.LocationExtensions]::AsNtlmUserViaProxy($Location,$ProxyUsesSSL,$QlikCeredentials,$false)
$AppIdentifiers = [Qlik.Engine.LocationExtensions]::GetAppIdentifiers($Location)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;or as you appear to be running it on the server you could just use the QlikClient for authentication...&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 16 Aug 2021 09:44:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Connectivity-Data-Prep/Web-sockets-connectivity-issue-net-SDK/m-p/1828743#M9432</guid>
      <dc:creator>Marc</dc:creator>
      <dc:date>2021-08-16T09:44:29Z</dc:date>
    </item>
  </channel>
</rss>

