安装CAB文件无助于解决“无法显示错误消息...可选资源程序集...找不到”的问题
因此,我阅读了一些关于在运行 Compact Framework (Windows Mobile) 设备时未收到正确错误消息的问题。我收到错误:
无法显示错误消息 因为可选的资源组件 找不到包含它的内容。
几个网站以及 stackoverflow 上的答案都引用了这篇文章: http://blogs.msdn.com/b/netcfteam /archive/2004/08/06/210232.aspx
在那篇文章中说:
如果您没有使用 Visual Studio F5 部署到设备上,并且仍然会 喜欢查看异常消息, 你可以通过采取来实现这一点 System_SR_[语言].CAB 其中 [Language]对应语言 你想看到其中的错误 出现消息并单击 cab 文件来安装它。
我从以下位置复制了 System_SR_ENU.cab 和 System_SR_ENU_wm.cab:C:\Program
Files (x86)\Microsoft Visual Studio 8\SmartDevices\SDK\CompactFramework\2.0\v1.0\WindowsCE\Diagnostics
并安装了 CAB 文件(一个一次)。 然而,这是行不通的。完全没有。
我已从 Visual Studio 目录复制并安装了两个此类 cab 文件。安装很顺利,没有错误,但仍然有同样的错误。
我运行的设备具有 WM 5.0 到 WM 6.5,设备范围从 Dell Axim v51 到 HTC HD2(以及介于两者之间的一些东西)。
有什么好主意吗?
So I have read a little on the problem with not getting decent error messages when running om Compact Framework (Windows Mobile) devices. I get the error:
An error message cannot be displayed
because an optional resource assembly
containing it cannot be found.
Several sites, and also answers here on stackoverflow, references this article:
http://blogs.msdn.com/b/netcfteam/archive/2004/08/06/210232.aspx
In that article it says that:
If you are not using Visual Studio F5
deploy to the device and would still
like to see the exception messages,
you can achieve this by taking the
System_SR_[Language].CAB where
[Language] corresponds to the language
in which you want to see the error
message to appear and clicking on the
cab file to install it.
I copied the System_SR_ENU.cab and System_SR_ENU_wm.cab from location:
C:\Program Files (x86)\Microsoft Visual Studio 8\SmartDevices\SDK\CompactFramework\2.0\v1.0\WindowsCE\Diagnostics
and installed the CAB-files (one at a time).
That, however, does not work. At all.
I have copied and installed two such cab-files from my Visual Studio directory. The installtion goes well, no errors, but nonetheless I still have the same error.
I am running devices that has WM 5.0 up till WM 6.5 and the devices ranges from Dell Axim v51 to HTC HD2 (and some stuff in between).
Any bright ideas?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您有这个软件的源代码吗?您是否尝试过提取 cab 并直接在项目中直接添加对 System.SR.dll 的引用。过去,当我遇到无法在 cab 文件中工作的奇怪顽固设备时,这对我很有用。
我只在开发环境中这样做过,所以如果您需要发送错误消息,那么您可能会回到原点。
Is this a piece of software you have the source code for ? Have you tried extracting the cab and directly adding a reference to System.SR.dll directly within your project. This has worked for me in the past when I have come across the odd stubborn device that would not work from the cab file.
I have only ever done this in a development environment so if you need to ship the error messages then you may be back to square one.