Click here to Skip to main content
15,918,742 members
Please Sign up or sign in to vote.
4.00/5 (1 vote)
See more:
Hi I am working an application that based on Silverlight 5.
Its framework is MVVM and implemented by Prism.
I am using silverlight 5 toolkit too.

in one of my views I using wrapPanel and DateTimePicker from toolkit.

<navigation:Page x:Class="PIPM2.SupervisionSubSystem.Module.View.TestView"
           d:DesignWidth="640" d:DesignHeight="480"
           Title="TestView Page" xmlns:sdk="" xmlns:toolkit="" xmlns:my="clr-namespace:Silverlight.Controls;assembly=Silverlight.Controls" xmlns:my1="clr-namespace:Silverlight.Controls.Primitives;assembly=Silverlight.Controls">
        <sdk:DatePicker  />
        <toolkit:WrapPanel >

This sample buid successed but at runtime in InitializeComponent() method I got this Error =>

Could not load file or assembly 'System.Windows.Controls.Toolkit, Version=, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The requested assembly version conflicts with what is already bound in the app domain or specified in the manifest. (Exception from HRESULT: 0x80131053)

If I delete one of controls, wrapPanel or DatePicker my Error do not occur again.

please help me.
How can I solve this problem.

thanks a lot.

1 solution

What about this:
On your References folder, search for System.Windows.Controls.Toolkit, right click on it, then go to properties.
Set Local Copy to True

After this step rebuild your project. Run it!

Hope its helps.
Share this answer

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900