title: instantiate COM object fail Unable to cast object
body: <p>I have a COM object created with C# .net framework 2.0, the COM client a windows application  net framework 4.6.1. 
  COM client fail to  instantiate COM object, the exception is - Unable to cast object.
  By setting useLegacyV2RuntimeActivationPolicy in the COM client app.config to false, instantiate COM object successful.</p>
  
  <p>Can you please explain this?
  is there a way that we instantiate COM object with useLegacyV2RuntimeActivationPolicy  set to true?  </p>
  
  <p>Code for COM object we took from :
  <a href="https://www.codeproject.com/Articles/35532/C-COM-Object-for-Use-In-JavaScript-HTML-Including" rel="nofollow noreferrer">https://www.codeproject.com/Articles/35532/C-COM-Object-for-Use-In-JavaScript-HTML-Including</a></p>
  
  <p>We replace the client with windows application.</p>
  
  <p><a href="https://i.stack.imgur.com/9Uj9k.png" rel="nofollow noreferrer">fail casting</a></p>
  
  <p><a href="https://i.stack.imgur.com/3D1uC.png" rel="nofollow noreferrer">registry com object</a></p>