There is an article 'Troubleshooting Common Problems with the XmlSerializer ' (by Christoph Schittko) from msdn.microsoft.com. It mentions how to troubleshoot the same problem.
I reckon your structure 'AFRSServiceWS.AFRSSubmission' and txtSubmission.Text might not match in terms of namespaces. Cheers, Lee Tran -----Original Message----- From: Unmoderated discussion of advanced .NET topics. [mailto:[EMAIL PROTECTED] On Behalf Of Clark, Michael (OFM) Sent: Friday, 18 June 2004 2:39 To: [EMAIL PROTECTED] Subject: Re: [ADVANCED-DOTNET] Web Service Deserialization Problem I was glad to see another way to deserialize, thanks for that, but I get the same exception as before. -----Original Message----- From: SHEATHER,Kristoffer [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 16, 2004 7:37 PM To: [EMAIL PROTECTED] Subject: Re: [ADVANCED-DOTNET] Web Service Deserialization Problem Try this: ... using System.IO; ... TextReader reader = null; XmlSerializer serializer = null; AFRSServiceWS.AFRSSubmission Submission = null; try { serializer = new XmlSerializer(typeof(AFRSServiceWS.SubmissionObj)); reader = new StringReader(txtSubmission.Text.Trim()); submission = (AFRSServiceWS.AFRSSubmission) serializer.Deserialize(reader); } finally { reader.Close(); } ... I believe you may be experiencing an encoding issue, mind you I might be completely incorrect :) Regards, Kristoffer Sheather. =================================== This list is hosted by DevelopMentor(r) http://www.develop.com Some .NET courses you may be interested in: NEW! Guerrilla ASP.NET, 17 May 2004, in Los Angeles http://www.develop.com/courses/gaspdotnetls View archives and manage your subscription(s) at http://discuss.develop.com =================================== This list is hosted by DevelopMentor(r) http://www.develop.com Some .NET courses you may be interested in: NEW! Guerrilla ASP.NET, 17 May 2004, in Los Angeles http://www.develop.com/courses/gaspdotnetls View archives and manage your subscription(s) at http://discuss.develop.com Notice: The information contained in this e-mail message and any attached files may be confidential information, and may also be the subject of legal professional privilege. If you are not the intended recipient any use, disclosure or copying of this e-mail is unauthorised. If you have received this e-mail in error, please notify the sender immediately by reply e-mail and delete all copies of this transmission together with any attachments. =================================== This list is hosted by DevelopMentorŪ http://www.develop.com Some .NET courses you may be interested in: NEW! Guerrilla ASP.NET, 17 May 2004, in Los Angeles http://www.develop.com/courses/gaspdotnetls View archives and manage your subscription(s) at http://discuss.develop.com