我正在使用Prism 4创建一个Silverlight 5应用程序,当我使用UnityBootstrapper运行启动程序时,出现以下错误:
无法加载文件或程序集“System.Windows.Controls,Version=2.0.5.0,Culture=neutral,PublicKeyToken=31bf3856ad364e35”或其某个依赖项。系统找不到指定的文件。
此错误出现在ConfigureRegionAdapterMappings方法中:
奇怪的是,如果我将项目更改为Silverlight 4,则它可以正常工作。你能帮我吗?
谢谢!
无法加载文件或程序集“System.Windows.Controls,Version=2.0.5.0,Culture=neutral,PublicKeyToken=31bf3856ad364e35”或其某个依赖项。系统找不到指定的文件。
此错误出现在ConfigureRegionAdapterMappings方法中:
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;
}
奇怪的是,如果我将项目更改为Silverlight 4,则它可以正常工作。你能帮我吗?
谢谢!