Kataku Kataku - 1 year ago 199
C# Question

org.xml.sax.SAXParseException: Content is not allowed in prolog when consuming service in .net

I am getting this error: org.xml.sax.SAXParseException: Content is not allowed in prolog. when consuming a goberment webservice, the thing is that everything was working fine until last friday.
the web service is


and it returns a seed that needs to be signed. the strange thing is if you consume this service with a test program like .net webservice studio it throws the error, but if you consumes this service with http://www.soapclient.com/soaptest.html it works fine.

any ideas?

Answer Source

Problem is an Windows Update (KB3147461). 2 solutions:

  1. Uninstall it and try again.
  2. Is it on Windows 10? Update you application to Framework 4.6.
Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download