|
Unknown namespace |
Posted by Yegane on Jan-03-2012 15:30 |
|
hi everybody
I have chartdirector the trial , it's demo runs ok but when I make my own project
and add the library to my project it first detect the chartdirector class but when I build
the project it says the namespace "Chartdirector" not found!!!
can anybody help me?
does it relate to that it's the trial version? |
Re: Unknown namespace |
Posted by Peter Kwan on Jan-04-2012 03:08 |
|
Hi Yegane,
You mentioned that the namespace "Chartdirector" not found.
The namespace in ChartDirector should be "ChartDirector", not "Chartdirector". (The 6th letter should be "D", not "d".) If this is the cause of the problem, please change you code to use "ChartDirector", instead of "Chartdirector".
If you are already using "ChartDirector", would you mind to create a project that shows the problem? You must just create a new project with one line of code that uses the ChartDirector namespace, and that shows the error. Then please zip the entire project and attach it in your message.
(In programming, even minor issues, such as "ChartDirector" vs "Chartdirector", can cause problems. So it is better if I can get the exact code and project configuration. Also, with the code and project file, I can know the exact programming language and development environment that you are using.)
Regards
Peter Kwan |
Re: Unknown namespace |
Posted by Yegane on Jan-04-2012 15:36 |
|
Hi Mr
I wrote it incorrect in my question but I have written it in right form in my project
==> "ChartDirector"
if you notice and open the project first it shows that it detec the class but when you run it
everything goes wrong.
the project it's attached now.
Thank you 4 your Help
|
Re: Unknown namespace |
Posted by Peter Kwan on Jan-05-2012 02:24 |
|
Hi Yegane,
The error occurs because your project is not targetting the standard .NET framework. Instead, it is targetting the .NET Framework Client Profile. ChartDirector requires the standard .NET framework. To solve the problem, please configure your project to target the standard .NET framework instead. (Choose Project/Properties and change the "Target Framework" to ".NET Framework 4".)
Hope this can help.
Regards
Peter Kwan |
|