title: Solving error MSB8011: Failed to register output
body: <p>A strange error:  </p>
  
  <blockquote>
    <p>error MSB8011: Failed to register output. Please try enabling Per-user
    Redirection or register the component from a command prompt with
    elevated permissions. C:\Program
    Files\MSBuild\Microsoft.Cpp\v4.0\Microsoft.CppCommon.targets  744</p>
  </blockquote>
  
  <p>I got this error when trying to use OpenSceneGraph (OSG) in an ActiveX control. A Google search showed all kinds of solutions which didn't really solve the problem or locate the exact cause of the error, so I'd like to put the solution in one place: Here.  </p>
  
  <p>I found the solution to it, and will be answering my own question soon, so that people can find their solution if they encounter the same problem.</p>