Page 1 of 1

Failed to create compnent 'AXHost'.

Posted: Mon Sep 14, 2015 6:48 am
by 9531187
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

Re: Failed to create compnent 'AXHost'.

Posted: Mon Sep 14, 2015 10:33 am
by yeray
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.

Re: Failed to create compnent 'AXHost'.

Posted: Wed Sep 23, 2015 6:49 am
by 9531187
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

Re: Failed to create compnent 'AXHost'.

Posted: Wed Sep 23, 2015 3:03 pm
by yeray
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?