Jump to content
Software FX Community

Can't get references to work


User (Legacy)

Recommended Posts

Hi.  Hopefully you can help me (again).

I have successfully added charts to an asp.net site. However, when I tried

to duplicate this by creating a new vb.net project, and copying/pasting the

functioning code into the new project (I was trying to create a copy to mess

with), I get this error:

Compiler Error Message: CS0104: 'Chart' is an ambiguous reference

Here's the line that's erroring out:

Line 15: Chart Chart1 = new Chart(this);

The thing is, I did everything exactly the same, and have manually added ALL

the ChartFX references into the project. This is on the same server (in the

same parent directory even) as the one that works.

Do you have any ideas what might be going wrong?

Thanks!

Tara.

Link to comment
Share on other sites

Please check the references you added to the project, normally you only need

ChartFX.Internet.dll, ChartFX.base.dll and ChartFX.borders.dll.

If you also added ChartFX.dll then you will have 2 chart classes, the one in

ChartFX.Internet.dll and the one used in Windows Forms apps (ChartFX.dll)

Regards,

JC

Software FX Support

"Tara Hovel" <tara.hovel@attws.com> wrote in message

news:HnAaEiSNDHA.3180@webserver1.softwarefx.com...

> Hi. Hopefully you can help me (again).

>

> I have successfully added charts to an asp.net site. However, when I

tried

> to duplicate this by creating a new vb.net project, and copying/pasting

the

> functioning code into the new project (I was trying to create a copy to

mess

> with), I get this error:

>

> Compiler Error Message: CS0104: 'Chart' is an ambiguous reference

>

> Here's the line that's erroring out:

>

> Line 15: Chart Chart1 = new Chart(this);

>

> The thing is, I did everything exactly the same, and have manually added

ALL

> the ChartFX references into the project. This is on the same server (in

the

> same parent directory even) as the one that works.

>

> Do you have any ideas what might be going wrong?

>

> Thanks!

>

> Tara.

>

>

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...