Hi,
I am facing a problem when I am retreiving a data from data
field of type 'nvarchar' which has unicode data from sql server 2008
and converting the data to xml format using web service in asp.net 3.5
with c#.
I am getting an error as "XML Parsing Error: reference to invalid character number".
I tried in google but i couldn't solve my problem.
Please, Help me...
XML Parser Error when using web services
4 Answers
Know the answer? Post it. Somebody with the same question will find it here.

Amit ChoudharyRank #145 · 15.8K reputationPosted Feb 17, 2011, 1:51 AM EST
Suthish NairRank #92 · 22.8K reputationPosted Feb 17, 2011, 11:00 AM EST
Sam HobbsRank #107 · 20.5K reputationPosted Feb 17, 2011, 3:06 PM EST
Amit: what do you mean by "snap of error"? Do you mean the exact time that the error occured (snapped)? If so, then are you sure that the Stack Trace shows that?
Amit ChoudharyRank #145 · 15.8K reputationPosted Feb 17, 2011, 9:22 PM EST
I guess the stack trace or the Exception SnapShot(Doesn't mean its time stamp based :)) AKA Screenshot. Let see if it could be helpful after looking at the exception details.