Click to See Complete Forum and Search --> : InvalidOperationException


gskrishna
February 9th, 2005, 12:56 AM
Hi,

We are using VB.net for developing the windown application. Using webservices for updating and fetching the data to the server. It works fine as we are using this setup for quite some time. Now we are in to one big form where i need to take 50 inputs. with this the webservices raises a exception which i put down. can anyone faced the same problem and can suggest soemthing. Webservice works fine for all the input forms except this big one.

Thanks in advance

--- exception
?ex
{System.InvalidOperationException}
[System.InvalidOperationException]: {System.InvalidOperationException}
HelpLink: Nothing
InnerException: {System.ArgumentException}
Message: "There was an error generating the XML document."
Source: "System.Xml"
StackTrace: " at System.Xml.Serialization.XmlSerializer.Serialize(XmlWriter xmlWriter, Object o, XmlSerializerNamespaces namespaces, String encodingStyle)
at System.Xml.Serialization.XmlSerializer.Serialize(XmlWriter xmlWriter, Object o, XmlSerializerNamespaces namespaces)
at System.Web.Services.Protocols.SoapHttpClientProtocol.Serialize(SoapClientMessage message)
at System.Web.Services.Protocols.SoapHttpClientProtocol.Invoke(String methodName, Object[] parameters)
at NIC.RDS.WSProxyCommon.WS_UpdateService.InsertServiceTransaction(DataSet dsKioskData) in C:\RDS\Code\RDSKiosk\WSProxyCommon\WS_UpdateService.vb:line 42
at NIC.RDS.UICommonTemplates.frmBaseEntry.butSave_Click(Object sender, EventArgs e) in C:\RDS\Code\RDSKiosk\UICommonTemplates\frmBaseEntry.vb:line 1512"
TargetSite: {System.Reflection.RuntimeMethodInfo}


regards
krishna

Andy Tacker
February 9th, 2005, 02:07 AM
One rough Guess... it's related with your table in database... when you are using your dataset. some values are not matching... take a good look...

SatyaV
February 9th, 2005, 02:23 PM
I have seen this exception with webservices if there are any characters in the outgoing XML message that are in the extended ASCII region(127+) when sending char data.

TheCPUWizard
February 10th, 2005, 09:33 AM
Also various characters below 127 must be "escaped"...

gskrishna
February 15th, 2005, 01:42 AM
Hi Andy,

Nice guess!! it worked. There was problme with my dataset and table. but exception raised miss leading.

anyway thanks.