CF2 and VS2005 Exception messages

G

Guest

Hi all,

Hopefully someone may be able to help me with this. I am just starting with
CF2 and mobile apps - previous background .NET Framework and C#.

I'm having a problem with exception messages. If I debug the mobile app
running via visual studio F5 and deploy to the device. ie. Debug a live run
on the device when ever an exception is hit, the exception message is never
displayed. All I see is "An error message cannot be displayed because an
optional resource assembly containing it cannot be found".


I have seen similar posts where the resolution is to install
SYSTEM_SR_ENU.cab to the device and then execute the cab to place the error
strings on the device. I tried this for CF2 but still no exception messages.
This is also only supposed to be required where the exception messages are
required on the device when the application is not being run with visual
studio.

Any help on this scenario would be appreciated.
 
S

Simon Hart

Make sure you have installed the correct one, if running Windows Mobile
(Pocket PC) use:
SYSTEM_SR_ENU_wm.CAB (note: WM) or SYSTEM_SR_ENU.CAB under CE.

These CABs can be found here:
<VS2005>\Microsoft Visual Studio
8\SmartDevices\SDK\CompactFramework\2.0\v1.0\WindowsCE\Diagnostics

Cheers
Simon.
 
G

Guest

Simon,

Thanks for the reply. I'm running WM2003 SE, and I did spot the _wm files
and thought they may be WM2003 specific, however, when I copy the cab to the
device I get the message that '... is not a valid windows CE setup file' but
the non _wm version seems to install Ok, but doesnt function.

Pete.
 
I

Ilya Tumanov [MS]

SR CAB file names are the same for NETCF V1 and NETCF V2.

My guess would be you've installed SR CAB for a wrong version.

Please make sure you have correct one via "Remove programs" applet.



Best regards,

Ilya

This posting is provided "AS IS" with no warranties, and confers no rights.

*** Want to find answers instantly? Here's how... ***

1. Go to
http://groups-beta.google.com/group/microsoft.public.dotnet.framework.compactframework?hl=en
2. Type your question in the text box near "Search this group" button.
3. Hit "Search this group" button.
4. Read answer(s).
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top