Error Message Com/OLE

Hanen
Hanen Member Posts: 281
Hello,

Can anyone tell me about this error message?

Thanks for help!!!
Regards

Hanen TALBI

Comments

  • AdrianAkers
    AdrianAkers Member Posts: 137
    What is that NavisionInvoice.IInvoice doing?
  • AdrianAkers
    AdrianAkers Member Posts: 137
    Also this looks like the variable is declared wrong as though the actual interface types have been chosen and this is why you can not create instance of type interface IInvoice.

    If anything I would expect to see the variable declared as NavisionInvoice.Invoice
  • Hanen
    Hanen Member Posts: 281
    NavisionInvoice.IInvoice is an automation dll written in C# consuming a WCF service.
    The interface is called IInvoice.
    Regards

    Hanen TALBI
  • AdrianAkers
    AdrianAkers Member Posts: 137
    But that means that the C# automation has not been written correctly.

    Is this similar to the problem you were getting with this post?

    viewtopic.php?f=23&t=42270

    Your variable should not be declared of type IInvoice...

    Can you post a screenshot of the variable definition in NAV so we can see what is exposed by the automation...