Thursday, July 23, 2009

How to test the Assembly Caching feature in Silverlight 3.0?

While trying out the various new features with Silverlight 3.0, i have decided to spent more time on the Assembly caching feature as i feel it is a really cool feature which can really help us to keep the common assemblies which are referenced in various xap files in a compressed file such as zip. By doing so we can reduce the size of the various xap files being downloaded to the client cache.

I did all the steps required for Application Library Caching but could observe that these files are being downloaded every time i visit the site. I used the HTTP traffic monitor Fiddler to view HTTP requests and responses, to verify that cached files are not being downloaded.

I figured out the issue as with the test environment being the Visual Studio Development Server which does not enable caching in its HTTP response headers. The key point here is that we should either publish the site to an IIS or Configure the Web project to use IIS and enable local host monitoring from the HTTP traffic monitor

Thursday, July 9, 2009

WPF Presentation Foundation designer Missing for the visual Studio

I could notice that the Intellisense for my xaml files are lost when i  opened a Silverlight UserControl in the default editor immediately after installing the Visual studio 2008,its SP1 and the Silverlight SDK 2.0. In fact, i was missing the  WPF Presentation Foundation designer in the “Open with” dialog Box.The default editor in place now then was the xml editor.

Thanks to visual studio command line help. I could made it working with the following command

Devenv /resetSkipPkgs

This command clears all options to skip loading added to VSPackages by users wishing to avoid loading problem VSPackages, then starts Visual Studio.