Select to view content in your preferred language

TemplatePicker error

634
1
08-31-2010 12:27 PM
DanDulan
Emerging Contributor
I have this error when I set the LayerIDs on a TemplatePicker (I am using the code from ESRI Template Picker sample, Visual Studio 2010, Silverlight 4 and ArcGIS API for Silverlight 2.0)  :

"Unable to cast object of type 'Microsoft.Expression.DesignModel.DocumentModel.DocumentPrimitiveNode' to type 'Microsoft.Expression.DesignModel.DocumentModel.DocumentCompositeNode'"

Any suggestions?


Thanks,
0 Kudos
1 Reply
DominiqueBroux
Esri Frequent Contributor
It looks the same issue than http://forums.arcgis.com/threads/8290-DynamicLayer-VisibleLayers-property?highlight=designmodel+docu...

Morten's asnwer:


Unfortunately this is a bug in VS2010 (it used to be there in Blend 4 as well, but got fixed after we reported it - unfortunately didn't make it for VS2010). You code will still compile and run though.
0 Kudos