Malformed status response in .net sdk

M Mike Roosa 3 years 7 months ago
168 1 0

I'm using the .net sdk and my code seems to be working fine for most of our printers. We have about 25 printers, but with 2 of them I'm getting this error:

Malformed status response - unable to determine printer status

We've tried unplugging the printer and resetting them, but no luck.

The line of code that is getting the error is
var printerStatus = printer.GetCurrentStatus();

Zebra.Sdk.Comm.ConnectionException
  HResult=0x80131500
  Message=Malformed status response - unable to determine printer status
  Source=SdkApi_Core
  StackTrace:
   at Zebra.Sdk.Printer.Internal.PrinterStatusZpl.GetPrinterStatus()
   at Zebra.Sdk.Printer.Internal.PrinterStatusZpl.UpdateStatus()
   at Zebra.Sdk.Printer.PrinterStatus.GetStatusFromPrinter()
   at Zebra.Sdk.Printer.PrinterStatus..ctor(Connection printerConnection)
   at Zebra.Sdk.Printer.Internal.ZebraPrinterZpl.GetCurrentStatus()
   at LabelPrint.Helpers.PrintHelper.CheckStatus(ZebraPrinter printer) in D:\code\label-print\LabelPrint\Helpers\PrintHelper.cs:line 52
   at LabelPrint.Services.PrintService.c__DisplayClass0_0.b__0() in D:\code\label-print\LabelPrint\Services\PrintService.cs:line 21
   at System.Threading.Tasks.Task.InnerInvoke()
   at System.Threading.Tasks.Task.Execute()

Any ideas on what I can look at. I used the code from here as a guide:

Please Register or Login to post a reply

1 Replies

E Ezra Weinstein

Hi Mike, did you ever resolve this problem?  I have the same issue happening with some of my printers. Thanks in advance for your help.

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