title: ServerManager is throwing error when connecting to a remote full IIS server (Visual Studio 2013)
body: <p>Same code works fine under Visual Studio 2012 using VS Development Server option. Since VS2013 no longer have this option, I am forced to use the IISExpress server option. The error that is being thrown is:</p>
  
  <blockquote>
    <p>Retrieving the COM class factory for remote component with CLSID
    {2B72133B-3F5B-4602-8952-803546CE3344} from machine MachineName failed
    due to the following error: 80040154 MachineName.</p>
  </blockquote>
  
  <p>And here's my code:</p>
  
  <pre><code>using (ServerManager sm = ServerManager.OpenRemote(remoteMachineName))
  {
      foreach (Site site in sm.Sites)
      {
          // some code...
      }
  }
  </code></pre>
  
  <p>I am using version 7.0.0.0 of Microsoft.Web.Administration.dll. The remote machine has only full IIS 7.5. Since my code is running under IISExpress in Visual Studio 2013, I suspect that it's trying to connect to IISExpress in the remote machine which is not installed, hence, the error COM not found.</p>
  
  <p>Anyone encountered this before and found a fix?</p>