Dynamic Xap loading problem(Reduce Xap Size)

Topics: Prism v4 - Silverlight 4
Jun 14, 2012 at 3:07 PM



In my application structure, Modularization is used with Prism. General infrastructure has multiple modules and one of them is used as master application which downloads other modules. In addition to modularization, redusing xap size is also used with and creation of zip file are successfully done.


The problem is if master module does not have reference to a zipped assembly, other modules cannot be loaded because their different reference assemblies(which are also zipped successfully by related module) are not downloaded. Is there any fix or workaround that can force these assemblies to be loaded if they are not downloaded yet ? 


Jun 14, 2012 at 6:08 PM
Edited Jun 14, 2012 at 6:11 PM


Based on my understanding of your scenario, this problem seems to be related to a known issue in Prism where if you choose to reduce XAP size by using application library caching and your shell application does not references the "cached" libraries, those libraries are not loaded.

You can find this issue reported in the following work item:

As a possible approach to use application library caching, you can find a proposed workaround in the following blog post that might be helpful:

I hope you find this useful,

Damian Cherubini

Jun 15, 2012 at 6:54 AM

Thanks Damian, this is working with your workaround. Actually this bug is against the main purpose of Prism modularization.