title: Publish Wizard Errors in VS2010 and 2012
body: <p>I've been using the Publish Wizard in VS2010 to deploy my MVC app and I've got no issues there but intermittently the publish will fail with the following error.</p>
  
  <blockquote>
    <p>Error 23  Web deployment task failed.(Could not complete the request to
    remote agent URL 'https://webserver:8172/msdeploy.axd?site=mysite'.)</p>
    
    <p>Could not complete the request to remote agent URL
    'https://webserver:8172/msdeploy.axd?site=mysite'. The request was
    aborted: The request was canceled. COM object that has been separated
    from its underlying RCW cannot be used.</p>
  </blockquote>
  
  <p>It seems to happen at random but the longer I have VS open the more likely it is to occur and the guaranteed way to fix it is to restart VS but it occurs like clockwork if I leave VS open for prolonged periods of time (all day or overnight) and is starting to get very frustrating to have to restart VS every time it happens. I honestly don't recall if the error number is always 23 or not, I'll look for that next time it happens, but has anyone else had this problem or know what might be causing it?</p>
  
  <p><strong>Update:</strong>
  The problem is still present when using VS2012 as well.</p>