简体   繁体   English

如何从.net紧凑框架调用Web方法而不会出现异常

[英]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.cabsystem_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.

相关问题 从.net紧凑框架中的exe获取图标 - Getting icon from exe in .net compact framework 如何在.NET Compact Framework上通过代码最小化表单 - How can I minimize a form by code on .NET Compact Framework 如何使用.NET Compact Framework 2.0播放Midi文件? - How can I play a midi file with .NET compact framework 2.0? 我如何确定紧凑框架具有哪些.Net功能? - How can i determine which .Net features the compact framework has? 在 .NET 紧凑型框架中获取程序集版本而不加载它 - Getting Version of an Assembly without loading it in .NET Compact Framework 获取exe文件的版本而不在.NET Compact Framework中加载 - Getting the version of an exe file without loading in .NET Compact Framework .NET紧凑框架和内存管理:OOM异常 - .NET compact framework and memory management: OOM Exception 我怎么可以转换使用StandardInput和StandardOutput在.NET Compact Framework的C#应用​​程序? - How can I convert a C# application that uses StandardInput and StandardOutput in .NET Compact Framework? 如何使用 C# .Net Compact Framework 打开图像并编辑图像。 - How can I open an image and edit the image with C# .Net Compact Framework. 如何从 .NET Framework 调用 .NET Core 程序集中的方法 - How to call a method in a .NET Core assembly from .NET Framework
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM