Select to view content in your preferred language

Failed to assign to property 'System.Windows.ResourceDictionary.Source'

1242
2
08-14-2012 11:38 PM
mohammadsaberi
New Contributor
Hi,

I exactly copy Glass sample in new project for test and viewing. project compeletly build and there in no error in compile time, but when run project i have this error :

Failed to assign to property 'System.Windows.ResourceDictionary.Source'. [Line: 5 Position: 36]


also when view xaml in design mode of VS2010 I have this error :

Error 7 [Parser_SetValue_Exception]
Arguments: System.Windows.FrameworkElement.Style
Debugging resource strings are unavailable. Often the key and arguments provide sufficient information to diagnose the problem. See http://go.microsoft.com/fwlink/?linkid=106663&Version=5.1.10411.0&File=System.Windows.dll&Key=Parser... [Line: 1714 Position: 271] D:\Users\m_saberi\Desktop\TempProjects\GlassArcGIS\GlassArcGIS\MainPage.xaml 44 9 GlassArcGIS


I have created my project in Silverlight 5. and use Silverlight tools 5. is it my problem or not ?

please help me,
thanks a lot.
0 Kudos
2 Replies
JMcNeil
Deactivated User
Silverlight 5 shouldn't be the problem the template was built with 5.  Did you just download it or is it from the old resource center?  Under your Reference in the Solution Explorer are all the ref paths good..especially the System.Windows.dll?

Jay
0 Kudos
mohammadsaberi
New Contributor
Hi Jay,

Yes, all reference path are coorect and no problem and my project compeletly build.
this problem occured in run time:(

Mohammad.
0 Kudos