<?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: C# SDK LogOnAsyc fail!! in Splunk Dev</title>
    <link>https://community.splunk.com/t5/Splunk-Dev/C-SDK-LogOnAsyc-fail/m-p/444500#M8057</link>
    <description>&lt;P&gt;I try it using &lt;A href="https://localhost:8089.But"&gt;https://localhost:8089.But&lt;/A&gt; i receive the message:&lt;BR /&gt;
The underlying connection is down: A trust relationship cannot be established for the SSL/TLS secure channel.&lt;/P&gt;</description>
    <pubDate>Thu, 27 Dec 2018 13:09:05 GMT</pubDate>
    <dc:creator>sspeng1209</dc:creator>
    <dc:date>2018-12-27T13:09:05Z</dc:date>
    <item>
      <title>C# SDK LogOnAsyc fail!!</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/C-SDK-LogOnAsyc-fail/m-p/444498#M8055</link>
      <description>&lt;P&gt;When I use c# 2.0 SDK calll service.LogOnAsync function, I receive the following message:&lt;BR /&gt;
Message: The underlying connection was closed: The connection was closed unexpectedly. &lt;/P&gt;

&lt;P&gt;How to solve it?&lt;/P&gt;

&lt;P&gt;Code:&lt;BR /&gt;
         static async Task async1()&lt;BR /&gt;
        {&lt;BR /&gt;
            try&lt;BR /&gt;
            { &lt;BR /&gt;
                // Create a Service instance &lt;BR /&gt;
                var service = new Service(new Uri("&lt;A href="http://localhost:8089%22)"&gt;http://localhost:8089")&lt;/A&gt;);&lt;BR /&gt;
                await service.LogOnAsync("admin", "test1234");&lt;BR /&gt;
                ........................&lt;BR /&gt;
            }&lt;BR /&gt;
            catch(Exception err)&lt;BR /&gt;
            {&lt;BR /&gt;
                  Console.WriteLine("Message=",err.Message);&lt;BR /&gt;
            }&lt;BR /&gt;
        }&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;    static void Main(string[] args)
    {           
        Task.Run(()=&amp;gt; async1());
        Console.ReadKey();            
    }
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sat, 22 Dec 2018 13:32:25 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/C-SDK-LogOnAsyc-fail/m-p/444498#M8055</guid>
      <dc:creator>sspeng1209</dc:creator>
      <dc:date>2018-12-22T13:32:25Z</dc:date>
    </item>
    <item>
      <title>Re: C# SDK LogOnAsyc fail!!</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/C-SDK-LogOnAsyc-fail/m-p/444499#M8056</link>
      <description>&lt;P&gt;You should be using &lt;A href="https://localhost:8089"&gt;https://localhost:8089&lt;/A&gt; not http&lt;/P&gt;

&lt;P&gt;This is the Splunk Daemons rest API port and it’s SSL by default (https).&lt;/P&gt;</description>
      <pubDate>Sun, 23 Dec 2018 16:25:38 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/C-SDK-LogOnAsyc-fail/m-p/444499#M8056</guid>
      <dc:creator>jkat54</dc:creator>
      <dc:date>2018-12-23T16:25:38Z</dc:date>
    </item>
    <item>
      <title>Re: C# SDK LogOnAsyc fail!!</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/C-SDK-LogOnAsyc-fail/m-p/444500#M8057</link>
      <description>&lt;P&gt;I try it using &lt;A href="https://localhost:8089.But"&gt;https://localhost:8089.But&lt;/A&gt; i receive the message:&lt;BR /&gt;
The underlying connection is down: A trust relationship cannot be established for the SSL/TLS secure channel.&lt;/P&gt;</description>
      <pubDate>Thu, 27 Dec 2018 13:09:05 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/C-SDK-LogOnAsyc-fail/m-p/444500#M8057</guid>
      <dc:creator>sspeng1209</dc:creator>
      <dc:date>2018-12-27T13:09:05Z</dc:date>
    </item>
  </channel>
</rss>

