This is a migrated thread and some comments may be shown as answers.

Silverlight ReportViewer: '__implicit_items'

8 Answers 228 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Hürcan Bulut
Top achievements
Rank 1
Hürcan Bulut asked on 12 Apr 2010, 12:09 PM

Hi Telerik,

i am getting an error message when i run the Silverlight viewer which says:

"The property '__implicit_items' is set more than once"

MyXaml:
 
<Silverlight:ReportViewer x:Name="myReportViewer" />
Nothing else is on the page.

MyCode:
public ReportDesk()
{
   InitializeComponent(); << Error occurs here
}

ReportViewer Version: 4.0.10.317. Any Sugesstions.

8 Answers, 1 is accepted

Sort by
0
Hürcan Bulut
Top achievements
Rank 1
answered on 12 Apr 2010, 12:49 PM
Same Result with version 4.0.10.329.
0
Steve
Telerik team
answered on 14 Apr 2010, 02:24 PM
Hello Hürcan Bulut,

The version of Telerik Reporting is irrelevant as the error you have provided is not coming from our product, but rather from the WPF/Silverlight framework. A quick search about the message finds the following MSDN topic: The property '{0}' is set more than once.

If you are unable to address the issue, please prepare and send us a runnable sample where the error can be observed. Once we review it, we would be able to provide more info on the matter.

Sincerely yours,
Steve
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
0
Ken Swinney
Top achievements
Rank 1
answered on 15 Apr 2010, 08:34 PM
Steve,

I think you may be wrong.  I'm getting the exact same problem, and the stack trace shows that it is coming from Telerik code:

{System.Windows.Markup.XamlParseException: Set property 'System.Windows.FrameworkElement.Style' threw an exception. [Line: 17 Position: 60] ---> System.Windows.Markup.XamlParseException: The property '__implicit_items' is set more than once. [Line: 5 Position: 36] ---> System.Exception: Error HRESULT E_FAIL has been returned from a call to a COM component.
   at MS.Internal.XcpImports.CheckHResult(UInt32 hr)
   at MS.Internal.XcpImports.SetValue(IManagedPeerBase obj, DependencyProperty property, String s)
   at MS.Internal.XcpImports.SetValue(IManagedPeerBase doh, DependencyProperty property, Object obj)
   at System.Windows.DependencyObject.SetObjectValueToCore(DependencyProperty dp, Object value)
   at System.Windows.DependencyObject.SetEffectiveValue(DependencyProperty property, EffectiveValueEntry& newEntry, Object newValue)
   at System.Windows.DependencyObject.UpdateEffectiveValue(DependencyProperty property, EffectiveValueEntry oldEntry, EffectiveValueEntry& newEntry, ValueOperation operation)
   at System.Windows.DependencyObject.SetValueInternal(DependencyProperty dp, Object value, Boolean allowReadOnlySet)
   at System.Windows.ResourceDictionary.set_Source(Uri value)
   at Telerik.Windows.Controls.Theme.CreateResourceDictionaryForApplicationTheme(Theme theme, String controlAssembly)
   at Telerik.Windows.Controls.Theme.AddMergedDictionaryFromApplicationTheme(ResourceDictionary generic, String assemblyName)
   at Telerik.Windows.Controls.Theme.OnApplicationThemeSetterChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
   at Telerik.Windows.PropertyMetadata.<>c__DisplayClass1.<Create>b__0(DependencyObject d, DependencyPropertyChangedEventArgs e)
   at System.Windows.DependencyObject.RaisePropertyChangeNotifications(DependencyProperty dp, Object oldValue, Object newValue)
   at System.Windows.DependencyObject.UpdateEffectiveValue(DependencyProperty property, EffectiveValueEntry oldEntry, EffectiveValueEntry& newEntry, ValueOperation operation)
   at System.Windows.DependencyObject.SetValueInternal(DependencyProperty dp, Object value, Boolean allowReadOnlySet)
   at System.Windows.DependencyObject.SetValue(DependencyProperty dp, Object value)
   at Telerik.Windows.Controls.Theme.SetApplicationThemeSetter(DependencyObject obj, String value)
   --- End of inner exception stack trace ---
   at MS.Internal.XcpImports.CreateFromXaml(UnmanagedMemoryStream stream, String sourceAssemblyName, Boolean createNamescope, Boolean requireDefaultNamespace, Boolean allowEventHandlers)
   at System.Windows.Controls.Control.GetBuiltInStyle(IntPtr nativeTarget, IntPtr& nativeStyle)
   --- End of inner exception stack trace ---
   at System.Windows.Application.LoadComponent(Object component, Uri resourceLocator)
   at Practica.Reporting.ReportViewer.InitializeComponent()
   at Practica.Reporting.ReportViewer..ctor()}

Do you think this could be related to the fact that I'm still running the RC build of VS2010 and you may be testing against the release build?

Ken
0
Accepted
Ken Swinney
Top achievements
Rank 1
answered on 16 Apr 2010, 02:10 AM
Hürcan Bulut,

If you have any themes (especially the Summer theme) applied to the ReportViewer control, remove the theme.

The problem should go away.

I hope this helps.

Ken
0
Hürcan Bulut
Top achievements
Rank 1
answered on 16 Apr 2010, 07:48 AM
I have no theme especially applied to the Report Viewer Control. But we are using the Office_Blue Theme globally, removing that would change our whole layout, but thanks. First i will update my VS 2010.

Updating Visual Studion to RTM changed nothing. But removing the style
StyleManager.ApplicationTheme = new Office_BlueTheme();
solves the problem, thanks to Ken. @Telerik: For me it seems, this is a bug.
0
Steve
Telerik team
answered on 16 Apr 2010, 02:30 PM
Hello guys,

We were able to reproduce the problem with non default theme and would do our best to address this problem in the upcoming Q1 SP1 expected next week.

Please excuse us for the temporary inconvenience.

Greetings,
Steve
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
0
Steve Johnson
Top achievements
Rank 1
answered on 23 Apr 2010, 09:59 PM
This seems to be back when combining SL ReportViewer SP1 and SL RadControls SP1.  It went away when I downloaded the ReportViewer SP and came back with the RadControls SP.

Thanks,
Steve
0
Steve
Telerik team
answered on 28 Apr 2010, 08:40 AM
Hi guys,

Note that RadControls for Silverlight have two separate builds for Silverlight 3 and Silverlight 4 and the difference can be noticed in the version e.g. 2010.1.0422.1030 is compiled against Silverlight 3, while 2010.1.0422.1040 is compiled against Silverlight 4 (notice the numbers 3 and 4 in version).

Sincerely yours,
Steve
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
Tags
General Discussions
Asked by
Hürcan Bulut
Top achievements
Rank 1
Answers by
Hürcan Bulut
Top achievements
Rank 1
Steve
Telerik team
Ken Swinney
Top achievements
Rank 1
Steve Johnson
Top achievements
Rank 1
Share this question
or