Partitioning Silverlight Apps – use a common ServiceReferences.ClientConfig

Microsoft have a great Hands-on lab that deals with partitioning of your Silverlight application.

Quote:

Partitioning Your Silverlight Application for Deployment
This lab will demonstrate a technique within Silverlight 2 to enable you to partition your application into different deployment packages. This will enable your application to only use what it needs, when it needs it and provide an experience to the user and improve overall download times for your application. This lab walks through a simple example of separating details view information from the main portion of the Silverlight application.

http://download.microsoft.com/download/7/0/c/70cb966a-1b68-4123-9b48-b0eaa1086104/SL2B2-HOL-AppPartitioning.pdf

This all works really well until you add in some Service References to WCF end points.  You will end up with an error like

System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. —> System.Xml.XmlException: Cannot find file ‘ServiceReferences.ClientConfig’ in the application xap package. 

All you need to do is ensure the contents of the ServiceReferences.ClientConfig file is included in the main XAP package.

Pretty simple fix,  but worth remembering.

This entry was posted in Random Stuff and tagged . Bookmark the permalink.
  • http://www.universitysda.com bible study

    thanks!thanks!