Jesse Johnston
{ ironic tagline here }

PDX Code Camp Session: WP7 Tips & Tricks

Sunday, 23 May 2010 15:18 by jesse

Chow I presented the Windows Phone 7 Tips & Tricks session with Allen Newton yesterday at Portland Code Camp.  Good times.  In our talk we showed a sample application "PDX Chow" that demonstrates a number of phone development concepts:

  • MVVM architecture with Laurent Bugnion's MVVM Light
  • Panorama control
  • Inversion of Control / Dependency Injection
  • Navigation using commanding and context
  • Page orientation events
  • Accessing phone features with tasks
  • ApplicationBar wrapper class that is fully Blendable and supports attached behaviors
  • Application life-cycle events
  • Accessing WCF services

The slide deck and code for the sample app are available on the downloads page.  Enjoy!

Digg It!DZone It!StumbleUponTechnoratiRedditDel.icio.usNewsVineFurlBlinkList

System.ServiceModel.ProtocolException: An HTTP Content-Type header is required

Wednesday, 19 May 2010 16:29 by jesse

The full exception message is “An HTTP Content-Type header is required for SOAP messaging and none was found.”.

If you’re writing a WCF service that returns Entity Framework entities, you may run into this error in your client application.  To correct it, open your EDMX file in the service project and change the Lazy Loading Enabled property to False.

It makes sense that related entities can’t be lazy-loaded after the query results have been returned to the client, but the error message doesn’t make that super-obvious.

Digg It!DZone It!StumbleUponTechnoratiRedditDel.icio.usNewsVineFurlBlinkList
Tags:   ,
Categories:   .NET | WCF | EF
Actions:   E-mail | del.icio.us | Permalink | Comments (0) | Comment RSSRSS comment feed