When call a webservice method an error ' ', hexadecimal value 0x19, is an invalid character is pointedhttp://forums.asp.net/t/1771707.aspx/1?When+call+a+webservice+method+an+error+hexadecimal+value+0x19+is+an+invalid+character+is+pointedFri, 24 Feb 2012 08:08:06 -050017717074841573http://forums.asp.net/p/1771707/4841573.aspx/1?When+call+a+webservice+method+an+error+hexadecimal+value+0x19+is+an+invalid+character+is+pointedWhen call a webservice method an error ' ', hexadecimal value 0x19, is an invalid character is pointed <p>Hi all,</p> <p>I got the following error when I consume a web service using a proxy object created by wsdl tool.</p> <p>' ', hexadecimal value 0x19, is an invalid character</p> <p>The result consist of a large string and it consist of html tags. The string is html encoded.&nbsp;</p> <p>How do I solve this?</p> <p>Thanks in advance</p> <p>Binoj k n</p> 2012-02-20T16:18:57-05:004844421http://forums.asp.net/p/1771707/4844421.aspx/1?Re+When+call+a+webservice+method+an+error+hexadecimal+value+0x19+is+an+invalid+character+is+pointedRe: When call a webservice method an error ' ', hexadecimal value 0x19, is an invalid character is pointed <p>Hi,</p> <p>According to your description ,I cannot target the problem.</p> <p>Similar Link:</p> <p><a href="http://forums.asp.net/t/1275972.aspx">http://forums.asp.net/t/1275972.aspx</a></p> <p>It would be appreciated if you can provide me more information.</p> 2012-02-22T06:26:01-05:004848795http://forums.asp.net/p/1771707/4848795.aspx/1?Re+When+call+a+webservice+method+an+error+hexadecimal+value+0x19+is+an+invalid+character+is+pointedRe: When call a webservice method an error ' ', hexadecimal value 0x19, is an invalid character is pointed <p>Hi Binoj,<br> <br> This does be a common issue when directly using string as parameter for transfer xml or html markup string in webservice or WCF service operations.<br> <br> As in the thread mentioned by Otomii, if you do want to figure out the root cause(the certain character), you can first get a repro(certain string parameter samples that can always cause the issue). Then, use binary search to locate the exact chars that cause the error.<br> <br> Or alternatively, we can consider some other approaches to avoid this issue. For example, if the HTML you transfer is of xHTML format, you can consider using .NET XElement or XmlElement type to transfer the data. That's the safe way to transfer xml markup data in webservice operations</p> 2012-02-24T08:08:06-05:00