[1/27/2026 12:19:49 PM] CONNECTED
[1/27/2026 12:19:56 PM] MESSAGE: [{"to":"invoice","inv":5999}]
[1/27/2026 1:20:26 PM] System.InvalidOperationException: Cannot access child value on Newtonsoft.Json.Linq.JValue.
   at Newtonsoft.Json.Linq.JToken.get_Item(Object key)
   at WebPrinter.Program.printinvoice(String[] args) in D:\Projects\Ransiri Bakery\WebPrinter\WebPrinter\Program.cs:line 188
[1/28/2026 3:58:14 PM] System.InvalidOperationException: Cannot access child value on Newtonsoft.Json.Linq.JValue.
   at Newtonsoft.Json.Linq.JToken.get_Item(Object key)
   at TCafe.Common.POSInvoiceLetterHalf.SetInvoiceHead() in D:\Projects\Ransiri Bakery\WebPrinter\WebPrinter\POSInvoiceLetterHalf.cs:line 212
   at TCafe.Common.POSInvoiceLetterHalf.DrawBill(Graphics g, PrintPageEventArgs e) in D:\Projects\Ransiri Bakery\WebPrinter\WebPrinter\POSInvoiceLetterHalf.cs:line 132
   at TCafe.Common.POSInvoiceLetterHalf.print_PrintPage(Object sender, PrintPageEventArgs e) in D:\Projects\Ransiri Bakery\WebPrinter\WebPrinter\POSInvoiceLetterHalf.cs:line 121
   at System.Drawing.Printing.PrintDocument.OnPrintPage(PrintPageEventArgs e)
   at System.Drawing.Printing.PrintDocument._OnPrintPage(PrintPageEventArgs e)
   at System.Drawing.Printing.PrintController.PrintLoop(PrintDocument document)
   at System.Drawing.Printing.PrintController.Print(PrintDocument document)
   at System.Drawing.Printing.PrintDocument.Print()
   at TCafe.Common.POSInvoiceLetterHalf.PrintPOSInvoice(Byte p) in D:\Projects\Ransiri Bakery\WebPrinter\WebPrinter\POSInvoiceLetterHalf.cs:line 49
   at WebPrinter.Program.printinvoice(String[] args) in D:\Projects\Ransiri Bakery\WebPrinter\WebPrinter\Program.cs:line 146
[1/28/2026 6:18:19 PM] System.InvalidOperationException: Cannot access child value on Newtonsoft.Json.Linq.JValue.
   at Newtonsoft.Json.Linq.JToken.get_Item(Object key)
   at WebPrinter.Program.printinvoice(String[] args) in D:\Projects\Ransiri Bakery\WebPrinter\WebPrinter\Program.cs:line 487
[1/28/2026 6:21:20 PM] System.InvalidOperationException: Cannot access child value on Newtonsoft.Json.Linq.JValue.
   at Newtonsoft.Json.Linq.JToken.get_Item(Object key)
   at WebPrinter.Program.printinvoice(String[] args) in D:\Projects\Ransiri Bakery\WebPrinter\WebPrinter\Program.cs:line 487
[1/28/2026 6:24:14 PM] System.InvalidOperationException: Cannot access child value on Newtonsoft.Json.Linq.JValue.
   at Newtonsoft.Json.Linq.JToken.get_Item(Object key)
   at WebPrinter.Program.printinvoice(String[] args)
[1/28/2026 6:25:11 PM] System.NullReferenceException: Object reference not set to an instance of an object.
   at WebPrinter.Program.printinvoice(String[] args)
[1/28/2026 6:44:39 PM] Newtonsoft.Json.JsonReaderException: Error reading JObject from JsonReader. Path '', line 0, position 0.
   at Newtonsoft.Json.Linq.JObject.Load(JsonReader reader, JsonLoadSettings settings)
   at Newtonsoft.Json.Linq.JObject.Parse(String json, JsonLoadSettings settings)
   at Newtonsoft.Json.Linq.JObject.Parse(String json)
   at WebPrinter.Program.printinvoice(String[] args) in D:\Projects\Ransiri Bakery\WebPrinter\WebPrinter\Program.cs:line 451
[1/28/2026 8:50:41 PM] System.Drawing.Printing.InvalidPrinterException: Settings to access printer 'EPSON LQ-310 ESC/P2 (Copy 2)' are not valid.
   at System.Windows.Forms.PrintPreviewDialog.CreateHandle()
   at System.Windows.Forms.Control.get_Handle()
   at System.Windows.Forms.Application.ThreadContext.RunMessageLoopInner(Int32 reason, ApplicationContext context)
   at System.Windows.Forms.Application.ThreadContext.RunMessageLoop(Int32 reason, ApplicationContext context)
   at System.Windows.Forms.Application.RunDialog(Form form)
   at System.Windows.Forms.Form.ShowDialog(IWin32Window owner)
   at System.Windows.Forms.Form.ShowDialog()
   at TCafe.Common.POSInvoiceLetterHalf.PrintPOSInvoice(Byte p) in D:\Projects\Ransiri Bakery\WebPrinter\WebPrinter\POSInvoiceLetterHalf.cs:line 48
   at WebPrinter.Program.printinvoice(String[] args) in D:\Projects\Ransiri Bakery\WebPrinter\WebPrinter\Program.cs:line 146
[1/28/2026 8:50:48 PM] System.Drawing.Printing.InvalidPrinterException: Settings to access printer 'EPSON LQ-310 ESC/P2 (Copy 2)' are not valid.
   at System.Windows.Forms.PrintPreviewDialog.CreateHandle()
   at System.Windows.Forms.Control.get_Handle()
   at System.Windows.Forms.Application.ThreadContext.RunMessageLoopInner(Int32 reason, ApplicationContext context)
   at System.Windows.Forms.Application.ThreadContext.RunMessageLoop(Int32 reason, ApplicationContext context)
   at System.Windows.Forms.Application.RunDialog(Form form)
   at System.Windows.Forms.Form.ShowDialog(IWin32Window owner)
   at System.Windows.Forms.Form.ShowDialog()
   at TCafe.Common.POSInvoiceLetterHalf.PrintPOSInvoice(Byte p) in D:\Projects\Ransiri Bakery\WebPrinter\WebPrinter\POSInvoiceLetterHalf.cs:line 48
   at WebPrinter.Program.printinvoice(String[] args) in D:\Projects\Ransiri Bakery\WebPrinter\WebPrinter\Program.cs:line 146
[1/28/2026 8:54:33 PM] System.Drawing.Printing.InvalidPrinterException: Settings to access printer 'EPSON LQ-310 ESC/P2 (Copy 2)' are not valid.
   at System.Windows.Forms.PrintPreviewDialog.CreateHandle()
   at System.Windows.Forms.Control.get_Handle()
   at System.Windows.Forms.Application.ThreadContext.RunMessageLoopInner(Int32 reason, ApplicationContext context)
   at System.Windows.Forms.Application.ThreadContext.RunMessageLoop(Int32 reason, ApplicationContext context)
   at System.Windows.Forms.Application.RunDialog(Form form)
   at System.Windows.Forms.Form.ShowDialog(IWin32Window owner)
   at System.Windows.Forms.Form.ShowDialog()
   at TCafe.Common.POSInvoiceLetterHalf.PrintPOSInvoice(Byte p) in D:\Projects\Ransiri Bakery\WebPrinter\WebPrinter\POSInvoiceLetterHalf.cs:line 48
   at WebPrinter.Program.printinvoice(String[] args) in D:\Projects\Ransiri Bakery\WebPrinter\WebPrinter\Program.cs:line 146
[1/28/2026 8:54:37 PM] System.Drawing.Printing.InvalidPrinterException: Settings to access printer 'EPSON LQ-310 ESC/P2 (Copy 2)' are not valid.
   at System.Windows.Forms.PrintPreviewDialog.CreateHandle()
   at System.Windows.Forms.Control.get_Handle()
   at System.Windows.Forms.Application.ThreadContext.RunMessageLoopInner(Int32 reason, ApplicationContext context)
   at System.Windows.Forms.Application.ThreadContext.RunMessageLoop(Int32 reason, ApplicationContext context)
   at System.Windows.Forms.Application.RunDialog(Form form)
   at System.Windows.Forms.Form.ShowDialog(IWin32Window owner)
   at System.Windows.Forms.Form.ShowDialog()
   at TCafe.Common.POSInvoiceLetterHalf.PrintPOSInvoice(Byte p) in D:\Projects\Ransiri Bakery\WebPrinter\WebPrinter\POSInvoiceLetterHalf.cs:line 48
   at WebPrinter.Program.printinvoice(String[] args) in D:\Projects\Ransiri Bakery\WebPrinter\WebPrinter\Program.cs:line 146
[1/28/2026 8:56:06 PM] System.Drawing.Printing.InvalidPrinterException: Settings to access printer 'EPSON LQ-310 ESC/P2 (Copy 2)' are not valid.
   at System.Windows.Forms.PrintPreviewDialog.CreateHandle()
   at System.Windows.Forms.Control.get_Handle()
   at System.Windows.Forms.Application.ThreadContext.RunMessageLoopInner(Int32 reason, ApplicationContext context)
   at System.Windows.Forms.Application.ThreadContext.RunMessageLoop(Int32 reason, ApplicationContext context)
   at System.Windows.Forms.Application.RunDialog(Form form)
   at System.Windows.Forms.Form.ShowDialog(IWin32Window owner)
   at System.Windows.Forms.Form.ShowDialog()
   at TCafe.Common.POSInvoiceLetterHalf.PrintPOSInvoice(Byte p) in D:\Projects\Ransiri Bakery\WebPrinter\WebPrinter\POSInvoiceLetterHalf.cs:line 48
   at WebPrinter.Program.printinvoice(String[] args) in D:\Projects\Ransiri Bakery\WebPrinter\WebPrinter\Program.cs:line 146
[1/28/2026 8:56:29 PM] System.Drawing.Printing.InvalidPrinterException: Settings to access printer 'EPSON LQ-310 ESC/P2 (Copy 2)' are not valid.
   at System.Windows.Forms.PrintPreviewDialog.CreateHandle()
   at System.Windows.Forms.Control.get_Handle()
   at System.Windows.Forms.Application.ThreadContext.RunMessageLoopInner(Int32 reason, ApplicationContext context)
   at System.Windows.Forms.Application.ThreadContext.RunMessageLoop(Int32 reason, ApplicationContext context)
   at System.Windows.Forms.Application.RunDialog(Form form)
   at System.Windows.Forms.Form.ShowDialog(IWin32Window owner)
   at System.Windows.Forms.Form.ShowDialog()
   at TCafe.Common.POSInvoiceLetterHalf.PrintPOSInvoice(Byte p) in D:\Projects\Ransiri Bakery\WebPrinter\WebPrinter\POSInvoiceLetterHalf.cs:line 48
   at WebPrinter.Program.printinvoice(String[] args) in D:\Projects\Ransiri Bakery\WebPrinter\WebPrinter\Program.cs:line 146
[1/28/2026 8:56:39 PM] System.Drawing.Printing.InvalidPrinterException: Settings to access printer 'EPSON LQ-310 ESC/P2 (Copy 2)' are not valid.
   at System.Windows.Forms.PrintPreviewDialog.CreateHandle()
   at System.Windows.Forms.Control.get_Handle()
   at System.Windows.Forms.Application.ThreadContext.RunMessageLoopInner(Int32 reason, ApplicationContext context)
   at System.Windows.Forms.Application.ThreadContext.RunMessageLoop(Int32 reason, ApplicationContext context)
   at System.Windows.Forms.Application.RunDialog(Form form)
   at System.Windows.Forms.Form.ShowDialog(IWin32Window owner)
   at System.Windows.Forms.Form.ShowDialog()
   at TCafe.Common.POSInvoiceLetterHalf.PrintPOSInvoice(Byte p) in D:\Projects\Ransiri Bakery\WebPrinter\WebPrinter\POSInvoiceLetterHalf.cs:line 48
   at WebPrinter.Program.printinvoice(String[] args) in D:\Projects\Ransiri Bakery\WebPrinter\WebPrinter\Program.cs:line 146
[1/29/2026 12:34:46 AM] System.Net.WebException: Unable to connect to the remote server ---> System.Net.Sockets.SocketException: No connection could be made because the target machine actively refused it 192.168.1.18:8001
   at System.Net.Sockets.Socket.DoConnect(EndPoint endPointSnapshot, SocketAddress socketAddress)
   at System.Net.ServicePoint.ConnectSocketInternal(Boolean connectFailure, Socket s4, Socket s6, Socket& socket, IPAddress& address, ConnectSocketState state, IAsyncResult asyncResult, Exception& exception)
   --- End of inner exception stack trace ---
   at System.Net.HttpWebRequest.GetResponse()
   at UniverMS.WebTask.GetFromWeb(String webfile) in D:\Projects\Ransiri Bakery\WebPrinter\WebPrinter\WebTask.cs:line 63
[1/29/2026 12:34:46 AM] Newtonsoft.Json.JsonReaderException: Error reading JObject from JsonReader. Path '', line 0, position 0.
   at Newtonsoft.Json.Linq.JObject.Load(JsonReader reader, JsonLoadSettings settings)
   at Newtonsoft.Json.Linq.JObject.Parse(String json, JsonLoadSettings settings)
   at Newtonsoft.Json.Linq.JObject.Parse(String json)
   at WebPrinter.Program.printinvoice(String[] args) in D:\Projects\Ransiri Bakery\WebPrinter\WebPrinter\Program.cs:line 127
[1/29/2026 12:35:06 AM] System.Net.WebException: Unable to connect to the remote server ---> System.Net.Sockets.SocketException: No connection could be made because the target machine actively refused it 192.168.1.18:8001
   at System.Net.Sockets.Socket.DoConnect(EndPoint endPointSnapshot, SocketAddress socketAddress)
   at System.Net.ServicePoint.ConnectSocketInternal(Boolean connectFailure, Socket s4, Socket s6, Socket& socket, IPAddress& address, ConnectSocketState state, IAsyncResult asyncResult, Exception& exception)
   --- End of inner exception stack trace ---
   at System.Net.HttpWebRequest.GetResponse()
   at UniverMS.WebTask.GetFromWeb(String webfile) in D:\Projects\Ransiri Bakery\WebPrinter\WebPrinter\WebTask.cs:line 63
[1/29/2026 12:35:06 AM] Newtonsoft.Json.JsonReaderException: Error reading JObject from JsonReader. Path '', line 0, position 0.
   at Newtonsoft.Json.Linq.JObject.Load(JsonReader reader, JsonLoadSettings settings)
   at Newtonsoft.Json.Linq.JObject.Parse(String json, JsonLoadSettings settings)
   at Newtonsoft.Json.Linq.JObject.Parse(String json)
   at WebPrinter.Program.printinvoice(String[] args) in D:\Projects\Ransiri Bakery\WebPrinter\WebPrinter\Program.cs:line 127
[1/29/2026 12:35:41 AM] System.Net.WebException: Unable to connect to the remote server ---> System.Net.Sockets.SocketException: No connection could be made because the target machine actively refused it 192.168.1.18:8001
   at System.Net.Sockets.Socket.DoConnect(EndPoint endPointSnapshot, SocketAddress socketAddress)
   at System.Net.ServicePoint.ConnectSocketInternal(Boolean connectFailure, Socket s4, Socket s6, Socket& socket, IPAddress& address, ConnectSocketState state, IAsyncResult asyncResult, Exception& exception)
   --- End of inner exception stack trace ---
   at System.Net.HttpWebRequest.GetResponse()
   at UniverMS.WebTask.GetFromWeb(String webfile) in D:\Projects\Ransiri Bakery\WebPrinter\WebPrinter\WebTask.cs:line 63
[1/29/2026 12:35:41 AM] Newtonsoft.Json.JsonReaderException: Error reading JObject from JsonReader. Path '', line 0, position 0.
   at Newtonsoft.Json.Linq.JObject.Load(JsonReader reader, JsonLoadSettings settings)
   at Newtonsoft.Json.Linq.JObject.Parse(String json, JsonLoadSettings settings)
   at Newtonsoft.Json.Linq.JObject.Parse(String json)
   at WebPrinter.Program.printinvoice(String[] args) in D:\Projects\Ransiri Bakery\WebPrinter\WebPrinter\Program.cs:line 127
[1/29/2026 8:47:01 PM] System.Drawing.Printing.InvalidPrinterException: Settings to access printer 'EPSON LQ-310 ESC/P2 (Copy 1)' are not valid.
   at System.Windows.Forms.PrintPreviewDialog.CreateHandle()
   at System.Windows.Forms.Control.get_Handle()
   at System.Windows.Forms.Application.ThreadContext.RunMessageLoopInner(Int32 reason, ApplicationContext context)
   at System.Windows.Forms.Application.ThreadContext.RunMessageLoop(Int32 reason, ApplicationContext context)
   at System.Windows.Forms.Application.RunDialog(Form form)
   at System.Windows.Forms.Form.ShowDialog(IWin32Window owner)
   at System.Windows.Forms.Form.ShowDialog()
   at TCafe.Common.POSInvoiceLetterHalf.PrintPOSInvoice(Byte p) in D:\Projects\Ransiri Bakery\WebPrinter\WebPrinter\POSInvoiceLetterHalf.cs:line 53
   at WebPrinter.Program.printinvoice(String[] args) in D:\Projects\Ransiri Bakery\WebPrinter\WebPrinter\Program.cs:line 146
[1/29/2026 8:48:13 PM] System.TypeInitializationException: The type initializer for 'TCafe.Common.POSInvoiceLetterHalf' threw an exception. ---> System.ArgumentException: An item with the same key has already been added.
   at System.ThrowHelper.ThrowArgumentException(ExceptionResource resource)
   at System.Collections.Generic.Dictionary`2.Insert(TKey key, TValue value, Boolean add)
   at System.Collections.Generic.Dictionary`2.Add(TKey key, TValue value)
   at TCafe.Common.POSInvoiceLetterHalf..cctor() in D:\Projects\Ransiri Bakery\WebPrinter\WebPrinter\POSInvoiceLetterHalf.cs:line 24
   --- End of inner exception stack trace ---
   at WebPrinter.Program.printinvoice(String[] args) in D:\Projects\Ransiri Bakery\WebPrinter\WebPrinter\Program.cs:line 145
[1/29/2026 8:48:17 PM] System.TypeInitializationException: The type initializer for 'TCafe.Common.POSInvoiceLetterHalf' threw an exception. ---> System.ArgumentException: An item with the same key has already been added.
   at System.ThrowHelper.ThrowArgumentException(ExceptionResource resource)
   at System.Collections.Generic.Dictionary`2.Insert(TKey key, TValue value, Boolean add)
   at System.Collections.Generic.Dictionary`2.Add(TKey key, TValue value)
   at TCafe.Common.POSInvoiceLetterHalf..cctor() in D:\Projects\Ransiri Bakery\WebPrinter\WebPrinter\POSInvoiceLetterHalf.cs:line 24
   --- End of inner exception stack trace ---
   at WebPrinter.Program.printinvoice(String[] args) in D:\Projects\Ransiri Bakery\WebPrinter\WebPrinter\Program.cs:line 145
[1/29/2026 8:48:28 PM] System.TypeInitializationException: The type initializer for 'TCafe.Common.POSInvoiceLetterHalf' threw an exception. ---> System.ArgumentException: An item with the same key has already been added.
   at System.ThrowHelper.ThrowArgumentException(ExceptionResource resource)
   at System.Collections.Generic.Dictionary`2.Insert(TKey key, TValue value, Boolean add)
   at System.Collections.Generic.Dictionary`2.Add(TKey key, TValue value)
   at TCafe.Common.POSInvoiceLetterHalf..cctor() in D:\Projects\Ransiri Bakery\WebPrinter\WebPrinter\POSInvoiceLetterHalf.cs:line 24
   --- End of inner exception stack trace ---
   at WebPrinter.Program.printinvoice(String[] args) in D:\Projects\Ransiri Bakery\WebPrinter\WebPrinter\Program.cs:line 145
[1/29/2026 9:00:28 PM] System.Net.WebException: Unable to connect to the remote server ---> System.Net.Sockets.SocketException: No connection could be made because the target machine actively refused it 192.168.1.18:8001
   at System.Net.Sockets.Socket.DoConnect(EndPoint endPointSnapshot, SocketAddress socketAddress)
   at System.Net.ServicePoint.ConnectSocketInternal(Boolean connectFailure, Socket s4, Socket s6, Socket& socket, IPAddress& address, ConnectSocketState state, IAsyncResult asyncResult, Exception& exception)
   --- End of inner exception stack trace ---
   at System.Net.HttpWebRequest.GetResponse()
   at UniverMS.WebTask.GetFromWeb(String webfile) in D:\Projects\Ransiri Bakery\WebPrinter\WebPrinter\WebTask.cs:line 63
[1/29/2026 9:00:28 PM] Newtonsoft.Json.JsonReaderException: Error reading JObject from JsonReader. Path '', line 0, position 0.
   at Newtonsoft.Json.Linq.JObject.Load(JsonReader reader, JsonLoadSettings settings)
   at Newtonsoft.Json.Linq.JObject.Parse(String json, JsonLoadSettings settings)
   at Newtonsoft.Json.Linq.JObject.Parse(String json)
   at WebPrinter.Program.printinvoice(String[] args) in D:\Projects\Ransiri Bakery\WebPrinter\WebPrinter\Program.cs:line 127
[1/29/2026 9:10:56 PM] System.Net.WebException: Unable to connect to the remote server ---> System.Net.Sockets.SocketException: No connection could be made because the target machine actively refused it 192.168.1.18:8001
   at System.Net.Sockets.Socket.DoConnect(EndPoint endPointSnapshot, SocketAddress socketAddress)
   at System.Net.ServicePoint.ConnectSocketInternal(Boolean connectFailure, Socket s4, Socket s6, Socket& socket, IPAddress& address, ConnectSocketState state, IAsyncResult asyncResult, Exception& exception)
   --- End of inner exception stack trace ---
   at System.Net.HttpWebRequest.GetResponse()
   at UniverMS.WebTask.GetFromWeb(String webfile) in D:\Projects\Ransiri Bakery\WebPrinter\WebPrinter\WebTask.cs:line 63
[1/29/2026 9:10:56 PM] Newtonsoft.Json.JsonReaderException: Error reading JObject from JsonReader. Path '', line 0, position 0.
   at Newtonsoft.Json.Linq.JObject.Load(JsonReader reader, JsonLoadSettings settings)
   at Newtonsoft.Json.Linq.JObject.Parse(String json, JsonLoadSettings settings)
   at Newtonsoft.Json.Linq.JObject.Parse(String json)
   at WebPrinter.Program.printinvoice(String[] args) in D:\Projects\Ransiri Bakery\WebPrinter\WebPrinter\Program.cs:line 127
[1/29/2026 9:11:20 PM] System.Net.WebException: Unable to connect to the remote server ---> System.Net.Sockets.SocketException: No connection could be made because the target machine actively refused it 192.168.1.18:8001
   at System.Net.Sockets.Socket.DoConnect(EndPoint endPointSnapshot, SocketAddress socketAddress)
   at System.Net.ServicePoint.ConnectSocketInternal(Boolean connectFailure, Socket s4, Socket s6, Socket& socket, IPAddress& address, ConnectSocketState state, IAsyncResult asyncResult, Exception& exception)
   --- End of inner exception stack trace ---
   at System.Net.HttpWebRequest.GetResponse()
   at UniverMS.WebTask.GetFromWeb(String webfile) in D:\Projects\Ransiri Bakery\WebPrinter\WebPrinter\WebTask.cs:line 63
[1/29/2026 9:11:20 PM] Newtonsoft.Json.JsonReaderException: Error reading JObject from JsonReader. Path '', line 0, position 0.
   at Newtonsoft.Json.Linq.JObject.Load(JsonReader reader, JsonLoadSettings settings)
   at Newtonsoft.Json.Linq.JObject.Parse(String json, JsonLoadSettings settings)
   at Newtonsoft.Json.Linq.JObject.Parse(String json)
   at WebPrinter.Program.printinvoice(String[] args) in D:\Projects\Ransiri Bakery\WebPrinter\WebPrinter\Program.cs:line 127
[1/30/2026 8:34:57 AM] System.TypeInitializationException: The type initializer for 'TCafe.Common.POSInvoiceLetterHalf' threw an exception. ---> System.ArgumentException: An item with the same key has already been added.
   at System.ThrowHelper.ThrowArgumentException(ExceptionResource resource)
   at System.Collections.Generic.Dictionary`2.Insert(TKey key, TValue value, Boolean add)
   at System.Collections.Generic.Dictionary`2.Add(TKey key, TValue value)
   at TCafe.Common.POSInvoiceLetterHalf..cctor() in D:\Projects\Ransiri Bakery\WebPrinter\WebPrinter\POSInvoiceLetterHalf.cs:line 24
   --- End of inner exception stack trace ---
   at WebPrinter.Program.printinvoice(String[] args) in D:\Projects\Ransiri Bakery\WebPrinter\WebPrinter\Program.cs:line 145
[1/30/2026 8:35:11 AM] System.TypeInitializationException: The type initializer for 'TCafe.Common.POSInvoiceLetterHalf' threw an exception. ---> System.ArgumentException: An item with the same key has already been added.
   at System.ThrowHelper.ThrowArgumentException(ExceptionResource resource)
   at System.Collections.Generic.Dictionary`2.Insert(TKey key, TValue value, Boolean add)
   at System.Collections.Generic.Dictionary`2.Add(TKey key, TValue value)
   at TCafe.Common.POSInvoiceLetterHalf..cctor() in D:\Projects\Ransiri Bakery\WebPrinter\WebPrinter\POSInvoiceLetterHalf.cs:line 24
   --- End of inner exception stack trace ---
   at WebPrinter.Program.printinvoice(String[] args) in D:\Projects\Ransiri Bakery\WebPrinter\WebPrinter\Program.cs:line 145
[1/30/2026 8:40:01 AM] System.Net.WebException: The remote server returned an error: (404) Not Found.
   at System.Net.HttpWebRequest.GetResponse()
   at UniverMS.WebTask.GetFromWeb(String webfile) in D:\Projects\Ransiri Bakery\WebPrinter\WebPrinter\WebTask.cs:line 63
[1/30/2026 8:40:01 AM] Newtonsoft.Json.JsonReaderException: Error reading JObject from JsonReader. Path '', line 0, position 0.
   at Newtonsoft.Json.Linq.JObject.Load(JsonReader reader, JsonLoadSettings settings)
   at Newtonsoft.Json.Linq.JObject.Parse(String json, JsonLoadSettings settings)
   at Newtonsoft.Json.Linq.JObject.Parse(String json)
   at WebPrinter.Program.printinvoice(String[] args) in D:\Projects\Ransiri Bakery\WebPrinter\WebPrinter\Program.cs:line 127
[1/30/2026 8:41:05 AM] System.Net.WebException: The remote server returned an error: (404) Not Found.
   at System.Net.HttpWebRequest.GetResponse()
   at UniverMS.WebTask.GetFromWeb(String webfile) in D:\Projects\Ransiri Bakery\WebPrinter\WebPrinter\WebTask.cs:line 63
[1/30/2026 8:41:05 AM] Newtonsoft.Json.JsonReaderException: Error reading JObject from JsonReader. Path '', line 0, position 0.
   at Newtonsoft.Json.Linq.JObject.Load(JsonReader reader, JsonLoadSettings settings)
   at Newtonsoft.Json.Linq.JObject.Parse(String json, JsonLoadSettings settings)
   at Newtonsoft.Json.Linq.JObject.Parse(String json)
   at WebPrinter.Program.printinvoice(String[] args) in D:\Projects\Ransiri Bakery\WebPrinter\WebPrinter\Program.cs:line 127
[1/30/2026 8:41:23 AM] System.Net.WebException: The remote server returned an error: (404) Not Found.
   at System.Net.HttpWebRequest.GetResponse()
   at UniverMS.WebTask.GetFromWeb(String webfile) in D:\Projects\Ransiri Bakery\WebPrinter\WebPrinter\WebTask.cs:line 63
[1/30/2026 8:49:52 AM] System.Net.WebException: The remote server returned an error: (404) Not Found.
   at System.Net.HttpWebRequest.GetResponse()
   at UniverMS.WebTask.GetFromWeb(String webfile) in D:\Projects\Ransiri Bakery\WebPrinter\WebPrinter\WebTask.cs:line 63
[1/30/2026 8:55:46 AM] System.Net.WebException: The remote server returned an error: (404) Not Found.
   at System.Net.HttpWebRequest.GetResponse()
   at UniverMS.WebTask.GetFromWeb(String webfile) in D:\Projects\Ransiri Bakery\WebPrinter\WebPrinter\WebTask.cs:line 63
[2/7/2026 10:34:26 PM] System.Net.WebException: The request was aborted: The connection was closed unexpectedly.
   at System.Net.HttpWebRequest.GetResponse()
   at UniverMS.WebTask.GetFromWeb(String webfile) in D:\Projects\Ransiri Bakery\WebPrinter\WebPrinter\WebTask.cs:line 63
[2/7/2026 10:37:03 PM] System.Net.WebException: The request was aborted: The connection was closed unexpectedly.
   at System.Net.HttpWebRequest.GetResponse()
   at UniverMS.WebTask.GetFromWeb(String webfile) in D:\Projects\Ransiri Bakery\WebPrinter\WebPrinter\WebTask.cs:line 63
[2/7/2026 10:37:12 PM] System.Net.WebException: The remote server returned an error: (404) Not Found.
   at System.Net.HttpWebRequest.GetResponse()
   at UniverMS.WebTask.GetFromWeb(String webfile) in D:\Projects\Ransiri Bakery\WebPrinter\WebPrinter\WebTask.cs:line 63
[2/7/2026 10:37:50 PM] System.Net.WebException: The remote server returned an error: (404) Not Found.
   at System.Net.HttpWebRequest.GetResponse()
   at UniverMS.WebTask.GetFromWeb(String webfile) in D:\Projects\Ransiri Bakery\WebPrinter\WebPrinter\WebTask.cs:line 63
[2/7/2026 10:38:12 PM] System.Net.WebException: The remote server returned an error: (404) Not Found.
   at System.Net.HttpWebRequest.GetResponse()
   at UniverMS.WebTask.GetFromWeb(String webfile) in D:\Projects\Ransiri Bakery\WebPrinter\WebPrinter\WebTask.cs:line 63
[2/8/2026 12:47:24 PM] Newtonsoft.Json.JsonReaderException: Error reading JArray from JsonReader. Current JsonReader item is not an array: StartObject. Path '', line 1, position 1.
   at Newtonsoft.Json.Linq.JArray.Load(JsonReader reader, JsonLoadSettings settings)
   at Newtonsoft.Json.Linq.JArray.Parse(String json, JsonLoadSettings settings)
   at Newtonsoft.Json.Linq.JArray.Parse(String json)
   at WebPrinter.Program.printinvoice(String[] args) in D:\Projects\Ransiri Bakery\WebPrinter\WebPrinter\Program.cs:line 402
[2/8/2026 12:47:31 PM] Newtonsoft.Json.JsonReaderException: Error reading JArray from JsonReader. Current JsonReader item is not an array: StartObject. Path '', line 1, position 1.
   at Newtonsoft.Json.Linq.JArray.Load(JsonReader reader, JsonLoadSettings settings)
   at Newtonsoft.Json.Linq.JArray.Parse(String json, JsonLoadSettings settings)
   at Newtonsoft.Json.Linq.JArray.Parse(String json)
   at WebPrinter.Program.printinvoice(String[] args) in D:\Projects\Ransiri Bakery\WebPrinter\WebPrinter\Program.cs:line 402
[2/8/2026 12:50:34 PM] System.NullReferenceException: Object reference not set to an instance of an object.
   at WebPrinter.Program.printkotbot(String type, JToken jObject, String ikey, List`1& lilist)
   at WebPrinter.Program.printinvoice(String[] args)
[2/8/2026 12:52:26 PM] System.NullReferenceException: Object reference not set to an instance of an object.
   at WebPrinter.Program.printkotbot(String type, JToken jObject, String ikey, List`1& lilist) in D:\Projects\Ransiri Bakery\WebPrinter\WebPrinter\Program.cs:line 435
   at WebPrinter.Program.printinvoice(String[] args) in D:\Projects\Ransiri Bakery\WebPrinter\WebPrinter\Program.cs:line 412
[2/8/2026 12:55:15 PM] System.NullReferenceException: Object reference not set to an instance of an object.
   at WebPrinter.Program.printkotbot(String type, JToken jObject, String ikey, List`1& lilist) in D:\Projects\Ransiri Bakery\WebPrinter\WebPrinter\Program.cs:line 435
   at WebPrinter.Program.printinvoice(String[] args) in D:\Projects\Ransiri Bakery\WebPrinter\WebPrinter\Program.cs:line 412
[2/8/2026 12:57:37 PM] System.NullReferenceException: Object reference not set to an instance of an object.
   at WebPrinter.Program.printkotbot(String type, JToken jObject, String ikey, List`1& lilist) in D:\Projects\Ransiri Bakery\WebPrinter\WebPrinter\Program.cs:line 435
   at WebPrinter.Program.printinvoice(String[] args) in D:\Projects\Ransiri Bakery\WebPrinter\WebPrinter\Program.cs:line 412
[2/8/2026 1:07:53 PM] System.Net.WebException: The remote server returned an error: (500) Internal Server Error.
   at System.Net.HttpWebRequest.GetResponse()
   at UniverMS.WebTask.GetFromWeb(String webfile) in D:\Projects\Ransiri Bakery\WebPrinter\WebPrinter\WebTask.cs:line 63
[2/8/2026 1:07:53 PM] Newtonsoft.Json.JsonReaderException: Error reading JObject from JsonReader. Path '', line 0, position 0.
   at Newtonsoft.Json.Linq.JObject.Load(JsonReader reader, JsonLoadSettings settings)
   at Newtonsoft.Json.Linq.JObject.Parse(String json, JsonLoadSettings settings)
   at Newtonsoft.Json.Linq.JObject.Parse(String json)
   at WebPrinter.Program.printinvoice(String[] args) in D:\Projects\Ransiri Bakery\WebPrinter\WebPrinter\Program.cs:line 402
[2/8/2026 1:08:00 PM] System.Net.WebException: The remote server returned an error: (500) Internal Server Error.
   at System.Net.HttpWebRequest.GetResponse()
   at UniverMS.WebTask.GetFromWeb(String webfile) in D:\Projects\Ransiri Bakery\WebPrinter\WebPrinter\WebTask.cs:line 63
[2/8/2026 1:08:00 PM] Newtonsoft.Json.JsonReaderException: Error reading JObject from JsonReader. Path '', line 0, position 0.
   at Newtonsoft.Json.Linq.JObject.Load(JsonReader reader, JsonLoadSettings settings)
   at Newtonsoft.Json.Linq.JObject.Parse(String json, JsonLoadSettings settings)
   at Newtonsoft.Json.Linq.JObject.Parse(String json)
   at WebPrinter.Program.printinvoice(String[] args) in D:\Projects\Ransiri Bakery\WebPrinter\WebPrinter\Program.cs:line 402
[2/8/2026 1:15:58 PM] System.Net.WebException: The remote server returned an error: (500) Internal Server Error.
   at System.Net.HttpWebRequest.GetResponse()
   at UniverMS.WebTask.GetFromWeb(String webfile) in D:\Projects\Ransiri Bakery\WebPrinter\WebPrinter\WebTask.cs:line 63
[2/8/2026 1:15:58 PM] Newtonsoft.Json.JsonReaderException: Error reading JObject from JsonReader. Path '', line 0, position 0.
   at Newtonsoft.Json.Linq.JObject.Load(JsonReader reader, JsonLoadSettings settings)
   at Newtonsoft.Json.Linq.JObject.Parse(String json, JsonLoadSettings settings)
   at Newtonsoft.Json.Linq.JObject.Parse(String json)
   at WebPrinter.Program.printinvoice(String[] args) in D:\Projects\Ransiri Bakery\WebPrinter\WebPrinter\Program.cs:line 402
[2/8/2026 1:16:14 PM] System.Net.WebException: The remote server returned an error: (500) Internal Server Error.
   at System.Net.HttpWebRequest.GetResponse()
   at UniverMS.WebTask.GetFromWeb(String webfile) in D:\Projects\Ransiri Bakery\WebPrinter\WebPrinter\WebTask.cs:line 63
[2/8/2026 1:16:14 PM] Newtonsoft.Json.JsonReaderException: Error reading JObject from JsonReader. Path '', line 0, position 0.
   at Newtonsoft.Json.Linq.JObject.Load(JsonReader reader, JsonLoadSettings settings)
   at Newtonsoft.Json.Linq.JObject.Parse(String json, JsonLoadSettings settings)
   at Newtonsoft.Json.Linq.JObject.Parse(String json)
   at WebPrinter.Program.printinvoice(String[] args) in D:\Projects\Ransiri Bakery\WebPrinter\WebPrinter\Program.cs:line 402
[2/8/2026 1:16:20 PM] System.Net.WebException: The remote server returned an error: (500) Internal Server Error.
   at System.Net.HttpWebRequest.GetResponse()
   at UniverMS.WebTask.GetFromWeb(String webfile) in D:\Projects\Ransiri Bakery\WebPrinter\WebPrinter\WebTask.cs:line 63
[2/8/2026 1:16:20 PM] Newtonsoft.Json.JsonReaderException: Error reading JObject from JsonReader. Path '', line 0, position 0.
   at Newtonsoft.Json.Linq.JObject.Load(JsonReader reader, JsonLoadSettings settings)
   at Newtonsoft.Json.Linq.JObject.Parse(String json, JsonLoadSettings settings)
   at Newtonsoft.Json.Linq.JObject.Parse(String json)
   at WebPrinter.Program.printinvoice(String[] args) in D:\Projects\Ransiri Bakery\WebPrinter\WebPrinter\Program.cs:line 402
[2/8/2026 1:16:31 PM] System.Net.WebException: The remote server returned an error: (500) Internal Server Error.
   at System.Net.HttpWebRequest.GetResponse()
   at UniverMS.WebTask.GetFromWeb(String webfile) in D:\Projects\Ransiri Bakery\WebPrinter\WebPrinter\WebTask.cs:line 63
[2/8/2026 1:18:45 PM] System.NullReferenceException: Object reference not set to an instance of an object.
   at WebPrinter.Program.printkotbot(String type, JToken jObject, String ikey, List`1& lilist) in D:\Projects\Ransiri Bakery\WebPrinter\WebPrinter\Program.cs:line 465
   at WebPrinter.Program.printinvoice(String[] args) in D:\Projects\Ransiri Bakery\WebPrinter\WebPrinter\Program.cs:line 414
[2/8/2026 1:34:39 PM] System.NullReferenceException: Object reference not set to an instance of an object.
   at WebPrinter.Program.printkotbot(String type, JToken jObject, String ikey, List`1& lilist) in D:\Projects\Ransiri Bakery\WebPrinter\WebPrinter\Program.cs:line 455
   at WebPrinter.Program.printinvoice(String[] args) in D:\Projects\Ransiri Bakery\WebPrinter\WebPrinter\Program.cs:line 418
[2/11/2026 1:37:24 PM] diningtablelist
[2/11/2026 1:37:45 PM] diningtablelist
[2/11/2026 1:39:27 PM] diningtablelist
[2/11/2026 1:39:44 PM] diningtablelist
[2/11/2026 1:40:43 PM] diningtablelist
[2/11/2026 1:42:05 PM] diningtablelist
[2/11/2026 1:44:27 PM] diningtablelist
[2/11/2026 1:44:37 PM] diningtablelist
[4/15/2026 11:03:12 PM] System.Net.WebException: The remote server returned an error: (500) Internal Server Error.
   at System.Net.HttpWebRequest.GetResponse()
   at UniverMS.WebTask.SendToWeb(String webfile, String postvalues) in D:\Projects\Web Printer\WebPrinter\WebPrinter\WebTask.cs:line 31
[5/12/2026 12:50:58 AM] System.Net.WebException: The remote server returned an error: (500) Internal Server Error.
   at System.Net.HttpWebRequest.GetResponse()
   at UniverMS.WebTask.SendToWeb(String webfile, String postvalues) in D:\Projects\Web Printer\WebPrinter\WebPrinter\WebTask.cs:line 31
