Switched to Silverlight 4, solution can no longer find DockPanel
-
In switching to Silverlight 4 for my solution, I also upgraded to the April,2010 release of the toolkit and replaced the System.Windows.Controls.Toolkit.dll in my Debug folder. But I'm still getting two errors when I try to build the solution:
C:\My Source 2010\PHDWebsite\PHDWebsite\obj\Debug\MainPage.g.i.cs(62,42): error CS0234: The type or namespace name 'DockPanel' does not exist in the namespace 'System.Windows.Controls' (are you missing an assembly reference?)
I have this declaration in MainPage.xaml:
xmlns:controlsToolkit="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls.Toolkit"
The second is just a warning and is related:
C:\Windows\Microsoft.NET\Framework\v4.0.30319\Microsoft.Common.targets(1360,9): warning MSB3245: Could not resolve this reference. Could not locate the assembly "System.Windows.Controls.Toolkit, Version=2.0.5.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL". Check to make sure the assembly exists on disk. If this reference is required by your code, you may get compilation errors.
I've checked the System.Windows.Controls.Toolkit.dll and it does contain DockPanel and so does the April toolkit documentation. What do I have to do to resolve this issue that currently has me dead in the water?
-
In switching to Silverlight 4 for my solution, I also upgraded to the April,2010 release of the toolkit and replaced the System.Windows.Controls.Toolkit.dll in my Debug folder. But I'm still getting two errors when I try to build the solution:
C:\My Source 2010\PHDWebsite\PHDWebsite\obj\Debug\MainPage.g.i.cs(62,42): error CS0234: The type or namespace name 'DockPanel' does not exist in the namespace 'System.Windows.Controls' (are you missing an assembly reference?)
I have this declaration in MainPage.xaml:
xmlns:controlsToolkit="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls.Toolkit"
The second is just a warning and is related:
C:\Windows\Microsoft.NET\Framework\v4.0.30319\Microsoft.Common.targets(1360,9): warning MSB3245: Could not resolve this reference. Could not locate the assembly "System.Windows.Controls.Toolkit, Version=2.0.5.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL". Check to make sure the assembly exists on disk. If this reference is required by your code, you may get compilation errors.
I've checked the System.Windows.Controls.Toolkit.dll and it does contain DockPanel and so does the April toolkit documentation. What do I have to do to resolve this issue that currently has me dead in the water?
Hi fjparisIII, I will suggest you to remove the reference of the toolkit assembly from your project. Then add the reference again after saving the project file. Build the solution and check if it solves your problem. Please update me what happened with that.
Don't forget to Click on [Vote] and [Good Answer] on the posts that helped you.
Regards - Kunal Chowdhury | Software Developer | Chennai | India | My Blog | My Tweets | Silverlight Tutorial
-
In switching to Silverlight 4 for my solution, I also upgraded to the April,2010 release of the toolkit and replaced the System.Windows.Controls.Toolkit.dll in my Debug folder. But I'm still getting two errors when I try to build the solution:
C:\My Source 2010\PHDWebsite\PHDWebsite\obj\Debug\MainPage.g.i.cs(62,42): error CS0234: The type or namespace name 'DockPanel' does not exist in the namespace 'System.Windows.Controls' (are you missing an assembly reference?)
I have this declaration in MainPage.xaml:
xmlns:controlsToolkit="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls.Toolkit"
The second is just a warning and is related:
C:\Windows\Microsoft.NET\Framework\v4.0.30319\Microsoft.Common.targets(1360,9): warning MSB3245: Could not resolve this reference. Could not locate the assembly "System.Windows.Controls.Toolkit, Version=2.0.5.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL". Check to make sure the assembly exists on disk. If this reference is required by your code, you may get compilation errors.
I've checked the System.Windows.Controls.Toolkit.dll and it does contain DockPanel and so does the April toolkit documentation. What do I have to do to resolve this issue that currently has me dead in the water?
While waiting for a reply from somebody I continued to try to find the solution. The solution was that my project reference was still pointing to my 3.0 toolkit. Deleted it and added the reference to the 4.0 toolkit.
-
Hi fjparisIII, I will suggest you to remove the reference of the toolkit assembly from your project. Then add the reference again after saving the project file. Build the solution and check if it solves your problem. Please update me what happened with that.
Don't forget to Click on [Vote] and [Good Answer] on the posts that helped you.
Regards - Kunal Chowdhury | Software Developer | Chennai | India | My Blog | My Tweets | Silverlight Tutorial
I just got through replying to myself saying I found the exact same solution you suggested! Sorry for not giving you credit but I think our posts crossed!
-
I just got through replying to myself saying I found the exact same solution you suggested! Sorry for not giving you credit but I think our posts crossed!
Hi fjparisIII, It's good that your problem solved.
Don't forget to Click on [Vote] and [Good Answer] on the posts that helped you.
Regards - Kunal Chowdhury | Software Developer | Chennai | India | My Blog | My Tweets | Silverlight Tutorial
-
I just got through replying to myself saying I found the exact same solution you suggested! Sorry for not giving you credit but I think our posts crossed!
Mark your original message as solved then. Edit your message, and at the end of the subject field, change "[modified]" to "[SOLVED]", and includ the solution at the end of your message, something like this:
SOLUTION ----------------- I di this or that to solve the problem.
.45 ACP - because shooting twice is just silly
-----
"Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass..." - Dale Earnhardt, 1997
-----
"The staggering layers of obscenity in your statement make it a work of art on so many levels." - J. Jystad, 2001 -
Mark your original message as solved then. Edit your message, and at the end of the subject field, change "[modified]" to "[SOLVED]", and includ the solution at the end of your message, something like this:
SOLUTION ----------------- I di this or that to solve the problem.
.45 ACP - because shooting twice is just silly
-----
"Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass..." - Dale Earnhardt, 1997
-----
"The staggering layers of obscenity in your statement make it a work of art on so many levels." - J. Jystad, 2001Well, over the last year I've got 50 other questions I marked SOLVED on a reply to the post that solved it. Do you want me to go back and change all those? How about if I just do what you're requesting from now on?
-
In switching to Silverlight 4 for my solution, I also upgraded to the April,2010 release of the toolkit and replaced the System.Windows.Controls.Toolkit.dll in my Debug folder. But I'm still getting two errors when I try to build the solution:
C:\My Source 2010\PHDWebsite\PHDWebsite\obj\Debug\MainPage.g.i.cs(62,42): error CS0234: The type or namespace name 'DockPanel' does not exist in the namespace 'System.Windows.Controls' (are you missing an assembly reference?)
I have this declaration in MainPage.xaml:
xmlns:controlsToolkit="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls.Toolkit"
The second is just a warning and is related:
C:\Windows\Microsoft.NET\Framework\v4.0.30319\Microsoft.Common.targets(1360,9): warning MSB3245: Could not resolve this reference. Could not locate the assembly "System.Windows.Controls.Toolkit, Version=2.0.5.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL". Check to make sure the assembly exists on disk. If this reference is required by your code, you may get compilation errors.
I've checked the System.Windows.Controls.Toolkit.dll and it does contain DockPanel and so does the April toolkit documentation. What do I have to do to resolve this issue that currently has me dead in the water?
Sometimes it might possible that toolkit is not installed on your system. You can install it from http://silverlight.codeplex.com/releases/view/43528[^] Regards Rushi