System.Windows.Controls - Assembyl error

464
3
07-29-2011 02:01 AM
Labels (1)
asdfasdf2
New Contributor
Hallo

installed software:
vs2010 pro
wpf toolkit on codeplex (WPF Toolkit February 2010 (Version 3.5.50211.1))
expression blend 4 sdk for .net (Version 2.0.20621.0)

i have using the example InteractiveWPFSDKSource from: http://help.arcgis.com/en/webapi/wpf/help/InteractiveWPFSDKSource.zip

and have this compiler error in the QueryRelatedRecords.xaml example.
<UserControl x:...
xmlns:common="clr-namespace:System.Windows;assembly=System.Windows.Controls"
...>

and a problem with set the VisibleLayers:
<esri:ArcGISDynamicMapServiceLayer ID="DynamicMapWellsLayer" VisibleLayers="0,1" Url="http://sampleserver3.arcgisonline.com/ArcGIS/rest/services/Petroleum/KSPetro/MapServer" />

I set all references correct, i think. 😉
Thanks.
0 Kudos
3 Replies
JenniferNery
Esri Regular Contributor
What error message are you getting exactly?

If you are getting the blue squiggly line on VisibleLayers with this error:
Unable to cast object of type 'Microsoft.Expression.DesignModel.DocumentModel.DocumentPrimitiveNode' to type 'Microsoft.Expression.DesignModel.DocumentModel.DocumentCompositeNode'.
this is known design-time error that appears when you have XAML open.

Since you say the error includes "System.Windows.Controls" I cannot think of an error related to this that shows with "VisibleLayers" property set. I think it would help if you share the actual error message and code so we can reproduce it here too. Thanks!
0 Kudos
killram
New Contributor
hello

i have a blue squiggly line on xmlns:common="clr-namespace:System.Windows;assembly=System.Windows.Controls"

it is not a design-time error. i have close the xaml-file when i build the project.
but, i have this error when i open the xaml-file in the design-view.

the errormessage is: "Die Assembly "System.Windows.Controls" wurde nicht gefunden. Alle Assemblyverweise müssen vorhanden sein, und das Projekt sowie alle referenzierten Assemblys müssen erstellt worden sein."

i think, the error is about the assembly reference. but, i can't found an other.
0 Kudos
JenniferNery
Esri Regular Contributor
You must be using Silverlight code on WPF? Kindly see XMLNS on this page. http://msdn.microsoft.com/en-us/library/system.windows.controls.control.aspx
0 Kudos