Tips and Tricks in a world of Mix

Archive for the ‘Silverlight’ Category

Silverlight–Formatting Xaml – beautify

1. In VS2008 or VS2010 go to Tools –> Options

2. Expand Text Editor -> XAML -> Formatting –> Spacing






3. Under "Attribute Spacing" check "Position each attribute on separate line".

4. If you prefer, you can also put the first attribute on the same line as the tag by checking the box.  I use this setting because it isn’t offensive and still saves a little space.


Now, whenever you edit XAML in Visual Studio, press "Ctrl+K+D" and Visual Studio will reformat the XAML as desired.


if you check

Position first attribute on same line as start tag it’ll look like this :


I think that I preffer the second option.


Unhandled Error in Silverlight Application Code : 2103 – Invalid or malformed application : Check manifest


Line: 54
Error: Unhandled Error in Silverlight Application
Code: 2103   
Category: InitializeError      
Message: Invalid or malformed application: Check manifest   


Ria Services DomainServices missing




using System.ServiceModel.DomainServices.Hosting;
using System.ServiceModel.DomainServices.Server;
using System.ServiceModel


try to take it from  :

C:\Program Files (x86)\Microsoft SDKs\RIA Services\v1.0\Libraries\Server\


If you don’t have it goto -

Silverlight runtime error–2104–InitializeError

When running Silverlight Prism Template Quickstart of Silverlight – got this error .


After going over a few posts


Dll’s for DomainService


Pay attention that the Microsoft.Practices.Unity that by default installed in your Program Files folder is different from Silverlight Prism template .

Choose the one from Silverlight Prism template . I’m managing all third party or in a way special dll’s  in an External.Libs for each project – this makes the project portable .

It has to be in our case version.

Tag Cloud

%d bloggers like this: