Sunday, May 29, 2011

Windows Phone 7's limited Generic support

It finally occurred to me that I was delusional. :) Turns out that Windows Phone 7, which uses Compact .NET Framework, has limited support of Generic type reflection. Such that, when a Generic type is used in reflection, it mostly raises NotSupportedException for most of its methods.
The .NET Compact Framework provides limited reflection functionality for generic types and methods, sufficient for supporting C# and Visual Basic runtime and class library dependencies.
This causes hideous problems in places that relies on this behavior, and it could be in surprisingly many places.
However, Mango (Windows Phone 7.1) does seem to fix it.

Tuesday, May 24, 2011

When in doubt, redeploy (SSRS)

Got a really persistent and "consistent" error in deployed SSRS report, which is a fairly complex one with maps: rsUnknownDataSetParameter. Just can not figure out why it complains as everything is in there. So I took the advise of a webpage and redeployed the whole report site, and whola! it works. Guess sometimes SSRS just got confused by the versions and maybe I missed something when deploy... (But I double checked!?...)