Warning Message in Windows Mobile Second Edition Emulator
If you've used the new Windows Mobile 2003 Second Edition emulators with the .NET Compact Framework then you have no doubt seen this lovely message box:
This is the message that appears whenever a CAB file is installed on the device which is not marked as being orientation-aware. For details on this and how to properly mark a CAB file, see the end of this whitepaper.
So why does it show up when you launch the debugger from VS.NET? The message is a bit misleading because it actually has nothing to do with your Compact Framework app. When you start the debugger, VS.NET quietly checks the device (or emulator) to see if the System.SR assembly has been installed. If not, it's CAB file is automatically copied over and installed for you. System.SR contains a bunch of strings that are helpful to developers while debugging but not worth eating up precious space in ROM (roughly 100-200 KB depending on the language) on every single Windows Mobile device.
System.SR shipped as part of Visual Studio.NET 2003 (C:\Program Files\Microsoft Visual Studio .NET 2003\CompactFrameworkSDK\v1.0.5000\Windows CE\Diagnostics\). Since there is no new SDK for Windows Mobile 2003 Second Edition, the System.SR CAB files have not been updated to prevent this warning message from appearing when VS.NET automatically installs it.
The points I want to make really clear are:
- Don't worry. This message is not related to your code.
- It only happens once. After VS.NET has installed this CAB on your device/emulator, it won't happen again unless you do a hard-reset of the device/emulator.
- Update your CABs. To prevent users from seeing this message when they install your application, follow the whitepaper guidelines.
[Author: Robert Levy]
Comments
- Anonymous
August 04, 2004
What about CAB files we have to distribute that we didn't create? Like SQLCE? This gives the warning message and this message is embarrassing in front of our customers. - Anonymous
March 14, 2006
Mike W, thats exactly what problem I am having at the moment, SQL CE 2.0 shows that message on Windows Mobile 2003 SE, so how am i supposed to get rid of it now? - Anonymous
May 12, 2006
Good info -- should be in support.microsoft.com, no? - Anonymous
July 12, 2006
I am not commenting on this,
i am a software engineer and i have a problem.
would you please tell me which .net cf cab and sqlserverce cab required to run my .net 2.0 application on Garmin ique M5 windows mobile Second Edition. I am using .armv4i cab but its not working in the case of sqlserverce cab.
Please tell me as soon as possible at my given e mail address: shalabhgupta16@yahoo.com
Regards,
Shalabh Gupta - Anonymous
August 15, 2006
I need a portable that operates a 38KHz IR (consumer IR) port on my security product. I have been told that the RX3715 is the best, but there was a concern about Win Mobile SE versus CE wne programming in .NET. Is there any reason to prefer Win CE over Win Mobile SE as an OS?