These sort of problems are normally seen when you try to access a COM component with wrong parameter types for the methods. If you call this COM component form a .NET callable wrapper, make sure that the paramater you passed to the method is correct..
If you can post the code snippets , then I will be able to help you to a certain extend..
Tom