title: COMException in C# when hooking into event
body: <p>I am receiving a COM Exception when trying to hook into an event on a COM Object.  Here is the code I am trying to execute.</p>
  
  <p><code>
  COMClass a = IComClass as ComClass; <br>
  a.SomeEvent += new SomeEvent_EventHandler(MethodNameHere);
  </code></p>
  
  <p>Line two throws an exception of type COMException with the following information:</p>
  
  <p>System.Runtime.InteropServices.COMException was caught</p>
  
  <p>Message="Exception from HRESULT: 0x80040202"</p>
  
  <p>Source="mscorlib"</p>
  
  <p>ErrorCode=-2147220990</p>
  
  <p>StackTrace:
         at System.Runtime.InteropServices.ComTypes.IConnectionPoint.Advise(Object pUnkSink, Int32&amp; pdwCookie)</p>
  
  <p>Does anyone have any ideas why I am unable to hook into a COM event or if there is a workaround for hooking into COM events?</p>