PHPFixing
  • Privacy Policy
  • TOS
  • Ask Question
  • Contact Us
  • Home
  • PHP
  • Programming
  • SQL Injection
  • Web3.0

Thursday, May 19, 2022

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

 May 19, 2022     .net, compact-framework, exception, visual-studio-2008, web-services     No comments   

Issue

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

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



Answered By - Alex1984
Answer Checked By - Timothy Miller (PHPFixing Admin)
  • Share This:  
  •  Facebook
  •  Twitter
  •  Stumble
  •  Digg
Newer Post Older Post Home

0 Comments:

Post a Comment

Note: Only a member of this blog may post a comment.

Total Pageviews

1,216,298

Featured Post

Why Learn PHP Programming

Why Learn PHP Programming A widely-used open source scripting language PHP is one of the most popular programming languages in the world. It...

Subscribe To

Posts
Atom
Posts
Comments
Atom
Comments

Copyright © 2025 PHPFixing