无法显示错误消息,因为找不到包含它的可选资源程序集 [英] An error message cannot be displayed because an optional resource assembly containing it cannot be found

查看:404
本文介绍了无法显示错误消息,因为找不到包含它的可选资源程序集的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

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

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

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

解决方案

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

MSDN

  

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

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

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

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

  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.

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

这篇关于无法显示错误消息,因为找不到包含它的可选资源程序集的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆