Tag Archives: Silverlight

Configuring IUnityContainer

I’m using the IUni­ty­Con­tainer from the Com­pos­ite Appli­ca­tion Guid­ance in my cur­rent Sil­verlight project for Depen­dency Injec­tion and this morn­ing, I came across some­thing that I couldn’t find doc­u­mented any­where. Ini­tially, all my reg­is­tered depen­den­cies were being cre­ated using other depen­den­cies that I had reg­is­tered with the con­tainer. For exam­ple, I had the Cus­tomerOrder­Ser­vice below

Public Service Announcement — Composite Application Guidance

The project I’m cur­rently work­ing on is a Sil­verlight app and I’m in the throes of con­vert­ing it to use the Com­pos­ite Appli­ca­tion Guid­ance frame­work from Microsoft. It’s been a rea­son­ably mind-bending expe­ri­ence but also fairly straight­for­ward if that’s pos­si­ble. How­ever, some­thing popped up today that war­rants men­tion­ing. I’m using the Unity Appli­ca­tion Block as

Silverlight White Screen Of Death Debugging

If you’re work­ing in Sil­verlight and your app sud­denly starts giv­ing you the white screen of death, chances are there’s some­thing wrong with the markup. Of course, since the white screen of death results in zero excep­tions, some­times it’s hard to track down what the prob­lem is. Enter the Error Con­sole in Fire­fox. If you

Wireshark Rocks

I love Wire­shark. It’s a net­work pro­to­col ana­lyzer that has saved me count­less hours over the last year or so in debug­ging seri­al­iza­tion and HTTP issues on a vari­ety of projects. Today’s suc­cess story comes cour­tesy of Sil­verlight, WCF and the haz­ards of leav­ing slashes off the end of a URL. I’m work­ing on a project

Silverlight Gotcha Of The Day

If you have an Item­sCon­trol that is throw­ing an excep­tion telling you the col­lec­tion is read-only when you call Clear() on the Items prop­erty before reset­ting the data bind­ing, try set­ting the ItemsSource prop­erty to null instead.

Silverlight Security Exceptions With WCF Services

From the pub­lic ser­vice announce­ment depart­ment, this is an issue I recently strug­gled with and since I didn’t find much help on the web, I thought I’d con­tribute. If you’re try­ing to hit WCF ser­vices (ours are REST­ful but I’m pretty sure this hap­pens on reg­u­lar ser­vices as well), you may get weird secu­rity excep­tions