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

由网友(贴着心的温暖)分享简介:我的工作在Windows Mobile 6,我用sqlserver的紧凑sp1.This应用程序在模拟器fine.But运行时,我deply我的cab文件真实device.i正在此类型的错误创建一个应用程序在VS 2005: - 无法显示错误消息,因为找不到包含它的可选资源程序集。难道任何一个能帮助我....谢谢.....

我的工作在Windows Mobile 6,我用sqlserver的紧凑sp1.This应用程序在模拟器fine.But运行时,我deply我的cab文件真实device.i正在此类型的错误创建一个应用程序在VS 2005: -

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

难道任何一个能帮助我.... 谢谢..........

解决方案

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

从 MSDN :

  

要安装.NET精简框架   资源文件

        验证是否在.NET Compact Framework 2.0 Service Pack 2或更高版本   安装在您的计算机上。如果   安装后,请继续执行步骤3。   下载并安装.NET Compact Framework 2.0中的Service Pack 2   在您的计算机。为安装文件   在.NET Compact Framework 2.0服务   包2可以在这里找到 。   在您的电脑,浏览到该位置程序   文件 Microsoft.NET SDK CompactFramework 2.0 Windows CE的诊断,   然后复制适当的资源   CAB文件到移动装置。   在移动设备上,找到并点击CAB文件来安装   资源包。   

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

找不到组策略如何解决 电脑中没有组策略怎么办

I am working on windows mobile 6, i created one application in VS 2005 using Sqlserver compact sp1.This application running on emulator fine.But when i deply my cab file on real device.i am getting this type of error:-

An error message cannot be displayed because an optional resource assembly containing it cannot be found.

Could any one help me.... Thanks..........

解决方案

String resources for some error messages are not installed by default on mobile devices (for space saving reasons I would guess). You can install these resources manually if you wish.

From MSDN:

To install .NET Compact Framework resource files

Verify if the .NET Compact Framework 2.0 Service Pack 2 or later is installed on your computer. If installed, proceed to Step 3. 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. On your computer, browse to the location Program FilesMicrosoft.NETSDKCompactFrameworkv2.0WindowsCEDiagnostics, and then copy the appropriate resource CAB file to the mobile device. On the mobile device, locate and tap the CAB file to install the resource pack.

After you have installed the resource files the device will show the message for the error that occurs.

阅读全文

相关推荐

最新文章