SYMPTOM
This error appears the the chart runs:
Compiler Error Message: BC30560: 'Chart' is ambiguous in the namespace 'dotnetCHARTING'
CAUSE 1
The page class name is the same as the chart control. For example:
[C#]
public class Chart : System.Web.UI.Page { protected dotnetCHARTING.Chart Chart; |
SOLUTION 1
Rename the chart or page.
CAUSE 2
Your VS project references a dotnetCHARTING dll that is not the same as the dotnetCHARTING dll in the project's bin folder. For instance if you have the server version installed and the website dll resides in your bin folder.
SOLUTION 2
Delete the dotnetCHARTING reference and specify the correct dll.
SUMMARY
When this error occurs it means the .net runtime has 2 versions of objects with the same name. To solve the issue, one has to be eliminated or renamed.