abrudtkuhl / WordPressSharp

A C# client to to interact with the WordPress XML-RPC API
abrudtkuhl.github.io/WordPressSharp/
GNU General Public License v3.0
103 stars 49 forks source link

DTD is prohibited in this XML document. #65

Open guillogc opened 7 years ago

guillogc commented 7 years ago

ON some WP servers I get this exception when triying to post.

Instead of getting the Post ID, this exception is thrown.

The message says "Response contains invalid XML"

Can anyone help me?

Thank you!!

[XmlException: DTD is prohibited in this XML document.] System.Xml.XmlTextReaderImpl.Throw(Exception e) +88 System.Xml.XmlTextReaderImpl.ParseDoctypeDecl() +7593544 System.Xml.XmlTextReaderImpl.ParseDocumentContent() +664 System.Xml.XmlReader.MoveToContent() +27 CookComputing.XmlRpc.d__a.MoveNext() +104 CookComputing.XmlRpc.XmlRpcResponseDeserializer.DeserializeResponse(XmlReader rdr, Type returnType) +169

abrudtkuhl commented 7 years ago

@guillogc can you provide more information about the data you are trying to post?

abrudtkuhl commented 7 years ago

ping @guillogc