.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.

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

相关文章

Windows2012R2备用域控搭建 前置操作 域控主域控的主dns:自...
主域控角色迁移和夺取(转载) 转载自:http://yupeizhi.blo...
Windows2012R2 NTP时间同步 Windows2012R2里没有了internet时...
Windows注册表操作基础代码 Windows下对注册表进行操作使用的...
黑客常用WinAPI函数整理之前的博客写了很多关于Windows编程的...
一个简单的Windows Socket可复用框架说起网络编程,无非是建...