Silverlight 4, MEF and MVVM: loading different “MEF Modules” in the same Container

Today I’ve finally found some time to make modifications in the “MEF MVVM” project on Codeplex in order to: create a new module using WCF RIA Services and dynamically load this it inside the “MEF module container” described in the previous post; use the INavigationContentLoader interface and MEF Metadata to share the same container for […]

Silverlight 3 Beta and Binary message encoding

Silverlight 3 Beta uses Binary message encoding as a default WCF binding option, this is also the methodology used in the “Silverlight-enabled WCF Service” item template of Visual Studio. John Papa has posted a nice article explaining the advantages of this binding instead of the “usual” BasicHttpBinding used in Silverlight 2 (other details available here […]

Silverlight 3 Beta Duplex support

I’m testing the updated Duplex support available in Silverlight 3 Beta, the important news is the possibility to simplify and reduce the code in the client: now it’s possible to use the “Add Service Reference” functionality of Visual Studio to consume the service; in this way you the use of channels can be avoided by simply attaching […]

Silverlight, SOAP Headers, WCF and asmx services

As reported by the Web Services Team, Silverlight 2 supports custom SOAP headers. A good working example can be found here, but it only uses WCF services, what about the “old” asmx ones? I’ve modified the “SilverlightHeaders” solution to use both WCF and asmx, using OperationContext in the first case and HttpContext in the last, […]

WCF DataContract Serializer and IsReference property

One of the new features of .NET framework 3.5 SP1 is the possibility to serialize an object graph with circular references by using the standard xsd:ID/xsd:IDREF attributes. Just mark your DataContract attribute with the IsReference=true property:

Silverlight 2 and Duplex-Services deployed to IIS7

I’ve prepared this Silverlight 2 Beta 2 solution based on the example described in the official documentation. You can try it just following these simple steps: open the solution using Visual Studio 2008; deploy the Wcf Service “DuplexService” to http://localhost/DuplexService; copy the included crossdomain.xml and clientaccesspolicy.xml in c:\inetpub\wwwroot\; run the project “DuplexClientWeb” from within Visual Studio or deploy […]