微信公众号搜"智元新知"关注
微信扫一扫可直接关注哦!

.net – 无法显示错误消息,因为找不到包含它的可选资源程序集

我正在使用 Windows Mobile 6,我在VS 2005中使用sqlserver compact sp1创建了一个应用程序.这个应用程序在模拟器上运行很好.但是当我在真实设备上我的cab文件时,我得到了这种类型的错误: –

无法显示错误消息,因为找不到包含它的可选资源程序集.

任何人都可以帮助我….
谢谢……….

认情况下,移动设备上未安装某些错误消息的字符串资源(出于节省空间的原因,我猜).如果您愿意,可以手动安装这些资源.

MSDN开始:

To install .NET Compact Framework
resource files

  1. Verify if the .NET Compact Framework 2.0 Service Pack 2 or later
    is installed on your computer. If
    installed,proceed to Step 3.
  2. Download and install the .NET Compact Framework 2.0 Service Pack 2
    on your computer. The setup file for
    the .NET Compact Framework 2.0 Service
    Pack 2 can be found 07001.
  3. On your computer,browse to the location \Program
    Files\Microsoft.NET\SDK\CompactFramework\v2.0\WindowsCE\Diagnostics,
    and then copy the appropriate resource
    CAB file to the mobile device.
  4. On the mobile device,locate and tap the CAB file to install the
    resource pack.

安装资源文件后,设备将显示发生错误的消息.

原文地址:https://www.jb51.cc/windows/364596.html

版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。

相关推荐