Skip to content

Unable to cast COM object of type 'System.__ComObject' to interface type 'CoreScanner.ICoreScanner'.  #5

@sohit3832

Description

@sohit3832

Hi,

I am using your C# SDK to create a project which uses Zebra D3678 HP barcode scanner to capture barcode and images. Then I exported the C# project as a .dll file and imported the dll file in my python backend code. When I ran the python code. I got the following error,
"Unable to cast COM object of type 'System.__ComObject' to interface type 'CoreScanner.ICoreScanner'. This operation failed because the QueryInterface call on the COM component for the interface with IID '{2105896C-2B38-4031-BD0B-7A9C4A39FB93}' failed due to the following error: Object is not connected to server (0x800401FD (CO_E_OBJNOTCONNECTED))." after couple of minutes.

The C# is used to capture and send both barcode data and image data (as string) to my python backend.
The same project was working fine when I used socket connection to communicate between python and C# codes.
But I am required to remove the socket connection dependency.

Please help me to solve this issue.

Thanks in advance.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions