ConnectionBuilder.Build throwing NotMyConnectionDataException (in .NET Zebra.Printer.SDK)

// Expert user has replied.
D Doug Horning 11 months 3 weeks ago
122 1 0

I've created a simple Windows console app to play around with the .NET Zebra.Printer.SDK (version 2.16.2905 in NuGet Packet Manager). I have also installed the DeveloperDemo_Windows project. 

Most operations have worked as expected. However, the Build method in the Zebra.Sdk.Comm.ConnectionBuilder class is not working. No matter what descriptionString is provided, a NotMyConnectionDataException is thrown (sample message: 'TCP_MULTI Connection doesn't understand TCP:10.1.1.227'). This occurs in both my code and the DeveloperDemo_Windows code. 

There is no reference in the API documentation regarding NotMyConnectionDataException. Is this new in a recent release? The ConnectionBuilder.Build method used to work when I was using an earlier version last year. (Sorry, I don't know what that version was but I will try to find out.)

This appears to be a bug. Any help would be greatly appreciated!

Please Register or Login to post a reply

1 Replies

S Steven Si

To use the ConnectionBuilder, the connection string needs to follow the format defined in the ConnectionBuilder API documentation. To create a multichannel connection, for example, the connection string should be "TCP_MULTI:10.80.23.45", or "TCP_MULTI:10.80.23.45:1234:5678" with the port numbers. I have tested the DeveloperDemo_Windows with the v2.16.2905 against the Connection Builder, and have no issues.

CONTACT
Can’t find what you’re looking for?