<?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: Can't connect to remote SAS server in SAS Enterprise Guide</title>
    <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Can-t-connect-to-remote-SAS-server/m-p/91058#M8458</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a &lt;A href="https://github.com/cjdinger/SasHarness"&gt;sample .NET application on GitHub&lt;/A&gt;, and it shows how to connect.&amp;nbsp; (See the &lt;A href="https://github.com/cjdinger/SasHarness/blob/master/SasServer.cs"&gt;SasServer.cs file&lt;/A&gt; in particular.)&amp;nbsp; Your sample code looks correct though, so it might be that the SAS command that is registered to launch with SAS object spawner has a bad option.&amp;nbsp; Also, it's best practice to use the name of the SAS server as registered in metadata ("SASApp" by default).&amp;nbsp; SAS has a feature of "server security" that may enforce the use of the proper name as described within metadata.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Chris&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 28 Mar 2013 12:48:21 GMT</pubDate>
    <dc:creator>ChrisHemedinger</dc:creator>
    <dc:date>2013-03-28T12:48:21Z</dc:date>
    <item>
      <title>Can't connect to remote SAS server</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Can-t-connect-to-remote-SAS-server/m-p/91057#M8457</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I created client app(.NET) and&amp;nbsp; tried to connect to remote SAS server , but I could not connect to remote server.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Code:&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; // Connect remote SAS server&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; SASObjectManager.IObjectFactory2 obObjectFactory = new SASObjectManager.ObjectFactoryMulti2();&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; SASObjectManager.ServerDef obServer =&amp;nbsp; new SASObjectManager.ServerDef();&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; obServer.MachineDNSName = "abc.sas.com";&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; obServer.Protocol = SASObjectManager.Protocols.ProtocolBridge;&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; obServer.Port = Convert.ToInt32(8591);&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; obServer.ClassIdentifier = "440196d4-90f0-11d0-9f41-00a024bb830c";&lt;/P&gt;&lt;P&gt;&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; object _workspace = obObjectFactory.CreateObjectByServer( "MyObject", true, obServer,userid,password);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Catch exception &lt;SPAN style="font-size: 12pt;"&gt;&lt;STRONG&gt;"The launch of the server process failed because of a SAS kernel initialization failure"&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How to solve this problem?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Mar 2013 07:02:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Can-t-connect-to-remote-SAS-server/m-p/91057#M8457</guid>
      <dc:creator>zyp911</dc:creator>
      <dc:date>2013-03-28T07:02:27Z</dc:date>
    </item>
    <item>
      <title>Re: Can't connect to remote SAS server</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Can-t-connect-to-remote-SAS-server/m-p/91058#M8458</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a &lt;A href="https://github.com/cjdinger/SasHarness"&gt;sample .NET application on GitHub&lt;/A&gt;, and it shows how to connect.&amp;nbsp; (See the &lt;A href="https://github.com/cjdinger/SasHarness/blob/master/SasServer.cs"&gt;SasServer.cs file&lt;/A&gt; in particular.)&amp;nbsp; Your sample code looks correct though, so it might be that the SAS command that is registered to launch with SAS object spawner has a bad option.&amp;nbsp; Also, it's best practice to use the name of the SAS server as registered in metadata ("SASApp" by default).&amp;nbsp; SAS has a feature of "server security" that may enforce the use of the proper name as described within metadata.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Chris&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Mar 2013 12:48:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Can-t-connect-to-remote-SAS-server/m-p/91058#M8458</guid>
      <dc:creator>ChrisHemedinger</dc:creator>
      <dc:date>2013-03-28T12:48:21Z</dc:date>
    </item>
    <item>
      <title>Re: Can't connect to remote SAS server</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Can-t-connect-to-remote-SAS-server/m-p/91059#M8459</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Zyp,&amp;nbsp; here 's a little help:&lt;/P&gt;&lt;P&gt;The launch of the server process failed because of a SAS kernel initialization failure. &lt;/P&gt;&lt;P class="indent1"&gt;Explanation:&amp;nbsp;&amp;nbsp; For some reason, the SAS kernel cannot initialize. &lt;/P&gt;&lt;P class="indent1"&gt;Resolution:&amp;nbsp; Check the command line of the server to make sure that there are no invalid command line options. Also check any configuration files that are used to make sure that they are correct. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Mar 2013 14:20:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Can-t-connect-to-remote-SAS-server/m-p/91059#M8459</guid>
      <dc:creator>kshirley</dc:creator>
      <dc:date>2013-03-28T14:20:44Z</dc:date>
    </item>
  </channel>
</rss>

