<?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: How to Upload app using C# System.Net.WebClient in Integration, Extension &amp; APIs</title>
    <link>https://community.qlik.com/t5/Integration-Extension-APIs/How-to-Upload-app-using-C-System-Net-WebClient/m-p/10349#M172</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I had done a mistake in configuring the query parameters. Apparently, one has to remove any preexisting '?' from the query when appending a new query to a UriBuilder.Query property. So I basically had to do a Substring(1) on the query like they describe here:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://msdn.microsoft.com/en-us/library/system.uribuilder.query(v=vs.110).aspx" title="https://msdn.microsoft.com/en-us/library/system.uribuilder.query(v=vs.110).aspx"&gt;UriBuilder.Query Property (System)&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That's a pretty confusing error message and a pretty weird property...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 29 Jan 2018 13:35:51 GMT</pubDate>
    <dc:creator>Øystein_Kolsrud</dc:creator>
    <dc:date>2018-01-29T13:35:51Z</dc:date>
    <item>
      <title>How to Upload app using C# System.Net.WebClient</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/How-to-Upload-app-using-C-System-Net-WebClient/m-p/10348#M171</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm trying to programmatically upload an app using the &lt;A href="https://msdn.microsoft.com/en-us/library/system.net.webclient(v=vs.110).aspx" title="https://msdn.microsoft.com/en-us/library/system.net.webclient(v=vs.110).aspx"&gt;WebClient Class (System.Net)&lt;/A&gt;, but for some reason I get the error "Could not create SSL/TLS secure channel." for that particular call. I have no problem doing a call to UploadString to for instance start a reload so I know I am able to connect and perform posts correctly, but for some reason that post with the app in the body fails. Does anyone have any idea what might be wrong?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To summarize, this method works:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="c#" __jive_macro_name="code" class="jive_macro_code jive_text_macro _jivemacro_uid_15172213116443635" jivemacro_uid="_15172213116443635"&gt;
&lt;P&gt;public string Post(string endpoint, string body)&lt;/P&gt;
&lt;P&gt;{&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; return UploadString(new Uri(Uri, endpoint), body);&lt;/P&gt;
&lt;P&gt;}&lt;/P&gt;


&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But this fails:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="c#" __jive_macro_name="code" class="jive_macro_code jive_text_macro _jivemacro_uid_15172213738688966" jivemacro_uid="_15172213738688966"&gt;
&lt;P&gt;public byte[] Post(string endpoint, byte[] body)&lt;/P&gt;
&lt;P&gt;{&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; return UploadData(new Uri(Uri, endpoint), body);&lt;/P&gt;
&lt;P&gt;}&lt;/P&gt;


&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've been experimenting a lot with different header settings for the resulting request, but haven't been able to make it work. And I'm rather confused that it complains about that SSL/TLS channel problem and don't see how the two calls differs with respect to that.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Jan 2018 10:24:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/How-to-Upload-app-using-C-System-Net-WebClient/m-p/10348#M171</guid>
      <dc:creator>Øystein_Kolsrud</dc:creator>
      <dc:date>2018-01-29T10:24:16Z</dc:date>
    </item>
    <item>
      <title>Re: How to Upload app using C# System.Net.WebClient</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/How-to-Upload-app-using-C-System-Net-WebClient/m-p/10349#M172</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I had done a mistake in configuring the query parameters. Apparently, one has to remove any preexisting '?' from the query when appending a new query to a UriBuilder.Query property. So I basically had to do a Substring(1) on the query like they describe here:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://msdn.microsoft.com/en-us/library/system.uribuilder.query(v=vs.110).aspx" title="https://msdn.microsoft.com/en-us/library/system.uribuilder.query(v=vs.110).aspx"&gt;UriBuilder.Query Property (System)&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That's a pretty confusing error message and a pretty weird property...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Jan 2018 13:35:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/How-to-Upload-app-using-C-System-Net-WebClient/m-p/10349#M172</guid>
      <dc:creator>Øystein_Kolsrud</dc:creator>
      <dc:date>2018-01-29T13:35:51Z</dc:date>
    </item>
    <item>
      <title>Re: How to Upload app using C# System.Net.WebClient</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/How-to-Upload-app-using-C-System-Net-WebClient/m-p/10350#M173</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm actually trying to utilize the RestClient you wrote and I'm running into this same error (&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;"Could not create SSL/TLS secure channel."&lt;/SPAN&gt;) uploading apps.&amp;nbsp; I don't have this problem uploading extensions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is it a fair conclusion it must be the endpoint that is not set correctly?&amp;nbsp; I don't have this issue with any other endpoint, just the upload app one.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here's my endpoint:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: 'courier new', courier;"&gt;string uploadAppEndpoint = "/qrs/app/upload?name=" + Uri.EscapeDataString(System.IO.Path.GetFileName(filename));&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Jul 2018 21:22:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/How-to-Upload-app-using-C-System-Net-WebClient/m-p/10350#M173</guid>
      <dc:creator>adam_westhusing</dc:creator>
      <dc:date>2018-07-13T21:22:40Z</dc:date>
    </item>
    <item>
      <title>Re: How to Upload app using C# System.Net.WebClient</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/How-to-Upload-app-using-C-System-Net-WebClient/m-p/10351#M174</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I just realized I hadn't pushed the fix to github. Have a look at it now and see if the problem persists!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://github.com/kolsrud/qlik_rest_sdk" title="https://github.com/kolsrud/qlik_rest_sdk"&gt;https://github.com/kolsrud/qlik_rest_sdk&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Aug 2018 11:54:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/How-to-Upload-app-using-C-System-Net-WebClient/m-p/10351#M174</guid>
      <dc:creator>Øystein_Kolsrud</dc:creator>
      <dc:date>2018-08-06T11:54:05Z</dc:date>
    </item>
    <item>
      <title>Re: How to Upload app using C# System.Net.WebClient</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/How-to-Upload-app-using-C-System-Net-WebClient/m-p/10352#M175</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;No, same problem.&amp;nbsp; I had already used your workaround for the UriBuilder Query.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any other ideas on what could be going on?&amp;nbsp; Have you had luck uploading apps?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Aug 2018 16:25:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/How-to-Upload-app-using-C-System-Net-WebClient/m-p/10352#M175</guid>
      <dc:creator>adam_westhusing</dc:creator>
      <dc:date>2018-08-06T16:25:50Z</dc:date>
    </item>
    <item>
      <title>Re: How to Upload app using C# System.Net.WebClient</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/How-to-Upload-app-using-C-System-Net-WebClient/m-p/10353#M176</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;One problem I ran into was that I had to modify the ContentType of the web request. I've pushed some changes that makes it possible to configure the requests, and I've added a new example that illustrates how to use it to upload an app. That works for me at least, but I didn't see the exact same message you are so it could be something else you are running into.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Anyway, check out this example:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://github.com/kolsrud/qlik_rest_sdk/tree/master/Qlik.Sense.RestClient/Examples/AppUpload" title="https://github.com/kolsrud/qlik_rest_sdk/tree/master/Qlik.Sense.RestClient/Examples/AppUpload"&gt;https://github.com/kolsrud/qlik_rest_sdk/tree/master/Qlik.Sense.RestClient/Examples/AppUpload&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Aug 2018 06:44:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/How-to-Upload-app-using-C-System-Net-WebClient/m-p/10353#M176</guid>
      <dc:creator>Øystein_Kolsrud</dc:creator>
      <dc:date>2018-08-07T06:44:05Z</dc:date>
    </item>
    <item>
      <title>Re: How to Upload app using C# System.Net.WebClient</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/How-to-Upload-app-using-C-System-Net-WebClient/m-p/10354#M177</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello&lt;/P&gt;&lt;P&gt;I have same issue&lt;/P&gt;&lt;P&gt;Do you resolve it please ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Sep 2018 06:30:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/How-to-Upload-app-using-C-System-Net-WebClient/m-p/10354#M177</guid>
      <dc:creator>mostal75</dc:creator>
      <dc:date>2018-09-19T06:30:39Z</dc:date>
    </item>
    <item>
      <title>Re: How to Upload app using C# System.Net.WebClient</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/How-to-Upload-app-using-C-System-Net-WebClient/m-p/10355#M178</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;My apologies for not replying back earlier, but &lt;A href="https://community.qlik.com/qlik-users/143084"&gt;yko&lt;/A&gt;‌'s solution worked for me.&amp;nbsp; Having the content type of the web request to match the .qvd appeared to be the issue I had.&amp;nbsp; Since I adopted the ContentType fix, I've been able to upload apps to my Qlik server.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Sep 2018 15:42:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/How-to-Upload-app-using-C-System-Net-WebClient/m-p/10355#M178</guid>
      <dc:creator>adam_westhusing</dc:creator>
      <dc:date>2018-09-19T15:42:28Z</dc:date>
    </item>
  </channel>
</rss>

