I have a .NETCF application which communicates with a remote web service. When I catch exceptions, I get the message:
System.Net.WebException: 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.
I have installed ‘NETCFv35.Messages.EN.wm.cab’ from the Windows Mobile 6.5.3 developers tool kit. I also tried one that I found elsewhere on this site, but I still get the above message. How can I fix this problem?
I found an article on fixing this problem (Fixing exception messages on the .NET Compact Framework 3.5 – Random ramblings about Technology) and the trace is:
Process [\Program Files\ConnectCE\ConnectCE.exe]
Date [2017/05/31] (yyyy/mm/dd)
Time [21:08:17] (hh:mm:ss)
Platform [Windows CE v5.2.29344 (PocketPC) WinCE5ARMV4I release V35-QFE ARMV4I IJITv2]
GAC: Updating GAC [0x0]
GAC: Checking .gac files inside [\Windows\]
GAC: Found [NETCFv35.Messages.EN.gac] .gac file.
GAC: Done with the file system check. Checking the registry.
GAC: Found [NETCFv35.Messages.EN.gac] registry entry.
GAC: Done with the registry check. Let's compare.
GAC: Entry [NETCFv35.Messages.EN.gac] is up to date.
GAC: GAC is up to date.
Compatibility mode [184.108.40.206]
Loading module [\windows\System.SR.dll]
Loading module [\windows\System.SR.exe]
Attempt to load [\windows\System.SR.exe] has failed (err 0x80001000). <== This file does not exist on the device
Failed to load [System.SR, Version=220.127.116.11, Culture=neutral, PublicKeyToken=969DB8053D3322AC]
So, the file System.SR.exe doesn't exist on my device. Is there somewhere I can get this file?
Message was edited by: Greg Doherty