IPAK ERROR, EMULATOR FINE

  • Thread starter Thread starter Alfonso
  • Start date Start date
A

Alfonso

The next code works fine in the emulator but in the ipaq
3700 with pocket pc 2002 doesn't.

Its a button that make a call to a web service.

The error is:
System.LoadTypeException

Thank you

private void button1_Click(object sender, System.EventArgs
e)
{
carlosj.IWSCRservice ws = new carlosj.IWSCRservice();

XmlDocument dd = new XmlDocument();

if (radioButton1.Checked == true) dd.LoadXml
(ws.ActualizarClientes("8"));
if (radioButton2.Checked == true) dd.LoadXml
(ws.ActualizarArticulos("DEMO","8","1","11"));
if (radioButton3.Checked == true) dd.LoadXml
(ws.ActualizarConceptos ("DEMO","8"));

textBox1.Text = dd.InnerXml.ToString();


XmlNodeReader reader = new XmlNodeReader(dd);
DataSet ds = new DataSet();
ds.ReadXml(reader);
reader.Close();
dataGrid1.DataSource = ds.Tables[0].DefaultView;
dataGrid1.DataBindings.Add("",ds,ds.Tables[0].TableName);



}
 
Alfonso,

Can you run the code under the debugger to determine which line is
generating the type load exception? Also, do you know which version (i.e.
Service Pack) of the .NET Compact Framwork is installed on the iPAQ?

Thanks,

Bruce Johnson
..NET Compact Framework

This posting is provided "AS IS" with no warranties, and confers no rights.
 
Back
Top