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

标签 .net windows-mobile

我在 windows mobile 6 上工作,我使用 Sqlserver compact sp1 在 VS 2005 中创建了一个应用程序。这个应用程序在模拟器上运行良好。但是当我在真实设备上部署我的 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 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.


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

关于.net - 无法显示错误消息,因为找不到包含它的可选资源程序集,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/960163/

相关文章:

c# - 为什么 .NET 与 Windows 操作系统是分开的?

java - 使用 .net 和 java 中的 jUddi v3

dart - Flutter SDK 是否提供任何框架来开发适用于 Windows 手机的应用程序?

c# - wince 6.0 c# 中的全屏应用程序

c# - 在单元测试中使用 Moq 时出现问题

c# - 将长字符串分成 60 个字符的长行但不要打断单词

.net - .NET 消费者线程处理两个队列的算法(基于优先级)

visual-studio-2008 - 在 windows 8.1 中使用 VS2008 创建 Cab 失败

windows - 在 Windows Mobile 5.0 上使用 MSMQ 进行进程间(应用程序间)通信

c++ - 我在哪里可以获得 pkfuncs.h(以及对 KernelIoControl 的访问权限)?