E_FAIL COM exception after adding toggle switch to the about page template

Thread is closed for posting
2 posts, 0 answers
  1. Mike
    Mike avatar
    5 posts
    Member since:
    Mar 2013

    Posted 19 Mar 2014 Link to this post

    I used the about page template and wanted to add the RadToggleSwitch to it

    I get this in Blend and VS 2013
    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.Collection_InsertValue[T](PresentationFrameworkCollection`1 collection, UInt32 index, CValue value)
       at MS.Internal.XcpImports.Collection_InsertDependencyObject[T](PresentationFrameworkCollection`1 collection, UInt32 index, DependencyObject value)
       at System.Windows.PresentationFrameworkCollection`1.InsertDependencyObject(Int32 index, DependencyObject value)
       at System.Windows.Controls.UIElementCollection.InsertInternal(Int32 index, UIElement value)     

    In a clean project single page with the about page added this does not happen?
  2. Deyan
    Deyan avatar
    2147 posts

    Posted 24 Mar 2014 Link to this post

    Hi Mike,

    This happens often when Visual Studio uses cached versions of the assemblies referenced in your project.

    Did you try cleaning your project, closing VS, re-opening it again and rebuilding the project?

    Let us know if this doesn't help.


    Build cross-platform mobile apps using Visual Studio and .NET. Register for the online webinar on 03/27/2014, 11:00AM US ET.. Seats are limited.

Back to Top