Windows Phone 7 Dev News

What an exciting time to be a developer. I have to say attending PDC shed some light on some seriously cool leaps forward in the Microsoft technology stack IE9, HTML5, Azure and you guessed it Windows Phone 7. This post is a update on the recent Windows Phone 7 related dev tool announcements:

  1. Updated OData Client Library for Windows Phone 7  
  2. Windows Phone 7 analysis tools – not yet released but would love to get my hands on it eary
  3. At PDC an upcoming performance analysis tool to run an instrumented version of your app on devices to provides profiler data in Visual Studio was demonstrated. In the demo the profiling performed gave data on CPU utilisation, frames per second and storyboard animations.

  4. Application Analytics and Code Obfuscation for Windows Phone 7 and Windows Phone Marketplace
  5. Free analytics and code obfuscation for WP7. Well worthwhile using to analyse how your users use your apps and protect your IP through obfuscation

  6. Sync Framework v4 Oct 2010 CTP bits
  7. Check out the cool WP7 client sample to synchronize your data from and Azure cloud service. This is a really great enabler for offline capable smart client applications

  8. Silverlight for Windows Phone 7 toolkit November
  9. New Components; AutoCompleteBox, ListPicker, LongListSelector, Page Transitions.
    Existing Components; GestureService/GestureListener, ContextMenu, DatePicker, TimePicker, ToggleSwitch, WrapPanel

  10. October 2010 update for WP7 Dev tools
  11. Includes: A new Windows Phone Capability Detection Tool, Windows Phone Connect Tool – connect your PC and phone without needing Zune running and Updated Bing Maps Silverlight Control – performance improvements to guesture controls

Enjoy,
Nick

What a day – dev therapy with tonights downloads + installs

When you have a bad day there is nothing better then some dev therapy = tonights downloads + installs;

  1. .NET Framework 4 full RC
  2. Visual Studio 2010 Ultimate RC
  3. Visual Studio 2010 remote debugger RC
  4. Windows Phone Developer Tools CTP includes
    • Windows Phone Emulator CTP
    • Silverlight for Windows Phone CTP
    • XNA 4.0 Game Studio CTP
  5. Microsoft Expression Blend 4 Beta
  6. Visual Studio 2010 and .NET Framework 4 Training Kit

Useful NativeError Range and Description links: SQL Server Compact 3.5 Service Pack 1 and SQL Server 2005 Compact Edition

Essential links for figuring out why your SQL Server Compact Edition merge replication is failing. 

SQL Server Compact Edition 3.5 Service Pack 1 NativeError List:

Category Range
Engine Errors 25000-25499
Replication Transport Errors 28000-28499
Client Agent Errors 28500-28999
Server Agent Errors 29000-29499
Message Protocol Errors 29500-29999
Query Processor errors 25500-26499
OLEDB Errors 0x80040E00L-0x00040EDDL

SQL Server Mobile 2005 Compact Edition NativeError List:

Category Range
Engine Errors 25000-27999
Replication Transport Errors 28000-28499
Client Agent Errors 28500-28999
Server Agent Errors 29000-29499
Message Protocol Errors 29500-29999
Query Processor errors 25500-26499
OLEDB Errors 0x80040E00L-0x00040EDDL

Application crash when using SQL Server Compact Edition running from storage card in the Symbol MC70

So you have got your new MC70, slapped in a storage card so that you can run your SQL Server CE database from there and found that you application keeps crashing everytime the device resumes from standby?

The issue is the default driver selection for the SD Card causes the connection to break, perform the following to resolve the issue:

  1. Press Start –> Setings –> System Tab –> SDSwitch Icon
  2. Press SDMMC Mode radio button
  3. Press No Remove On Resume checkbox
  4. Press Ok
  5. Perform a warm boot of the device as advised by dialog
 

MC70 SD Switch for SQL Server Compact=

MC70 SD Switch for SQL Server Compact Edition

Solution: SQL CE Merge Replication fails with HRESULT:-2147217887 and NativeError:28559

Issue:
SQL Mobile encountered problems when opening the database.; Another user has opened the database with different instance-level initialization properties. [ 1 ], Message:SQL Mobile encountered problems when opening the database., HRESULT: -2147217887, NativeError:28559

Solution:
You likely have another connection open to the database. Ensure that SQL CE Query analyser on the device is closed and that you have closed all connections to the mobile device from SQL Management Studio.

Microsoft Sync Framework 2.0 released

Microsoft Sync Framework 2.0 released 18/10/2008. The Microsoft Sync Framework 2.0 SDK is also worth grabbing. Venture forth and build your sync apps :) – but remember to filter your data, its the number one issue I find every time that I am asked to troubleshoot a poorly performing Sync App. Keep this in mind during development and you’ll have a much easier time as the system grows to in terms of number of subscribing clients and amount of data on the serverside.