title: ASP.NET and Remoting: "Failed to connect to an IPC Port: Access is denied."
body: <p>I have a c# .NET 2.0 Windows Service that listens on an IPC port for remoting requests.  The service runs as the "Local Service" account.</p>
  
  <p>I have an ASP.NET application that attempts to make calls on the remoted objects.  The ASP.NET application runs on XP as IUSR_<em>MachineName</em>.  Calls on the remoted objects are failing with the error:</p>
  
  <pre><code>Failed to connect to an IPC Port: Access is denied.
  </code></pre>
  
  <p>I did some research and most solutions indicate that I need to set the "authorizedGroup" property on the remoting channel to a group that I want to allow to access to the IPC port.  So I did the following:</p>
  
  <ol>
  <li>Changed my code to allow "Everyone" access to the IPC port:</li>
  </ol>
  
  <blockquote>
  <pre><code>   HashTable table; // properties
     //...
     table.Add("authorizedGroup", "Everyone");                          
  
     table.Add("portName", name);
     // etc
     IpcChannel  channel = new IpcChannel(table, clientSink,
     serverSink);
  </code></pre>
  </blockquote>
  
  <p>2 . Then I added IUSR_<em>MachineName</em> to the local "Users" group on my machine, which I was hoping would make it included in the "Everyone" alias.</p>
  
  <p>But I tried to run it again and i am still getting "Failed to connect to an IPC Port: Access is denied."</p>
  
  <p>Any ideas?</p>