Silverlight Unit Testing

Unit testing is important, even for Silverlight applications. At my job, I insist that every application contain at least some unit testing (that doesn’t mean that every application does, but I’ll keep insisting), and that we maintain a minimum of 40% code coverage. Normally, I implement unit testing with NUnit. …

My Developer’s Toolbox

All software developers have a myriad of tools they use to help them design, test, and develop code and applications. This is mine. It is by no means comprehensive; I learned long ago there are too many technologies and tools out there for any one person to use or experience. …

Visual Studio 2008 Shortcuts

Keyboard Shortcuts 1. Ctrl-L to Cut Line to Clipboard It’s not necessary to highlight an entire line and then hit the delete key. Just hit “Ctrl-L” and the line the cursor is currently on will be removed and copied to the clipboard. “Ctrl-x” performs the same operation by default.   …

Silverlight to WCF Cross Domain SecurityException

In debugging a fairly simple Silverlight control that calls into a WCF service I ran into an often encountered security exception having to do with cross-domain policy. Silverlight generally does not allow cross domain access unless that access is explicitly granted via a clientaccesspolicy.xml file. Given that I had to …

Adding ELMAH to your ASP.NET Web Site

There’s already a lot of posts out there on how to set up ELMAH (see References below). Still, as I went through the process of adding ELMAH to my own site, I found myself pulling information from multiple posts and even ran into a couple of surprises during deployment. So, …