Fixing Error Messages Problem in windows CE

With .Net Compact Framework 3.5 the resources that display error messages are not loaded onto device by default. So our application always shows the following message, instead of original message

"An error message is available for this exception but cannot be displayed because these messages are optional and are not currently installed on this device. Please install 'NETCFv35.Messages.EN.wm.cab' for Windows Mobile 5.0 and above or  'NETCFv35.Messages.EN.cab' for other platforms. Restart the application to see the message."

This 'NETCFv35.Messages.EN.wm.cab' can be found in the directory

C:\Program Files\Microsoft.NET\SDK\CompactFramework\v3.5\WindowsCE\DiagnosticsNETCFv35.Messages.EN.wm.cab (English messages)

If after doing this also you get the following message when an exception message is displayed, do the following

1) Open the 'NETCFv35.Messages.EN.wm.cab' file available in the above location with winzip or any cab extractor
2) Extract the file named "SYCCFA~1.001" and rename it "System.SR.dll"
3) Add System.SR.dll as a reference to your project
4) Deploy the application.

Then the application shows the correct exception messages.

Gopikrishna

    Blogger Comment
    Facebook Comment

2 comments:

  1. Thankx a lot , i have also same problem but now its it working...............................

    ReplyDelete
  2. 'NETCFv35.Messages.EN.wm.cab' how to Extract then again create the .cab file plz detail to me steps.

    ReplyDelete