title: Problem overriding methods in VB.NET (Error BC30284)
body: <p>I have an overridable sub in my base class</p>
  
  <pre><code>Project1:
  Public Class BaseClass
      Protected Overridable Sub MySub(ByVal Parameter as MyType)
  End Class
  
  Project2:
  Public Class DerivedClass
      Inherits BaseClass
      Protected Overrides Sub MySub(ByVal Parameter as MyType)
  End Class
  </code></pre>
  
  <p>MyType is a type that comes from external COM library. When I'm trying to override it in a derived class, I'm getting </p>
  
  <p><code>error BC30284: sub 'MySub' cannot be declared 'Overrides' because it does not override a function in a base class</code></p>
  
  <p>I've added the required COM reference to both projects containing base and derived classes.
  Any idea how to get rid of this error? I'm using VS2005 and .NET 2.0</p>
  
  <p>Edit: Every other override is working fine, I'm only getting error if I'm using referenced COM types as parameters. If I change Parameter to Object, overriding works fine.</p>