I'm creating an application silverlight 5 using prism 4 and when I'm running the bootstrapper using UnityBootstrapper then I have the next error:
Could not load file or assembly 'System.Windows.Controls, Version=2.0.5.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The system cannot find the file specified.
This error in the ConfigureRegionAdapterMappings method:
protected override RegionAdapterMappings ConfigureRegionAdapterMappings()
{
// Call base method
var mappings = base.ConfigureRegionAdapterMappings(); <-- I get the error here!
if (mappings == null) return null;
// Add custom mappings
// Set return value
return mappings;
}
The strange thing is if I change my project to silverlight 4 then it is working fine (?). Could you please help me?
Thanks!