WooCommerce.NET icon indicating copy to clipboard operation
WooCommerce.NET copied to clipboard

error deserializing the object of type System.Collections.Generic.List (WooCommerce.NET, Version=0.8.4.0 )

Open mohamm4d opened this issue 3 years ago • 2 comments

I thought #600 solved the deserializing errors but I get the same error when get all payment gateways . (WooCommerce.NET, Version=0.8.4.0 ) . Please let me know your solution . code :

List<PaymentGateway> pgs = wc.PaymentGateway.GetAll().Result;

Error : System.Runtime.Serialization.SerializationException: There was an error deserializing the object of type System.Collections.Generic.List1[[WooCommerceNET.WooCommerce.v3.PaymentGateway, WooCommerce.NET, Version=0.8.4.0, Culture=neutral, PublicKeyToken=null]]. End element 'value' from namespace '' expected. Found element 'item' from namespace ''. ---> System.Xml.XmlException: End element 'value' from namespace '' expected. Found element 'item' from namespace ''.

mohamm4d avatar Dec 29 '21 06:12 mohamm4d

Hi,,I have the same problem.. Have you found any solution/workaround ?

sguagni avatar Feb 16 '22 15:02 sguagni

Good day! In Payment methods Settings turn on only Direct bank transfer and Cash on delivery and I get this error too

bynifaciy avatar May 11 '22 14:05 bynifaciy