Eror while Adding dll fiels to Ax 2009

now how can i consume that AddProduct(Product product, string name, string id) function, is there any alternate way to consume?

I already answered this question. You have to create an instance of Product. But it can’t by any class called Product, it must be the Product from the correct namespace (which you haven’t told me). The namespace is actually a part of the name, therefore App1.Product and App2.Product are two classes with different names.

thanks martin, now i can able to pass class instance, in previous case dot net dll method having parameters class type and enum also. So i got the error, after converting enum vlaue i can able to call AddProduct(Product, enum, string).

Thanks again