Silverlight ReportViewer: '__implicit_items'

9 posts, 1 answers
  1. Hürcan Bulut
    Hürcan Bulut avatar
    11 posts
    Member since:
    Nov 2009

    Posted 12 Apr 2010 Link to this post

    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.

  2. Hürcan Bulut
    Hürcan Bulut avatar
    11 posts
    Member since:
    Nov 2009

    Posted 12 Apr 2010 Link to this post

    Same Result with version 4.0.10.329.
  3. DevCraft banner
  4. Steve
    Admin
    Steve avatar
    10941 posts

    Posted 14 Apr 2010 Link to this post

    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.
  5. Ken Swinney
    Ken Swinney avatar
    2 posts
    Member since:
    Jan 2010

    Posted 15 Apr 2010 Link to this post

    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
  6. Answer
    Ken Swinney
    Ken Swinney avatar
    2 posts
    Member since:
    Jan 2010

    Posted 15 Apr 2010 Link to this post

    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
  7. Hürcan Bulut
    Hürcan Bulut avatar
    11 posts
    Member since:
    Nov 2009

    Posted 16 Apr 2010 Link to this post

    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.
  8. Steve
    Admin
    Steve avatar
    10941 posts

    Posted 16 Apr 2010 Link to this post

    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.
  9. Steve Johnson
    Steve Johnson avatar
    24 posts
    Member since:
    Feb 2010

    Posted 23 Apr 2010 Link to this post

    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
  10. Steve
    Admin
    Steve avatar
    10941 posts

    Posted 28 Apr 2010 Link to this post

    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.
Back to Top
DevCraft banner