AnsweredAssumed Answered

Unable to cast COM object

Question asked by issaccohen1 on Jul 25, 2018
Latest reply on Jul 26, 2018 by issaccohen1

I'm working on a 3rd party program in order to achieve the ability to create some kind of report to my company.

In that case I need to push out some of the information from the Expedition. That's why I'm using the MGCPCB dlls using COM techniques.

But somehow every time I run my program the application fails with the mentioned error:

"Unable to cast COM object of type 'system.__ComObject' to interface type 'MGCPCB.ExpeditionPCBApplication'.


Was wondering if anyone could help me figure out how to fix this error as the dll fails to load with the saying : "no such interface supported".

btw, it worked few days ago and the information was exported successfully to the 3rd party program but suddenly it stopped working without a reason.


I'm using C#.


Thanks, Issac.