Page 1 of 1

Teechart 4 and Framework 2

Posted: Wed Dec 29, 2010 10:00 am
by 15658221
I need to target the framework version 2 with Teechart v4. I get an error I can't solve. I post the error message:

'Advertencia 5 La referencia principal "TeeChart, Version=4.1.2010.11303, Culture=neutral, PublicKeyToken=9c8126276c77bdb7, processorArchitecture=MSIL" no se pudo resolver porque tiene una dependencia indirecta del ensamblado de .NET Framework "System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" cuya versión es superior "4.0.0.0" a la que hay en la versión de .NET Framework de destino actual "2.0.0.0".'

Could you please tell me how to proceed, I think I cannot change the dependencies myself.

I'm developing an application in Visual Studio 2010 (Visual basic)

Thank you

Re: Teechart 4 and Framework 2

Posted: Wed Dec 29, 2010 4:50 pm
by 10050769
Hello Jesus,

Problem basically is that you can not use a dll made in .Net Framework 4 in the projects where .Net framework 2. I suggest you, download TeeChart version 4, but for VS2008 or VS2005 and do as explain next:
1.- Change TragetFramework of your project from 4.0 to 2.0.
2.- Add in References TeeChart.dll are you downloaded (VS2008 or VS2005).
3.- Commented all dlls there aren't in .Net Framework 2.0.
4.- Check if application works for you.

If you have more problems, let me know.

I hope will helps.

Thanks,

Re: Teechart 4 and Framework 2

Posted: Wed Dec 29, 2010 6:30 pm
by 15658221
Thank you Sandra, it worked beautifully when I just changed the dll version referenced by the application.

Re: Teechart 4 and Framework 2

Posted: Thu Dec 30, 2010 10:17 am
by 10050769
Hello Jesus,

I am glad that your problem is solved :).

Thanks,