title: How to fix COM outproc server initializing error 0x80004015?
body: <p>I have a COM outproc server written in ATL that registers itself using</p>
  
  <pre><code>_Module.RegisterClassObjects(CLSCTX_LOCAL_SERVER, REGCLS_SINGLEUSE)
  </code></pre>
  
  <p>and it results in an HRESULT error code 0x80004015 (which means CO_E_WRONG_SERVER_IDENTITY). What causes this error code, and how can I work around this error?</p>