2009-06-06 28 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

相關問題