System.Xml.XmlException: ' ', hexadecimal value 0x01 , is an invalid character

System.Xml.XmlException: ' ', hexadecimal value 0x01 , is an invalid character

Post by C.Sanjeeva Redd » Sun, 24 Nov 2002 00:06:49



Hi,

I get the following exception when accessing a .NET remote
object from ASP.NET client and a WebService.

.NET remote object makes P/Invoke calls to a legacy C dll.
This exception is coming while marshalling content from a
c structure to a c# class.

I have attached the structures and others details.Could you
please help in this error.

Special Attention: Thomos Scheidegger[MVP] NETMaster
Previous post: Mapping C structure to c# class

Regards
Sanjeeva

System.Xml.XmlException: ' ', hexadecimal value 0x01, is
an invalid character. Line 55, position 31.

Server stack trace:
   at System.Xml.XmlScanner.ScanContent()
   at
System.Xml.XmlTextReader.ParseBeginTagExpandCharEntities()
   at System.Xml.XmlTextReader.Read()
   at
System.Runtime.Serialization.Formatters.Soap.SoapParser.Par
seXml()
   at
System.Runtime.Serialization.Formatters.Soap.SoapParser.Run
()
   at
System.Runtime.Serialization.Formatters.Soap.ObjectReader.D
eserialize(HeaderHandler handler, ISerParser serParser)
   at
System.Runtime.Serialization.Formatters.Soap.SoapFormatter.
Deserialize(Stream serializationStream, HeaderHandler
handler)
   at
System.Runtime.Remoting.Channels.CoreChannel.DeserializeSoa
pResponseMessage(Stream inputStream, IMessage requestMsg,
Header[] h, Boolean bStrictBinding)
   at
System.Runtime.Remoting.Channels.SoapClientFormatterSink.De
serializeMessage(IMethodCallMessage mcm, ITransportHeaders
headers, Stream stream)
   at
System.Runtime.Remoting.Channels.SoapClientFormatterSink.Sy
ncProcessMessage(IMessage msg)

Exception rethrown at [0]:
   at
System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessa
ge(IMessage reqMsg, IMessage retMsg)
   at
System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke
(MessageData& msgData, Int32 type)
   at ClassLibrary1.Class2.GetCustomerList(String
postcode) in c:\workbench6\as400service\classlibrary1
\class2.cs:line 62
   at WebService1.Service1.CustomerLookup(String postcode)
in c:\inetpub\wwwroot\webservice1\service1.asmx.cs:line 91

  interop.txt
4K Download
 
 
 

1. Character '<', hexdecimal value 0x3c is illegal in XML attribute values

Hi

I keep getting this stupid error message: Character '<', hexdecimal
value 0x3c is illegal in XML attribute values.

This is the line of code it objects to:

<input type="hidden" name="id" id="id" value="<?php print $id;?>"></
input>

It does not like the <?php tag, which is tough because it is what we
want it to do.

Why is it evaluating it as XML? Its a php document.

And how do I get rid of these stupid compiler messages.

2. Source for Borland Turbo C, C++ Libraries

3. HELP: Serialization error: "' ', hexadec imal value 0x06, is an invalid character

4. Merril Lynch

5. 'Invalid character value for cast specification'

6. DASD Performance & Capacity Planning/Dallas, TX

7. hexadecimal value 0x0C, is an invalid character

8. WANTED: Analog board from Mac 512Ke

9. XML Schema Validation : Invalid 'id' attribute value

10. Value of type 'String' cannot be converted to 'System.Drawing.Color'

11. How: Changing the look of the 'Invalid Property Value' warning in a PropertyGrid?

12. Invalid value for key 'integrated security'

13. Cannot implicitly convert type 'System.Windows.Forms.MouseEventHandler' to 'System.EventHandler'