Search code examples
.netvisual-studio-2008web-servicesexceptioncompact-framework

How can I call a web method from .net compact framework without getting an exception


When trying to call a web method from the .net compact framework I get the following (useless) exception in the debugger:

An error message cannot be displayed because an optional resource assembly containing it cannot be found

I get a slightly differently worded error on the mobile device, but it effectively says the same thing.

The web service works as I've tested it in normal .net

I'm using compact framework v2.0, but I'm also tried creating a simple project in v.3.5 to test my problem - I've spent a while trying to solve this - most solutions & .Net tell me install the cab file called (for v3.5) netcfv35.messages.en.wn.cab (and for v2.0 either) system_sr_enu.cab and system_sr_enu_wm.cab

First I don't know why when I call this web method I am getting an exception in the compact framework when it works on normal .net (it only returns a simple object that has some string and integer properties). Further to that, I can't work out what is wrong as the exception doesn't display properly. Does anyone have any information that would help me? Thanks.


Solution

  • try this here

    ​​​​​​​​​​​​​​​​​