<?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: Access is denied. 0x80070005 localhost SAS.Workspace.1.0 39220 in SAS Enterprise Guide</title>
    <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Access-is-denied-0x80070005-localhost-SAS-Workspace-1-0-39220/m-p/389644#M25149</link>
    <description>&lt;P&gt;I know this is an old thread but it is still pertinent. Can you explain the reasoning behind this&amp;nbsp;statement (I just want to understand it more):&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;BTW: i would not recommend to use the SAS integration DLLs directly in your Visual Studio project. Use the COM libraries instead.&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 21 Aug 2017 20:03:57 GMT</pubDate>
    <dc:creator>AlanC</dc:creator>
    <dc:date>2017-08-21T20:03:57Z</dc:date>
    <item>
      <title>Access is denied. 0x80070005 localhost SAS.Workspace.1.0 39220</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Access-is-denied-0x80070005-localhost-SAS-Workspace-1-0-39220/m-p/236588#M17064</link>
      <description>&lt;P&gt;I'm using the SAS&amp;nbsp;integration .dll&amp;nbsp;libraries&amp;nbsp;to build a Visual Studio C# application.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Code:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;SASObjectManager.IObjectFactory2 obObjectFactory = new SASObjectManager.ObjectFactoryMulti2();&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;SASObjectManager.ServerDef obServer = new SASObjectManager.ServerDef();&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;obServer.MachineDNSName = "localhost";&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;obServer.Protocol = SASObjectManager.Protocols.ProtocolCom;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;obServer.Port = 0;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;var _workspace = (SAS.Workspace)obObjectFactory.CreateObjectByServer("SchdUtil", true, obServer, null, null);&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;_workspace.LanguageService.Submit(File.ReadAllText(item.Path));&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm getting this exception when I try to execute the program remotely.&lt;/P&gt;&lt;P&gt;&lt;FONT color="#FF0000"&gt;&lt;STRONG&gt;Access is denied. 0x80070005 localhost SAS.Workspace.1.0 39220&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The program sits on a network path. It runs fine when executed locally. But I can't run&amp;nbsp;the program remotely through Powershell with this:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Invoke-Command -ComputerName $x&amp;nbsp;-Authentication CredSSP -Credential $credentials -ScriptBlock {\\some\network\path.exe}&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What type of login mechanism is happening when I use the SAS workspace like this, that is different from running locally?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 26 Nov 2015 14:20:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Access-is-denied-0x80070005-localhost-SAS-Workspace-1-0-39220/m-p/236588#M17064</guid>
      <dc:creator>flux</dc:creator>
      <dc:date>2015-11-26T14:20:01Z</dc:date>
    </item>
    <item>
      <title>Re: Access is denied. 0x80070005 localhost SAS.Workspace.1.0 39220</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Access-is-denied-0x80070005-localhost-SAS-Workspace-1-0-39220/m-p/236607#M17068</link>
      <description>&lt;P&gt;This generic error could be caused by many things.&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;SAS is not correctly installed on the remote machine&lt;/LI&gt;&lt;LI&gt;SAS is installed, but in the wrong CPU configuration (64bit vs. 32 bit)&lt;/LI&gt;&lt;LI&gt;the user running your application is not allowed to&lt;BR /&gt;read the Windows registry&lt;BR /&gt;start SAS via COM (maybe no access rights to the file system path where SAS is installed)&lt;BR /&gt;...&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;I would recommend that you login to the remote server with remote desktop and interactively run your application there.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;BTW: i would not recommend to use the SAS integration DLLs directly in your Visual Studio project. Use the COM libraries instead.&lt;/P&gt;</description>
      <pubDate>Thu, 26 Nov 2015 16:03:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Access-is-denied-0x80070005-localhost-SAS-Workspace-1-0-39220/m-p/236607#M17068</guid>
      <dc:creator>AndreasMenrath</dc:creator>
      <dc:date>2015-11-26T16:03:13Z</dc:date>
    </item>
    <item>
      <title>Re: Access is denied. 0x80070005 localhost SAS.Workspace.1.0 39220</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Access-is-denied-0x80070005-localhost-SAS-Workspace-1-0-39220/m-p/236704#M17073</link>
      <description>&lt;P&gt;This generic error could be caused by many things.&lt;BR /&gt;- SAS is not correctly installed on the remote machine&lt;BR /&gt;- SAS is installed, but in the wrong CPU configuration (64bit vs. 32 bit)&lt;BR /&gt;- the user running your application is not allowed to&lt;BR /&gt;-- read the Windows registry&lt;BR /&gt;-- start SAS via COM (maybe no access rights to the file system path where SAS is installed)&lt;BR /&gt;- ...&lt;BR /&gt;&lt;BR /&gt;I would recommend that you login to the remote server with remote desktop and interactively run your application there.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;BTW: i would not recommend to use the SAS integration DLLs directly in your Visual Studio project. Use the COM libraries instead.&lt;/P&gt;</description>
      <pubDate>Fri, 27 Nov 2015 07:57:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Access-is-denied-0x80070005-localhost-SAS-Workspace-1-0-39220/m-p/236704#M17073</guid>
      <dc:creator>AndreasMenrath</dc:creator>
      <dc:date>2015-11-27T07:57:11Z</dc:date>
    </item>
    <item>
      <title>Re: Access is denied. 0x80070005 localhost SAS.Workspace.1.0 39220</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Access-is-denied-0x80070005-localhost-SAS-Workspace-1-0-39220/m-p/236736#M17075</link>
      <description>&lt;P&gt;Thank you for your reply.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is why I'm stumped as it runs from a remote desktop session. However when you make a powershell remote session (passing in the correct credentials) and invoke command then this error appears.&lt;BR /&gt;&lt;BR /&gt;Also how do you use the COM libraries instead of referencing DLLs in VS? I'm following this: &lt;A href="http://blogs.sas.com/content/sasdummy/2013/06/09/sas-client-with-microsoft-dot-net/" target="_blank"&gt;http://blogs.sas.com/content/sasdummy/2013/06/09/sas-client-with-microsoft-dot-net/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;U&gt;&lt;FONT size="3"&gt;To be&amp;nbsp;thorough I've replied to each of your points below:&lt;/FONT&gt;&lt;/U&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;- &lt;EM&gt;SAS is not correctly installed on the remote machine&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Definitely installed.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;EM&gt;- SAS is installed, but in the wrong CPU configuration (64bit vs. 32 bit)&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;SAS works when run manually.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;EM&gt;- the user running your application is not allowed to&lt;/EM&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;EM&gt;-- read the Windows registry&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Because I can run it in a normal remote desktop session with the same credentials reading the registry shouldnt be a problem.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;-- start SAS via COM (maybe no access rights to the file system path where SAS is installed)&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;There is at least read access to the SAS program files installation. Is there some other permissions that I should check?&lt;/P&gt;</description>
      <pubDate>Fri, 27 Nov 2015 15:22:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Access-is-denied-0x80070005-localhost-SAS-Workspace-1-0-39220/m-p/236736#M17075</guid>
      <dc:creator>flux</dc:creator>
      <dc:date>2015-11-27T15:22:10Z</dc:date>
    </item>
    <item>
      <title>Re: Access is denied. 0x80070005 localhost SAS.Workspace.1.0 39220</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Access-is-denied-0x80070005-localhost-SAS-Workspace-1-0-39220/m-p/236906#M17080</link>
      <description>&lt;P&gt;For adding the COM reference use the usual dialog for adding references.&lt;/P&gt;&lt;P&gt;Select the COM tab to the left.&lt;/P&gt;&lt;P&gt;Search for SAS in the search box. I highlighted the usual COM references you will need most likely:&lt;/P&gt;&lt;P&gt;&lt;IMG src="https://communities.sas.com/t5/image/serverpage/image-id/960iB751606CADE273EA/image-size/original?v=mpbl-1&amp;amp;px=-1" alt="2015-11-30 10_09_16-Reference Manager.png" title="2015-11-30 10_09_16-Reference Manager.png" border="0" /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You can also take a look at my open source project for reference: &lt;A href="http://sourceforge.net/p/cmdlets4sas/code/HEAD/tree/trunk/" target="_self"&gt;http://sourceforge.net/p/cmdlets4sas/code/HEAD/tree/trunk/ &lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Your problem might also be a pure powershell problem. Have you tried to run other applications like calc.exe in the remote session?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It would also be interesting to start a local SAS session via COM in your remote session with this code snippet:&lt;/P&gt;&lt;PRE&gt;$objFactory = New-Object -ComObject SASObjectManager.ObjectFactoryMulti2
$objServerDef = New-Object -ComObject SASObjectManager.ServerDef 

$objSAS = $objFactory.CreateObjectByServer(
                "mylocalserver",    
                $true, 
                $objServerDef, # used server definition for Workspace
                $null,   
                $null    
                )&lt;/PRE&gt;&lt;P&gt;Do you get an exception with the pure powershell code, too?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 30 Nov 2015 09:27:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Access-is-denied-0x80070005-localhost-SAS-Workspace-1-0-39220/m-p/236906#M17080</guid>
      <dc:creator>AndreasMenrath</dc:creator>
      <dc:date>2015-11-30T09:27:47Z</dc:date>
    </item>
    <item>
      <title>Re: Access is denied. 0x80070005 localhost SAS.Workspace.1.0 39220</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Access-is-denied-0x80070005-localhost-SAS-Workspace-1-0-39220/m-p/236969#M17087</link>
      <description>&lt;P&gt;The problem could also be related to Code Access Security (CAS), which is a .NET / Windows security feature that can prevent .NET code from running from a network location.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;To solve, you would need to run a CASPOL command to generate an exception to the policy, adding the network location as "FullTrust" on the machine that you're wanting to run on. &amp;nbsp;You'll probably need to check the current command syntax for CASPOL.exe, but &lt;A href="http://blogs.msdn.com/b/shawnfa/archive/2004/12/30/344554.aspx" target="_self"&gt;here is an older example&lt;/A&gt;.&lt;/P&gt;</description>
      <pubDate>Mon, 30 Nov 2015 14:48:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Access-is-denied-0x80070005-localhost-SAS-Workspace-1-0-39220/m-p/236969#M17087</guid>
      <dc:creator>ChrisHemedinger</dc:creator>
      <dc:date>2015-11-30T14:48:23Z</dc:date>
    </item>
    <item>
      <title>Re: Access is denied. 0x80070005 localhost SAS.Workspace.1.0 39220</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Access-is-denied-0x80070005-localhost-SAS-Workspace-1-0-39220/m-p/237366#M17106</link>
      <description>&lt;P&gt;Thank you both for&amp;nbsp;your suggestions.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tried Andreas code snippet via a remote ps session&amp;nbsp;and the same error message appears.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Powershell code:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG src="https://communities.sas.com/t5/image/serverpage/image-id/1017i682AECFDC5219F27/image-size/original?v=mpbl-1&amp;amp;px=-1" border="0" alt="Capture.PNG" title="Capture.PNG" /&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Result:&lt;/STRONG&gt;&lt;/P&gt;&lt;PRE&gt;Exception calling "CreateObjectByServer" with "5" argument(s): "&amp;lt;connectionAtte
mpts&amp;gt;
    &amp;lt;connectionAttempt&amp;gt;
        &amp;lt;description&amp;gt;Access is denied.
&amp;lt;/description&amp;gt;
        &amp;lt;status&amp;gt;0x80070005&amp;lt;/status&amp;gt;
        &amp;lt;saslogin&amp;gt;&amp;lt;/saslogin&amp;gt;
        &amp;lt;sasmachinednsname&amp;gt;&amp;lt;/sasmachinednsname&amp;gt;
        &amp;lt;sasclassid&amp;gt;&amp;lt;/sasclassid&amp;gt;
        &amp;lt;sasprogid&amp;gt;SAS.Workspace.1.0&amp;lt;/sasprogid&amp;gt;
        &amp;lt;threadid&amp;gt;17200&amp;lt;/threadid&amp;gt;
        &amp;lt;name&amp;gt;mylocalserver&amp;lt;/name&amp;gt;
    &amp;lt;/connectionAttempt&amp;gt;
&amp;lt;/connectionAttempts&amp;gt;"
    + CategoryInfo          : NotSpecified: (:) [], MethodInvocationException
    + FullyQualifiedErrorId : ComMethodTargetInvocation&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&amp;lt;Edit&amp;gt; Also I've tried running cmdlets4sas&amp;nbsp;Connect-SasWorkspaceLocal cmdlet and I'm getting&amp;nbsp;the same results.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When I run the same code snippet on a normal remote desktop session it runs fine.&lt;/P&gt;&lt;P&gt;&lt;IMG src="https://communities.sas.com/t5/image/serverpage/image-id/1015iDAAC40FD702BC6DF/image-size/original?v=mpbl-1&amp;amp;px=-1" border="0" alt="Capture.PNG" title="Capture.PNG" /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Also the complete .NET program executes successfully over the network. The issue comes when calling&amp;nbsp;SAS COM via powershell remote session.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Not sure where to go from here! &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&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;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 02 Dec 2015 15:11:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Access-is-denied-0x80070005-localhost-SAS-Workspace-1-0-39220/m-p/237366#M17106</guid>
      <dc:creator>flux</dc:creator>
      <dc:date>2015-12-02T15:11:21Z</dc:date>
    </item>
    <item>
      <title>Re: Access is denied. 0x80070005 localhost SAS.Workspace.1.0 39220</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Access-is-denied-0x80070005-localhost-SAS-Workspace-1-0-39220/m-p/237383#M17107</link>
      <description>&lt;P&gt;I'm having a look at SASObjectManager.ObjectFactoryMulti2 and&amp;nbsp;SASObjectManager.ServerDef.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Everything is identical except when&amp;nbsp;running through a remote powershell session&amp;nbsp;these variables are added to the objects:&lt;/P&gt;&lt;PRE&gt;PSComputerName : xy.xy.com
RunspaceId : 41c6cacf-de3d-4e43-938c-b46cacaef717
PSShowComputerName : True&lt;/PRE&gt;&lt;P&gt;Perhaps when calling SAS COM this way it is losing context or current user creditials are not being passed in?&lt;/P&gt;</description>
      <pubDate>Wed, 02 Dec 2015 14:47:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Access-is-denied-0x80070005-localhost-SAS-Workspace-1-0-39220/m-p/237383#M17107</guid>
      <dc:creator>flux</dc:creator>
      <dc:date>2015-12-02T14:47:06Z</dc:date>
    </item>
    <item>
      <title>Re: Access is denied. 0x80070005 localhost SAS.Workspace.1.0 39220</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Access-is-denied-0x80070005-localhost-SAS-Workspace-1-0-39220/m-p/238036#M17138</link>
      <description>&lt;P&gt;Sorry for the late reply.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I come to the same conclusion as you do. The problem is between COM and SAS.&lt;/P&gt;&lt;P&gt;When you execute my snippet or use the Connect-SasWorkspaceLocal you completely bypass any network stuff.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So i think your problem might occur between your user and Windows. If you use Powershell Remote services you don't have an interactive Windows session.&lt;/P&gt;&lt;P&gt;For starting a SAS server on the SAS platform the Windows user for starting a SAS server has to have the privilege "Log on as batch job". Ask your Windows administrator for your server to grant your Windows user the "Log on as batch job" privilege in the local security policies of the server machine and try again.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;As an alternative you might create a new local technical user on the server machine and grant this user the privilege and use the credentials of the technical user to login to your remote powershell session.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For narrowing the issue it might also be very helpfull to look in the Windows event log for errors at the server for the time the SAS error occured.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I hope this helps you to solve your issue.&lt;/P&gt;</description>
      <pubDate>Mon, 07 Dec 2015 10:49:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Access-is-denied-0x80070005-localhost-SAS-Workspace-1-0-39220/m-p/238036#M17138</guid>
      <dc:creator>AndreasMenrath</dc:creator>
      <dc:date>2015-12-07T10:49:33Z</dc:date>
    </item>
    <item>
      <title>Re: Access is denied. 0x80070005 localhost SAS.Workspace.1.0 39220</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Access-is-denied-0x80070005-localhost-SAS-Workspace-1-0-39220/m-p/238062#M17139</link>
      <description>&lt;P&gt;If you are trying to use COM from one machine to launch a process on another machine, that's essentially DCOM (distributed COM). &amp;nbsp;That mechanism was supported in the early days of SAS Integration Technologies, but over the years there have been so many security changes in Windows (to plug holes) that this type of remote-launching no longer works.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can find some &lt;A href="http://support.sas.com/rnd/itech/doc9/admin_oma/sasserver/comdcom/dcom_test.html" target="_self"&gt;old DCOM information in the SAS 9.1.3 documentation&lt;/A&gt;. &amp;nbsp;However, the settings required to make this work might be contrary to your IT policies.&lt;/P&gt;</description>
      <pubDate>Mon, 07 Dec 2015 13:59:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Access-is-denied-0x80070005-localhost-SAS-Workspace-1-0-39220/m-p/238062#M17139</guid>
      <dc:creator>ChrisHemedinger</dc:creator>
      <dc:date>2015-12-07T13:59:34Z</dc:date>
    </item>
    <item>
      <title>Re: Access is denied. 0x80070005 localhost SAS.Workspace.1.0 39220</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Access-is-denied-0x80070005-localhost-SAS-Workspace-1-0-39220/m-p/238065#M17140</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/4"&gt;@ChrisHemedinger﻿&lt;/a&gt;: i don't think that this is related to DCOM in any way.&lt;/P&gt;&lt;P&gt;Flux is using a Powershell Feature called Remote Services to start a new Powershell session under his credentials on a remote server. Communication between the client and the server PowerShell session is provided AFAIK by a native protocoll and not DCOM.&lt;/P&gt;&lt;P&gt;The remote session is just another powershell.exe process on the server listening on a specific network port for commands from the client.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However for some reason that powershell.exe process is denied to start a new local SAS session.&lt;/P&gt;</description>
      <pubDate>Mon, 07 Dec 2015 14:33:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Access-is-denied-0x80070005-localhost-SAS-Workspace-1-0-39220/m-p/238065#M17140</guid>
      <dc:creator>AndreasMenrath</dc:creator>
      <dc:date>2015-12-07T14:33:32Z</dc:date>
    </item>
    <item>
      <title>Re: Access is denied. 0x80070005 localhost SAS.Workspace.1.0 39220</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Access-is-denied-0x80070005-localhost-SAS-Workspace-1-0-39220/m-p/238068#M17141</link>
      <description>&lt;P&gt;Thanks for that&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/16887"&gt;@AndreasMenrath﻿&lt;/a&gt;; I'm not familiar with PowerShell remoting.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The other complicating factor that sometimes comes into play: when you have a process on one machine that launches a process on a remote machine with your same identity, and that remote process needs to access network resources on your behalf, you need to have the &lt;A href="http://support.sas.com/documentation/cdl/en/bisecag/67045/HTML/default/viewer.htm#p1uhz7klzwwvr8n1r51h0nhcw2zm.htm" target="_self"&gt;remote machine configured for "Trusted for Delegation"&lt;/A&gt;. &amp;nbsp;This comes up most often when SAS environments are configured with Integrated Windows Authentication (IWA), and then the SAS process tries to access a network drive or network-attached printer.&lt;/P&gt;</description>
      <pubDate>Tue, 08 Dec 2015 14:14:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Access-is-denied-0x80070005-localhost-SAS-Workspace-1-0-39220/m-p/238068#M17141</guid>
      <dc:creator>ChrisHemedinger</dc:creator>
      <dc:date>2015-12-08T14:14:32Z</dc:date>
    </item>
    <item>
      <title>Re: Access is denied. 0x80070005 localhost SAS.Workspace.1.0 39220</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Access-is-denied-0x80070005-localhost-SAS-Workspace-1-0-39220/m-p/238265#M17148</link>
      <description>&lt;P&gt;Thank you both for your help.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The "Log on as batch job" Windows priviledge seems to be the most plausible solution.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Also pointing to this is the same type of "access denied" message that occurs when trying the&amp;nbsp;"&lt;SPAN&gt;New-Object -ComObject" remotely but with a different COM object.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://powershell.com/cs/forums/t/22700.aspx" target="_blank"&gt;http://powershell.com/cs/forums/t/22700.aspx&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;A solution posted was to remote in and create a scheduled job&amp;nbsp;that runs once, so invoking COM appears local. I tried this but the job doesn't run.&amp;nbsp;&lt;SPAN&gt;The "Log on as batch job" priviledge (I think/hope) is the thing required here.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Will&amp;nbsp;update thread when I know for sure.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 08 Dec 2015 14:12:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Access-is-denied-0x80070005-localhost-SAS-Workspace-1-0-39220/m-p/238265#M17148</guid>
      <dc:creator>flux</dc:creator>
      <dc:date>2015-12-08T14:12:20Z</dc:date>
    </item>
    <item>
      <title>Re: Access is denied. 0x80070005 localhost SAS.Workspace.1.0 39220</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Access-is-denied-0x80070005-localhost-SAS-Workspace-1-0-39220/m-p/238280#M17149</link>
      <description>&lt;P&gt;Are you sure that the error message from other COM objects are the same?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Formerly you posted this result:&lt;/P&gt;&lt;PRE&gt;&amp;lt;connectionAttempts&amp;gt;
    &amp;lt;connectionAttempt&amp;gt;
        &amp;lt;description&amp;gt;Access is denied.
&amp;lt;/description&amp;gt;
        &amp;lt;status&amp;gt;0x80070005&amp;lt;/status&amp;gt;
        &amp;lt;saslogin&amp;gt;&amp;lt;/saslogin&amp;gt;
        &amp;lt;sasmachinednsname&amp;gt;&amp;lt;/sasmachinednsname&amp;gt;
        &amp;lt;sasclassid&amp;gt;&amp;lt;/sasclassid&amp;gt;
        &amp;lt;sasprogid&amp;gt;SAS.Workspace.1.0&amp;lt;/sasprogid&amp;gt;
        &amp;lt;threadid&amp;gt;17200&amp;lt;/threadid&amp;gt;
        &amp;lt;name&amp;gt;mylocalserver&amp;lt;/name&amp;gt;
    &amp;lt;/connectionAttempt&amp;gt;
&amp;lt;/connectionAttempts&amp;gt;&lt;/PRE&gt;&lt;P&gt;That XML error message is formatted in SAS error XML which means that you were at least able to successfully create these two COM objects&lt;/P&gt;&lt;PRE&gt;$objFactory = New-Object -ComObject SASObjectManager.ObjectFactoryMulti2
$objServerDef = New-Object -ComObject SASObjectManager.ServerDef &lt;/PRE&gt;&lt;P&gt;According to your log the error occurs when you call&lt;/P&gt;&lt;PRE&gt; $objFactory.CreateObjectByServer(...)&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I hope this helps you to isolate the error.&lt;/P&gt;</description>
      <pubDate>Tue, 08 Dec 2015 14:46:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Access-is-denied-0x80070005-localhost-SAS-Workspace-1-0-39220/m-p/238280#M17149</guid>
      <dc:creator>AndreasMenrath</dc:creator>
      <dc:date>2015-12-08T14:46:50Z</dc:date>
    </item>
    <item>
      <title>Re: Access is denied. 0x80070005 localhost SAS.Workspace.1.0 39220</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Access-is-denied-0x80070005-localhost-SAS-Workspace-1-0-39220/m-p/288293#M19663</link>
      <description>&lt;P&gt;I ran into exactly same xml error message when I try accessing a C#/SAS Web Application hosted in IIS. I solved this&amp;nbsp;issue by&amp;nbsp;&lt;/P&gt;&lt;P&gt;going to: IIS Manager -&amp;gt; Application Pools -&amp;gt; Advanced Settings -&amp;gt; Identity, update Identity&amp;nbsp;from Application Pool Identity to LocalSystem.&lt;/P&gt;&lt;P&gt;You guys are right, looks like a Windows execution privilage issue.&lt;/P&gt;</description>
      <pubDate>Sat, 30 Jul 2016 05:13:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Access-is-denied-0x80070005-localhost-SAS-Workspace-1-0-39220/m-p/288293#M19663</guid>
      <dc:creator>JackDuan</dc:creator>
      <dc:date>2016-07-30T05:13:23Z</dc:date>
    </item>
    <item>
      <title>Re: Access is denied. 0x80070005 localhost SAS.Workspace.1.0 39220</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Access-is-denied-0x80070005-localhost-SAS-Workspace-1-0-39220/m-p/389644#M25149</link>
      <description>&lt;P&gt;I know this is an old thread but it is still pertinent. Can you explain the reasoning behind this&amp;nbsp;statement (I just want to understand it more):&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;BTW: i would not recommend to use the SAS integration DLLs directly in your Visual Studio project. Use the COM libraries instead.&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 21 Aug 2017 20:03:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Access-is-denied-0x80070005-localhost-SAS-Workspace-1-0-39220/m-p/389644#M25149</guid>
      <dc:creator>AlanC</dc:creator>
      <dc:date>2017-08-21T20:03:57Z</dc:date>
    </item>
    <item>
      <title>Re: Access is denied. 0x80070005 localhost SAS.Workspace.1.0 39220</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Access-is-denied-0x80070005-localhost-SAS-Workspace-1-0-39220/m-p/389650#M25150</link>
      <description>&lt;P&gt;The process of adding the COM references should generate some interop DLLs -- shim DLLs that box up the COM calls for you. &amp;nbsp;SAS ships these interop DLLs with SAS Enterprise Guide and SAS Add-In for Microsoft Office and the client itself. &amp;nbsp;Examples:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;"C:\Program Files\SASHome\x86\Integration Technologies\SASOLAPInterop.dll"
"C:\Program Files\SASHome\x86\Integration Technologies\SASOManInterop.dll"
"C:\Program Files\SASHome\x86\Integration Technologies\SASOMIInterop.dll"
"C:\Program Files\SASHome\x86\Integration Technologies\SASInterop.dll"&lt;/PRE&gt;
&lt;P&gt;It's easiest to simply reference those in your .NET project. &amp;nbsp;There are CHM files in the IntTech directory that document many of the APIs.&lt;/P&gt;</description>
      <pubDate>Mon, 21 Aug 2017 20:11:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Access-is-denied-0x80070005-localhost-SAS-Workspace-1-0-39220/m-p/389650#M25150</guid>
      <dc:creator>ChrisHemedinger</dc:creator>
      <dc:date>2017-08-21T20:11:38Z</dc:date>
    </item>
  </channel>
</rss>

