Chart is ambiguous in the namespace dotnetCHARTING

Expand / Collapse
 

Chart is ambiguous in the namespace dotnetCHARTING


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.


 



Rate this Article:
     

Add Your Comments


Comment require login or registration.

Details
Last Modified:Friday, September 3, 2004
Last Modified By: Support
Type: ERRMSG
Rated 5 stars based on 1 vote
Article has been viewed 18,313 times.
Options