Discussion:
System.Xml.XmlException: Root element is missing
(too old to reply)
Colin Blakey
2006-11-07 19:22:01 UTC
Permalink
Help!

I have a system service written in C# .NET 2.0 using WSE 2.0 SP3. I'm
getting this error when the service is attempting to login to the IRS. This
code works without problems when run as a standlone app, it only fails when
run as a service. I've tried running this code under differnet account
privileges but to no avail.

The execution stakc is as follows

System.Xml.XmlException: Root element is missing.
at System.Xml.XmlTextReaderImpl.Throw(Exception e)
at System.Xml.XmlTextReaderImpl.ThrowWithoutLineInfo(String res)
at System.Xml.XmlTextReaderImpl.ParseDocumentContent()
at System.Xml.XmlTextReaderImpl.Read()
at System.Xml.XmlTextReader.Read()
at Microsoft.Web.Services2.Xml.XmlSkipDTDReader.Read()
at System.Xml.XmlLoader.Load(XmlDocument doc, XmlReader reader, Boolean
preserveWhitespace)
at System.Xml.XmlDocument.Load(XmlReader reader)
at Microsoft.Web.Services2.SoapEnvelope.Load(Stream stream)
at Microsoft.Web.Services2.OutputStream.Close()
at System.Web.Services.Protocols.SoapHttpClientProtocol.Invoke(String
methodName, Object[] parameters)
at Vertex.EFile.IRS.FMS.Login.CallLogin(LoginRequestType LoginRequest)
at Vertex.EFile.IRS.Transmission.Login()'

Any ideas?
Pablo Cibraro [MVP]
2006-11-08 14:40:30 UTC
Permalink
Hi,

Is WSE logging any additional information in the eventlog ?.

Regards,
Pablo.
Post by Colin Blakey
Help!
I have a system service written in C# .NET 2.0 using WSE 2.0 SP3. I'm
getting this error when the service is attempting to login to the IRS. This
code works without problems when run as a standlone app, it only fails when
run as a service. I've tried running this code under differnet account
privileges but to no avail.
The execution stakc is as follows
System.Xml.XmlException: Root element is missing.
at System.Xml.XmlTextReaderImpl.Throw(Exception e)
at System.Xml.XmlTextReaderImpl.ThrowWithoutLineInfo(String res)
at System.Xml.XmlTextReaderImpl.ParseDocumentContent()
at System.Xml.XmlTextReaderImpl.Read()
at System.Xml.XmlTextReader.Read()
at Microsoft.Web.Services2.Xml.XmlSkipDTDReader.Read()
at System.Xml.XmlLoader.Load(XmlDocument doc, XmlReader reader, Boolean
preserveWhitespace)
at System.Xml.XmlDocument.Load(XmlReader reader)
at Microsoft.Web.Services2.SoapEnvelope.Load(Stream stream)
at Microsoft.Web.Services2.OutputStream.Close()
at System.Web.Services.Protocols.SoapHttpClientProtocol.Invoke(String
methodName, Object[] parameters)
at Vertex.EFile.IRS.FMS.Login.CallLogin(LoginRequestType LoginRequest)
at Vertex.EFile.IRS.Transmission.Login()'
Any ideas?
Colin Blakey
2006-11-08 17:36:02 UTC
Permalink
Pablo,

Alas, nothing is logged in either the event logs or SOAP trace.
Post by Pablo Cibraro [MVP]
Hi,
Is WSE logging any additional information in the eventlog ?.
Regards,
Pablo.
Post by Colin Blakey
Help!
I have a system service written in C# .NET 2.0 using WSE 2.0 SP3. I'm
getting this error when the service is attempting to login to the IRS. This
code works without problems when run as a standlone app, it only fails when
run as a service. I've tried running this code under differnet account
privileges but to no avail.
The execution stakc is as follows
System.Xml.XmlException: Root element is missing.
at System.Xml.XmlTextReaderImpl.Throw(Exception e)
at System.Xml.XmlTextReaderImpl.ThrowWithoutLineInfo(String res)
at System.Xml.XmlTextReaderImpl.ParseDocumentContent()
at System.Xml.XmlTextReaderImpl.Read()
at System.Xml.XmlTextReader.Read()
at Microsoft.Web.Services2.Xml.XmlSkipDTDReader.Read()
at System.Xml.XmlLoader.Load(XmlDocument doc, XmlReader reader, Boolean
preserveWhitespace)
at System.Xml.XmlDocument.Load(XmlReader reader)
at Microsoft.Web.Services2.SoapEnvelope.Load(Stream stream)
at Microsoft.Web.Services2.OutputStream.Close()
at System.Web.Services.Protocols.SoapHttpClientProtocol.Invoke(String
methodName, Object[] parameters)
at Vertex.EFile.IRS.FMS.Login.CallLogin(LoginRequestType LoginRequest)
at Vertex.EFile.IRS.Transmission.Login()'
Any ideas?
sdgsdg
2010-10-06 09:01:23 UTC
Permalink
sefsdfasdf

From http://www.developmentnow.com/g/28_2006_11_0_0_845108/System-Xml-XmlException-Root-element-is-missing.ht

Posted via DevelopmentNow.com Group
http://www.developmentnow.com/g/

Loading...