我在 windows mobile 6 上工作,我使用 Sqlserver compact sp1 在 VS 2005 中创建了一个应用程序。这个应用程序在模拟器上运行良好。但是当我在真实设备上部署我的 cab 文件时。我收到这种类型的错误:-
无法显示错误消息,因为找不到包含它的可选资源程序集。
谁能帮帮我....
谢谢..........
最佳答案
默认情况下,某些错误消息的字符串资源未安装在移动设备上(出于节省空间的原因,我猜)。如果您愿意,您可以手动安装这些资源。
来自 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 Files\Microsoft.NET\SDK\CompactFramework\v2.0\WindowsCE\Diagnostics, 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.
安装资源文件后,设备将显示发生错误的消息。
关于.net - 无法显示错误消息,因为找不到包含它的可选资源程序集,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/960163/