-
Silverlight Unit Tests: How to Stop Breaking on Assert Exceptions
There’s something a little peculiar about how unit tests work in Silverlight when the debugger is attached – when an Assert fails in one of your unit tests, the Visual Studio debugger breaks the execution and brings up the debugger dialog. If you want to run a whole bunch of unit tests to see which…
-
How to Permanently Banish Silverlight’s “Not Found” Error for WCF Service Calls
Have you seen this error message before? “The remote server returned an error: NotFound.” I think that this wins that the most infuriating exception in Silverlight. I’ve personally wasted tens of hours trying to deal with this cryptic and utterly unhelpful message. Over time, you come to understand that this is your Silverlight app’s way…
-
Silverlight 4 Databound CheckBoxList and RadioButtonList Controls
Last week I needed a CheckBoxList control and a RadioButtonList control for Silverlight 4. I was surprised that they weren’t already part of the standard controls or the Silverlight Control Toolkit. RadioButtonList CheckboxList Once I started to work on the controls, I realized that I didn’t know how to databind RadioButtons or databind Checkbox controls…
-
Bind a Silverlight 4 HyperlinkButton NavigateUri in a DataGrid to a DataSource value
The Problem: How to generate a NavigateUri for a HyperlinkButton in a DataGrid that contains an Id value using a data binding expression. The Answer: Use StringFormat inside the NavigateUri binding. It’s a pretty common thing to do in any kind of application – you’ve got a grid that’s filled with data and from that…
-
Error 2103 “Unhandled Error in Silverlight Application”
Seen this error before? Line: 54 Error: Unhandled Error in Silverlight Application Code: 2103 Category: InitializeError Message: Invalid or malformed application: Check manifest At first I was terrified that there was some kind of mysterious corruption in my Visual Studio 2010 Silverlight 4 bits. After some searching on The Internets, I found the answer at…
-
The configuration section 'system.web.extensions' cannot be read because it is missing a section declaration.
Have you seen this error with a Visual Studio 2010 ASP.NET or Silverlight project? The configuration section ‘system.web.extensions’ cannot be read because it is missing a section declaration. I’ve been wrestling with it for the last hour and I just found the answer. In a web browser, it appears as an HTTP Error 500.19 –…
-
Silverlight 4 Synchronous WCF Service Calls (or “How to avoid writing a 1-tier Silverlight App”)
Update 12/24/2010 – Check out my follow up to this post. Silverlight is great. Silverlight 4 is extra great. If you know a little bit about WPF and a handful about the ViewModel Pattern, you’re in great shape. If you’re like me, you tend to mock up your user interfaces and user interface functionality using…