2009-06-06 34 views
7

我正在使用Windows Mobile 6,我在VS 2005中使用Sqlserver compact sp1创建了一个应用程序。此应用程序在模拟器上运行fine.But当我deply我的cab文件在真实设备上。我得到这种类型的错误: -无法显示错误消息,因为包含它的可选资源程序集无法找到

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

可以在任何一个可以帮助我.... 感谢..........

+1

老兄,接受答案 - 它的作品。 – skolima 2010-02-05 12:55:00

回答

13

字符串资源的一些错误消息默认情况下不会在移动设备上安装(为节省空间的原因,我会猜测)。如果您愿意,您可以手动安装这些资源。

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

您已经安装了资源文件后设备会显示消息时发生的错误。

+2

因为我刚刚得到了相同的错误和谷歌搜索它把我带到这里:在这篇文章和MSDN中的下载链接似乎都是过时的,你仍然可以在[微软中找到`.NET Compact Framework 2.0 Service Pack 2'下载中心](http://www.microsoft.com/en-us/download/details.aspx?id=17981) – seph 2014-02-12 09:24:00

相关问题