Fighting a strange problem. A Missing Member Exception is raised when I try to call an interface method in the concrete class. However, the project compiles just fine. Anyone run into this? Any ideas on how to get around this?
More details: -IMyDBServices interface -MyDBServices implementation of IMyDBServices interfaces -MyBusObj class implements IMyDBServices interfaces. The interface in question is IMyCollection, which has two overloads defined for Remove, one that takes a integer and one that takes an IMyItem interface. All of the above are C#. The GUI is VB.NET. When the code in the GUI tries to call IMyCollection.Remove(), passing an interface, the MissingMemberException is raised. The strange thing is that the stack trace indicates that VB is doing some late binding. ******************************* StackTrace " at Microsoft.VisualBasic.CompilerServices.LateBinding.InternalLateCall(Obje ct o, Type objType, String name, Object[] args, String[] paramnames, Boolean[] CopyBack, Boolean IgnoreReturn) at Microsoft.VisualBasic.CompilerServices.LateBinding.LateCall(Object o, Type objType, String name, Object[] args, String[] paramnames, Boolean[] CopyBack) at PKProUI.fmnuCos.grdCos_NameCol_ProcessGridKey(Object sender, KeyEventArgs e) in D:\VSSWorkDir\PKMulyo\PKPro\dotNET\GUI\fmnuCos.vb:line 1682" String ******************************** The actual error message is: "Public member 'Remove' on type 'CoNameCol' not found." One other note, the business object variable is declared as type IMyCollection, then instantiated as MyBusObj. Thanks for any ideas. Dan ------------------------ Dan Souk Finna Technologies, Inc. 2410 Lindsay Ct West Chicago, IL 60185 +1-630-762-8257 phone +1-630-762-8258 fax http://www.finnatech.com You can read messages from the DOTNET archive, unsubscribe from DOTNET, or subscribe to other DevelopMentor lists at http://discuss.develop.com.