"TypeLoadException" Web Services

  • Thread starter Thread starter MR
  • Start date Start date
M

MR

Hi ,

I wrote a little application that accesses some web
services. When I run it using the emulator, it runs
perfectly fine, but when I run it in the actual device I
get an Exception "An unhandled exception of
type 'System.TypeLoadException' occurred in
System.Web.Services.dll" on the line of code:

this.Url= "http://192.168.1.100/wsIntegrate/AdvantageServic
e.asmx"; //file create by the WSDL.exe

Any tips or idea of what I am doing wrong?

Thanks,
Manuel
..
 
For some reason 2 dlls that were being loaded into the
emulator were not loaded into the device. To know this I
just follow the instalation when depolying in both and I
found the difference. After that I just copied them and
the application runs fine.

Thanks,
Manuel
 
Another point is that for some reason under ".Net Compact
Framework" directory I had a "system.data.dll" which I
don't know how it got there. The refrence in my program
has a reference "System.Data.dll" that may be a different
version and therefore causing a problem. The solution was
to delete the "system.data.dll" and my program ran fine.

Manuel
 
Back
Top