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

Error in design mode: COMException: Error HRESULT E_FAIL has been returned from a call to a COM component.

13 Answers 278 Views
Chart for XAML
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Erik
Top achievements
Rank 1
Erik asked on 04 Feb 2014, 09:23 AM
Hi!

I have been fiddeling with your chart now for some days, and it works well!

Somewhere in the process I ran into an issue where in the designer-mode of Visual Studio 2013 and Blend 12 i cannot see the chart, but get this error:

----
COMException: Error HRESULT E_FAIL has been returned from a call to a COM component.
StackTrace
at System.Runtime.InteropServices.WindowsRuntime.IVector`1.InsertAt(UInt32 index, T value)
   at System.Runtime.InteropServices.WindowsRuntime.VectorToListAdapter.InsertAtHelper[T](IVector`1 _this, UInt32 index, T item)
   at System.Runtime.InteropServices.WindowsRuntime.VectorToListAdapter.Insert[T](Int32 index, T item)
InnerException: None
----

I tried stripping things out of the code, and ended up with:
        <telerikChart:RadCartesianChart>
        </telerikChart:RadCartesianChart>

And still the same error, even after Cleaning and Rebuilding the solution! If I remove the above, the error dissapears.

In my project I reference these libs:
Telerik.Core
Telerik.UI.Xaml.Chart
Telerik.UI.Xaml.Grid
Telerik.UI.Xaml.Input
Telerik.UI.Xaml.Primitives

Have you seen anything like this before? 

Best regards,
Erik

13 Answers, 1 is accepted

Sort by
0
Ivaylo Gergov
Telerik team
answered on 05 Feb 2014, 12:42 PM
Hi Erik,

Thank you for contacting us.

So far we do not have any known issues. Could you please send us the project and we will test it on our side.

I am looking forward to your reply.

Regards,
Ivaylo Gergov
Telerik

Check out the new Telerik Platform - the only modular platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native apps. Register for the free online keynote and webinar to learn more about the Platform on Wednesday, February 12, 2014 at 11:00 a.m. ET (8:00 a.m. PT).

0
Erik
Top achievements
Rank 1
answered on 05 Feb 2014, 12:47 PM
OK, thanks for your reply. Unfourtunately I cannot send the entire project to you as it is quite large. I will try to make a small sample to recreate the error when I get the time. It is unfourtunate it does not work, there must be something interferring with your component somehow.

Regards Erik
0
Ivaylo Gergov
Telerik team
answered on 05 Feb 2014, 01:03 PM
Hi,

Could you please try to manually delete the obj folder from project folder and see if this solves the problem?


Regards,
Ivaylo Gergov
Telerik

Check out the new Telerik Platform - the only modular platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native apps. Register for the free online keynote and webinar to learn more about the Platform on Wednesday, February 12, 2014 at 11:00 a.m. ET (8:00 a.m. PT).

0
Erik
Top achievements
Rank 1
answered on 05 Feb 2014, 01:29 PM
Hi,

Thanks, but unfourtunately no.

Some more information about the project:
The chart is inside a Page in a Windows Store Class Library project, and referenced into the main Windows Store App project. Prism is used for MVVM.

Regards,
Erik
0
Ivaylo Gergov
Telerik team
answered on 10 Feb 2014, 10:29 AM
Hi Erik,

Thank you for your cooperation.

Using the provided setup I was able to reproduce the exception of the VS Designer and we will further investigate what could be the reason.
Meanwhile, if the designer plays an important role in your development process, as a temporary workaround when you want to use the VS Designer you can unload the project that contains a reference to the class library.

I will contact you as soon as we have additional information regarding this matter. I have also update your Telerik points as a token of gratitude for bringing this issue to our attention.

Regards,
Ivaylo Gergov
Telerik

Check out the new Telerik Platform - the only modular platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native apps. Register for the free online keynote and webinar to learn more about the Platform on Wednesday, February 12, 2014 at 11:00 a.m. ET (8:00 a.m. PT).

0
Erik
Top achievements
Rank 1
answered on 10 Feb 2014, 11:42 AM
Hi Ivaylo,

Thanks a lot. I'll use that work around for the time being.

Best regards,
Erik
0
Nikhil
Top achievements
Rank 1
answered on 01 Jul 2014, 09:54 PM
Hi Ivaylo Gergov, is there any update on this issue?

I am also getting exact same error message.

-Nikhil
0
Ivaylo Gergov
Telerik team
answered on 04 Jul 2014, 02:51 PM
Hi Nikhil,

The issue is still present and so far we could not determine if the problem is in our component or in the VS Designer.

Regards,
Ivaylo Gergov
Telerik
 

Check out the new Telerik Platform - the only modular platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native apps. Register for the free online keynote and webinar to learn more about the Platform on Wednesday, February 12, 2014 at 11:00 a.m. ET (8:00 a.m. PT).

 
0
Jon
Top achievements
Rank 1
answered on 07 Oct 2014, 10:31 AM
Any progress with this? - I've just upgraded to .net 4.5.1 and am running VS 2013.
0
Ivaylo Gergov
Telerik team
answered on 10 Oct 2014, 09:30 AM
Hello Jon,

We investigated this issue but we could not determine the reason for it. We strongly believe that the problem comes from the VS designer so for now the issue stays unresolved.

Please, let me know should you have any other questions.

Regards,
Ivaylo Gergov
Telerik
 

Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

 
0
Jon
Top achievements
Rank 1
answered on 10 Oct 2014, 09:33 AM
Any pointers on how I could track it down?
0
Ivaylo Gergov
Telerik team
answered on 15 Oct 2014, 07:21 AM
Hello Jon,

We have tested such scenario with the MS controls and the designer still breaks. However, I was able to think of a workaround. You can try to reference the UI for Windows 8.1 SDK both in the class library and in the application.

I hope this works for you.

Regards,
Ivaylo Gergov
Telerik
 

Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

 
0
Jon
Top achievements
Rank 1
answered on 15 Oct 2014, 07:44 AM
Hi Ivaylo

Thanks for that.  I managed to get past the issue by running VS as Admin.  I assumed that I'd need to continue as Admin but for the purposes of letting you know I have just run VS with normal rights and it works so hopefully it was simply that VS needed to run as admin in order to setup the system.

Now to solve the other .Net 4.5.1 issues and I can then upgrade my application fully!

Regards

Jon
Tags
Chart for XAML
Asked by
Erik
Top achievements
Rank 1
Answers by
Ivaylo Gergov
Telerik team
Erik
Top achievements
Rank 1
Nikhil
Top achievements
Rank 1
Jon
Top achievements
Rank 1
Share this question
or