Failed to create compnent 'AXHost'.

TeeChart for ActiveX, COM and ASP
Post Reply
amir6821
Newbie
Newbie
Posts: 5
Joined: Wed Apr 26, 2006 12:00 am
Contact:

Failed to create compnent 'AXHost'.

Post by amir6821 » Mon Sep 14, 2015 6:48 am

hi
I download trial version of TeechartActivex2015 and install it.
I create a simple project in vs2013 c++/cli and add this component successfull.
but often like now my form designer cant known teechart component and doesn't open my form design view and doesnt allow add other teechart component to another form.
strange thing is that in this situation if I Open new project , I can easily add teeChart component to form and dont occured any problem and i easily use this.


i have this error message in my project:
1-when i want open form designer that include teechart component i received this error message :

Message 103 C++ CodeDOM parser error: Line: 441, Column: 22 --- Unknown type 'AxTeeChart.AxTChart'. Please make sure that the assembly that contains this type is referenced. If this type is a part of your development project, make sure that the project has been successfully built. 0

2- when i want add teechart from toolbox to new form(in current project) i received this error message :

Failed to create component 'AxHost'. The error message follows:
'System.Reflection.ReflectionTypeLoadException: Unable to load on or more of the requested types. Retreive the LoaderExceptions property for more information.
at System.Windows.Forms.Design.DocumentDesigner.AxToolboxItem.CreateComponentsCore(IDesignerHost host) ....


one other strange is that in this project that designer is corrupted and has a problem with teechart component and doesnt open designer. if I Start Program , i can use teechart component in runtime. form shows teechart correctly and works fine.

finally I add errors snapshot for better understanding
thank you
Attachments
error3.PNG
error3.PNG (39.3 KiB) Viewed 13841 times
error2.PNG
error2.PNG (52.15 KiB) Viewed 13814 times
error1.PNG
error1.PNG (41.98 KiB) Viewed 13819 times

Yeray
Site Admin
Site Admin
Posts: 9611
Joined: Tue Dec 05, 2006 12:00 am
Location: Girona, Catalonia
Contact:

Re: Failed to create compnent 'AXHost'.

Post by Yeray » Mon Sep 14, 2015 10:33 am

Hello,

Could you please post some step by step instructions about how to make that simple application and how to reproduce the error?

Thanks in advance.
Best Regards,
ImageYeray Alonso
Development & Support
Steema Software
Av. Montilivi 33, 17003 Girona, Catalonia (SP)
Image Image Image Image Image Image Please read our Bug Fixing Policy

amir6821
Newbie
Newbie
Posts: 5
Joined: Wed Apr 26, 2006 12:00 am
Contact:

Re: Failed to create compnent 'AXHost'.

Post by amir6821 » Wed Sep 23, 2015 6:49 am

Hi
There is no special action
Simply i create new project
Then add teechart to form
Initially everythink is ok . but after a period i cant open form designer.
Now i find a trick but the problem still hassle me.

I find if i create new blank solution and then add existing project to that new sulotion ,this problem will be solve.but after several hour also that new solution faced with this problem and i must create new solution
But i tired from this trick.
Iam looking for solve this problem completely
Best wishes for you

Yeray
Site Admin
Site Admin
Posts: 9611
Joined: Tue Dec 05, 2006 12:00 am
Location: Girona, Catalonia
Contact:

Re: Failed to create compnent 'AXHost'.

Post by Yeray » Wed Sep 23, 2015 3:03 pm

Hello,
amir6821 wrote:a simple project in vs2013 c++/cli
amir6821 wrote:Simply i create new project
I'm not sure about what exact kind of project is that. Do you mean an "MFC Application"?
amir6821 wrote:Initially everythink is ok . but after a period i cant open form designer.
What should I do during that period?
Should I switch between code and design views until the crash occurs?
Should I go to the code view and open the design view after a couple of hours?
Best Regards,
ImageYeray Alonso
Development & Support
Steema Software
Av. Montilivi 33, 17003 Girona, Catalonia (SP)
Image Image Image Image Image Image Please read our Bug Fixing Policy

Post Reply