0 Replies Latest reply on Aug 27, 2018 12:34 PM by Mike Roosa

    Malformed status response in .net sdk

    Mike Roosa

      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.<PrintLabelAsync>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:

      DEVTALK Wednesday, December 13th 10 AM CDT -  Integrating Zebra Printers with Windows Via the New Link-OS C# SDK