Skip Navigation LinksHome / Community & Support / Developer Productivity Tools Forums / Silverlight > Scheduler > Error HRESULT E_FAIL has been returned from a call to a COM component. COM component.

Not answered Error HRESULT E_FAIL has been returned from a call to a COM component. COM component.

Feed from this thread
  • David Betsiashvili avatar

    Posted on May 24, 2010 (permalink)

    Hi,

    In Expression Blend ofter putting Scheduler control in our project  Expression Blend form designer throws following error "Error HRESULT E_FAIL has been returned from a call to a COM component." but project is building and running successfully.

    how  can we solve this problem.

    thanks in advance.
    Attached files

    Reply

  • Temo Namoradze avatar

    Posted on May 25, 2010 (permalink)

    Hello,

    I have same problem anybody has any idea how to fix it?

    "Error HRESULT E_FAIL has been returned from a call to a COM component."

    Reply

  • Konstantina Konstantina admin's avatar

    Posted on May 26, 2010 (permalink)

    Hello,

    Thank you for contacting us.

    This is a known issue and we are working on it at the moment. We will do our best to provide a fix for the next major release. Meanwhile, if you need a quick customization you can send us a sample project and a screenshot of what you are trying to achieve and we will do the changes for you.

    If you have any other concerns about our controls please let us know.

    Best wishes,
    Konstantina
    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.

    Reply

  • D B avatar

    Posted on May 27, 2010 (permalink)

    Hi,

    On which email address should i send my project.

    thanks.

    Reply

  • Vlad Vlad admin's avatar

    Posted on May 27, 2010 (permalink)

    Hello,

    You can open support ticket.

    Regards,
    Vlad
    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.

    Reply

  • ALSHALHOUB avatar

    Posted on Jul 2, 2010 (permalink)

    I had the same problem, because i load data in the page constructor, but i checked if in Design Mode as below:
    public Page1() 
         InitializeComponent(); 
     
         if(!IsDesignTime) 
         { 
            LoadData(); 
         } 
    public bool IsDesignTime() 
        return DesignerProperties.GetIsInDesignMode(Application.Current.RootVisual); 
     then that problem disappeared.
    Hope it helps.

    Reply

  • Ricky avatar

    Posted on Aug 18, 2010 (permalink)

    Has this been resolved yet? I could not find a related issue in PITS. The suggested work around does not work.

    Reply

  • Konstantina Konstantina admin's avatar

    Posted on Aug 23, 2010 (permalink)

    Hi Ricky,

    Thank you for your reply.

    Most of the issues with Blend Expression have been resolved, so there shouldn't be any problems dragging a Scheduler control onto the design surface with the latest binaries available.

    If you still experience difficulties could you please give us some more details about the case.

    Greetings,
    Konstantina
    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

    Reply

  • Dada avatar

    Posted on Aug 27, 2010 (permalink)

    Hi,
    I open a VS2010 project for Silverlight in Blend 4, that uses Telerik controls, and when I click on a User Control that contains a RadTabControl I have the error "Error HRESULT E_FAIL has been returned from a call to a COM component.".
    I check the assembly version and they are: 2010.2.714.1040
    Can help?
    thanks

    Reply

  • Tina Stancheva Tina Stancheva admin's avatar

    Posted on Aug 30, 2010 (permalink)

    Hi Dada,

    We are not aware of such an issue with the RadTabControl. However, if you can send us a sample project reproducing it, we will be more than happy to further investigate it.

    Best wishes,
    Tina Stancheva
    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

    Reply

  • John Pelak avatar

    Posted on Sep 10, 2010 (permalink)

    Hi,

    I had this problem back in the spring when I was first evaluating these component and had to eliminate them from consideration due to this issue.  As we had an upgrade to the Silverlight runtime and tools this week (as well as upgrades to the Telerik components), I had hoped we'd be past this, but apparently it's still an issue.

    I downloaded the latest binaries from Telerik yesterday, and built the simplest project I could with the RadScheduler component - the XAML for my page is:


    <UserControl
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" mc:Ignorable="d"
    x:Class="RadScheduleTest.MainPage"
    Width="640" Height="480">
    <Grid x:Name="LayoutRoot" Background="White">
    <telerik:RadScheduler Margin="15" d:LayoutOverrides="Width, Height" ViewMode="Week"/>
    </Grid>
    </UserControl>


    I used Blend 4 to create this project and it worked, but when I closed Blend and then returned the to project I got this on the Blend artboard:

    An Exception was thrown.
    Exception: Error HRESULT E_FAIL has been returned from a call to a COM component.
    StackTrace
    at MS.Internal.XcpImports.CheckHResult(UInt32 hr)
    at MS.Internal.XcpImports.Collection_InsertValue[T](PresentationFrameworkCollection`1 collection,
    at MS.Internal.XcpImports.Collection_InsertDependencyObject[T](PresentationFrameworkCollection
    at System.Windows.PresentationFrameworkCollection`1.InsertDependencyObject
    at System.Windows.Controls.UIElementCollection.InsertInternal(Int32 index, UIElement value)
    InnerExpection: None



    I'd really love to use the RadScheduler, but I can't until this is resolved.
    jmp

    Reply

  • Vincenzo avatar

    Posted on Sep 13, 2010 (permalink)

    I am getting the same error for all controls. I have just downloaded latest version:
    2010.2.8.12

    I create a brand new Expression Blend 4 Silverlight Sketflow project, reference the dlls and either drag or draw a Telerik control on the Designer

    I get "Error HRESULT E_FAIL has been returned from a call to a COM Component"
    This is my xaml code:

     

    <UserControl
        mc:Ignorable="d"
        x:Class="SilverlightPrototype3Screens.Screen_1"
        Width="640" Height="480">
      
        <Grid x:Name="LayoutRoot" Background="White">
            <Grid Margin="0" Width="640" Height="480">
                <telerik:RadTabControl HorizontalAlignment="Stretch" VerticalAlignment="Stretch">
                    <telerik:RadTabItem Header="RadTabItem">
                        <Grid Background="Transparent"/>
                    </telerik:RadTabItem>
                    <telerik:RadTabItem Header="RadTabItem">
                        <Grid Background="Transparent"/>
                    </telerik:RadTabItem>
                    <telerik:RadTabItem Header="RadTabItem">
                        <Grid Background="Transparent"/>
                    </telerik:RadTabItem>
                </telerik:RadTabControl>
            </Grid>
        </Grid>
    </UserControl>

    Reply

  • Vincenzo avatar

    Posted on Sep 13, 2010 (permalink)

    Alright, I have solved the issue on my end.
    This appears to be a result of some temp files and caching.

    Please note I am running Windows 7 64bit with Expression Blend 4. Steps below may may need to be tweaked to accommodate your environment.

    Here are the following steps I took:
    1) In Expression Blend, Clean Solution
    2) Delete all Bin and Obj folders throughout solution projects.
    3) Remove all References for each Solution Project
    4) Clean up windows (Windows Explorer - Right-Click drive, Properties, Click Disk Cleanup Button
    5) Expose hidden and protected system files (Windows Explorer)
    6) Delete C:\Users\<username>\AppData\Local\Microsoft\Expression
    7) Open Solution
    8) Add references back
    9) Build


    Good Luck, All
    -Vinny

    Reply

  • Konstantina Konstantina admin's avatar

    Posted on Sep 14, 2010 (permalink)

    Hi Vincenzo,

    Thank you for sharing the solution of the problem.

    Please feel free to contact us if you have any other concerns about our controls.

    All the best,
    Konstantina
    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

    Reply

  • John Pelak avatar

    Posted on Sep 14, 2010 (permalink)

    Hi Konstantina,

    Is there any plan for Telerik to provide a fix for this?  This workaround still makes it far too difficult to work with your components from within Expression Blend.

    Thanks,
    jmp

    Reply

  • Konstantina Konstantina admin's avatar

    Posted on Sep 15, 2010 (permalink)

    Hello John,

    We are aware that there is some issues when editing the Scheduler in Blend. Please accept our apologies for that. We are struggling to fix them, but as now the work over the new Scheduler is running with full force, this task is with lower priority. Also, the new Scheduler, which will be included in the Q3 2010 release, won't have such problems and will be with better performance. So, you might consider migrating to it.
    Sorry for the caused inconvenience again.

    If you have any other concerns about our controls please feel free to contact us again.

    All the best,
    Konstantina
    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

    Reply

  • Mark Richardson avatar

    Posted on Aug 9, 2011 (permalink)

    I have Q2 2011 that I am using.

    I have a series of RadTabItems.
    I get their error if I just randomly keep clicking on tabs real fast.

    Reply

  • Tina Stancheva Tina Stancheva admin's avatar

    Posted on Aug 10, 2011 (permalink)

    Hi Mark,

    Can you please elaborate on your issue further because we cannot reproduce it locally. Can you share with us the scenario in which the RadTabControl is used and the steps to reproduce the issue? Thank you in advance for your cooperation.

    Greetings,
    Tina Stancheva
    the Telerik team

    Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get now >>

    Reply

  • Mark Richardson avatar

    Posted on Aug 10, 2011 (permalink)

    Tina,

    1. Add multiple tabs with nested tabs to a XAML page.
    2. Than in one of the tabs, add a RadHTMLPlaceHolder control inside it.
    3. In the XAML code, point the RadHTMLPlacer to a local aspx page that loads a RadEditorHTML server side telerik control.
    4. Now switch back and forth real fast between each tab.

    The tab with the RadHTMLPlaceHolder was the one I found throwing the error.
    It could be a load issue. Switching back and forth before the RadHTMLPlaceHolder has finished loading it's server side data.

    Thanks,
    Mark

    Reply

  • Tina Stancheva Tina Stancheva admin's avatar

    Posted on Aug 12, 2011 (permalink)

    Hello Mark,

    Thank you for getting back to us. This is a known issue and it is caused by the RadHtmlPlaceholder when hosted in a RadTabControl. The issue is logged in our PITS where you can track its progress and vote for it thus increasing its priority.

    Greetings,
    Tina Stancheva
    the Telerik team

    Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get now >>

    Reply

  • Raynald avatar

    Posted on Sep 30, 2011 (permalink)

    I have the same problem:

    hresult e_fail has been returned from a call to a com component

    When I tried to add the ReportViewer control

    I just download Q2 2011 today
    Attached files

    Reply

  • Peter Peter admin's avatar

    Posted on Oct 5, 2011 (permalink)

    Hi Raynald,

    Generally this exception thrown due to a missing required assembly references. The Silverlight Report Viewer depends on the following  assemblies and they have to be added prior to adding the Silverlight Report Viewer.

    RadControls for Silverlight assemblies: 
    • Telerik.Windows.Controls.dll
    • Telerik.Windows.Controls.Input.dll
    • Telerik.Windows.Controls.Navigation.dll

    Telerik ReportViewer assembly:

    • Telerik.ReportViewer.Silverlight.dll

    For a demo project you can check out the demos that came with your installation of Telerik Reporting:
    Start -> All Programs -> Telerik -> Reporting Q2 2010. 

    For more information check out the  following help resources.


    Best wishes,
    Peter
    the Telerik team

    Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

    Reply

  • Posted on Nov 1, 2011 (permalink)

    Hello.
    I have encountered the same error when I tried to pass an url with more than 4000 characters in SL 4.
    The scenario is like this:
    I use an HTTP handler that processes the parameters from URL and exports the data into a .csv file.
    If the url path is too long, then this error is raised: 


    {System.Exception ---> System.Exception: Error HRESULT E_FAIL has been returned from a call to a COM component.
       at System.Net.Browser.BrowserHttpWebRequest.InternalEndGetResponse(IAsyncResult asyncResult)
       at System.Net.Browser.BrowserHttpWebRequest.<>c__DisplayClass5.<EndGetResponse>b__4(Object sendState)
       at System.Net.Browser.AsyncHelper.<>c__DisplayClass4.<BeginOnUI>b__1(Object sendState)
       --- End of inner exception stack trace ---
       at System.Net.Browser.AsyncHelper.BeginOnUI(SendOrPostCallback beginMethod, Object state)
       at System.Net.Browser.BrowserHttpWebRequest.EndGetResponse(IAsyncResult asyncResult)
       at SPIN.Wholesale.Presentation.Overround.Console.MVC.Controller.ExportController.ReadExportHandlerCallback(IAsyncResult asynchronousResult)
       at System.Net.Browser.BrowserHttpWebRequest.<>c__DisplayClassd.<InvokeGetResponseCallback>b__b(Object state2)
       at System.Threading.QueueUserWorkItemCallback.WaitCallback_Context(Object state)
       at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean ignoreSyncCtx)
       at System.Threading.QueueUserWorkItemCallback.System.Threading.IThreadPoolWorkItem.ExecuteWorkItem()
       at System.Threading.ThreadPoolWorkQueue.Dispatch()
       at System.Threading._ThreadPoolWaitCallback.PerformWaitCallback()}


    Do you have an idea of how to overpass this issue?
    Thanks in advance.

    Reply

  • Yana Yana admin's avatar

    Posted on Nov 4, 2011 (permalink)

    Hello Andrei,

    It seems that the issue explained here is the same as in your case.

    All the best,
    Yana
    the Telerik team

    Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

    Reply

  • Ryan avatar

    Posted on Jan 5, 2012 (permalink)

    Vincenzo I am having this issue and was hoping you could help. I followed your steps and I still receive the same error.

    I have the 2011 Q3 version of the Telerik tools and I am developing in Expression Blend 4.

    Any additional information you can provide would be helpeful.


    Thanks!

    Reply

  • Richard avatar

    Posted on Feb 16, 2012 (permalink)

    This is also happening to me, using the RadMenu and RadWindow controls in Blend Preview for Silverlight 5. Opening a user control that uses either of these controls causes the Blend designer to show the error "HRESULT E_FAIL has been returned from a call to a COM component". 

    I reported a separate Blend error with the RadChart. The RadChart causes the designer to report a MissingMethodException.

    Thanks,
    Richard

    Reply

  • Dani Dani admin's avatar

    Posted on Feb 22, 2012 (permalink)

    Hello Richard,

    We were unable to reproduce this issue in Expression Blend Preview for Silverlight 5. Please, make sure you are using Silverlight 5 assemblies and the TargetFramework of your project is also Silverlight 5.

    If you are still experiencing troubles, please send us a sample project reproducing the issue.


    Greetings,
    Dani
    the Telerik team
    Sharpen your .NET Ninja skills! Attend Q1 webinar week and get a chance to win a license! Book your seat now >>

    Reply

  • Richard avatar

    Posted on Feb 22, 2012 (permalink)

    Hi Dani,

    Thanks for looking into it.

    Hmm... you're right, I can't reproduce the problem either with a simple sample project using the RadMenu control. It happens in our full app, but not in the sample project.

    When I have some time, I'll try to take our full app and remove parts of it until I have a minimal repro I can send you.

    Thanks,
    Richard

    Reply

  • Posted on Apr 13, 2012 (permalink)

    Hi,
    We are facing same issue, While I try to close two RadTabConrol simultaneously, the user interface get crashed and throws the error"hresult e_fail has been returned from a call to a com component ".

    If you found some reliable answer, please reply at anitac@chetu.com or aniitachauhan@gmail.com.

    Thanks and regards-
    Anita Chauhan.

    Reply

  • Posted on Apr 28, 2012 (permalink)

    Hi,
    I have attached an file, which shows the error raised while I close the 2 RadTabControls silmultaneously.
    I searched for a solution but still , not found the reason for this.


    Thanks and Regards-
    Anita Chauhan.
    Attached files

    Reply

  • Tina Stancheva Tina Stancheva admin's avatar

    Posted on Apr 30, 2012 (permalink)

    Hi Anita,

    Can you please elaborate further on the issues you have with the RadTabControl? It would be best to start a new support thread targeting the RadTabControl and send us a small sample demonstrating your scenario and reproducing the issues. That will allow us to investigate the case and get back to you with a solution.

    Greetings,
    Tina Stancheva
    the Telerik team

    Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

    Reply

  • Posted on May 4, 2012 (permalink)

    Hi, Thanks for your reply.

    Its a big project consisting of 20 projects in it. So its not possible to send the proj. to demonstrate the issue with HResult Com crash.
    One thing I want to know, I searched on net and found that, it search for a component and when it fails to find that, it throws this error, so is there any ways to know from error message that, which component it is looking for.

    I have attached the image with my previous reply.
    Thanks.

    Reply

  • Tina Stancheva Tina Stancheva admin's avatar

    Posted on May 9, 2012 (permalink)

    Hi Anita,

    From this stack trace I am not sure what might be causing the issue, we will have to reproduce it locally and further investigate it in order to know what exactly is causing the exception. However, as we had such an issue in the HtmlPlaceholder (PITS), which is already fixed, I wanted to ask you which version of our controls you use in your projects? Can you test them with the latest version of the RadControls for Silverlight suite and let us know if the issue is still reproducible on your side? And if it is, it would really help us if you can elaborate on your scenario and how you close the RadTabControls simultaneously.

    Regards,
    Tina Stancheva
    the Telerik team

    Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

    Reply

Back to Top

Skip Navigation LinksHome / Community & Support / Developer Productivity Tools Forums / Silverlight > Scheduler > Error HRESULT E_FAIL has been returned from a call to a COM component. COM component.
Related resources for "Error HRESULT E_FAIL has been returned from a call to a COM component. COM component."

Silverlight Scheduler Features  |  Documentation  |  Demos  |  Telerik TV  |  Self-Paced Trainer  ]