[英]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: 当尝试从.net紧凑框架调用Web方法时,我在调试器中得到以下(无用)异常:
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 Web服务正常,因为我已经在正常的.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
我正在使用紧凑的框架v2.0,但我也尝试在v.3.5中创建一个简单的项目来测试我的问题 - 我花了一段时间试图解决这个问题 - 大多数解决方案 &.Net告诉我安装驾驶室文件名为(for v3.5) netcfv35.messages.en.wn.cab
(以及for v2.0) system_sr_enu.cab
和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). 首先我不知道为什么当我调用这个web方法时,我在紧凑框架中获得异常,当它在普通.net上工作时(它只返回一个具有一些字符串和整数属性的简单对象)。 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. 谢谢。
试试这里
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.