Page 1 of 1

Fresh install fails

Posted: Wed Jan 30, 2013 5:11 pm
by 9644022
I've taken on support of legacy code, a few years old. It runs fine on a development machine (Windows 7 64 bit, .Net 4), having first run TeeChartV2.exe.
The problem comes when installing an msi of this code on a fresh machine, (also Windows7 64 bit, .Net 4). On running the freshly-installed application, I see

"The following unhandled error occurred:_ Object reference not set to an instance of an object. Please see the event log for more information. The application will now terminate"

There is nothing in the event log. Then I run TeeChartV2.exe, effectively putting the developers licence on the clean freshly created test machine. Then the code works. I've repeated this four times, always the same result. I see no extra files being added in the application folder. Would appreciate some help :)

Re: Fresh install fails

Posted: Thu Jan 31, 2013 12:32 pm
by 10050769
Hello PaulB

I have tried to reproduce your problem and I can not reproduce it here. Would be very helpful for us if you can send us a project because we can reproduce your problem here and can find a good solution for your problem.

Thanks,

Re: Fresh install fails

Posted: Thu Jan 31, 2013 2:42 pm
by narcis
Hi PaulB,

This may mean that the TeeChart license is either not correcty installed in your development machine or not compiled correctly into the application. Please follow the steps I listed in this thread to check it.

Thanks in advance.

Re: Fresh install fails

Posted: Thu Jan 31, 2013 3:35 pm
by 9644022
I tried a new (C# 2010) project on the development machine. Not entirely sure what I'm doing, but I copied the TeeChart object from the legacy project to the new project. Compiling it gave these errors:

Error 3 Unable to resolve type 'Steema.TeeChart.TChart, TeeChart, Version=2.0.2987.19069, Culture=neutral, PublicKeyToken=9c8126276c77bdb7' C:\Test\WindowsFormsApplication1\WindowsFormsApplication1\Properties\licenses.licx 1 WindowsFormsApplication1

Warning 1 The currently targeted framework ".NETFramework,Version=v4.0,Profile=Client" does not include "System.Design, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" which the referenced assembly "TeeChart, Version=2.0.2987.19069, Culture=neutral, PublicKeyToken=9c8126276c77bdb7, processorArchitecture=MSIL" depends on. This caused the referenced assembly to not resolve. To fix this, either (1) change the targeted framework for this project, or (2) remove the referenced assembly from the project. WindowsFormsApplication1

Does this mean I need a later version of TeeChart?

How to I get to tutorial 17

Thanks again for the help

Paul

Re: Fresh install fails

Posted: Thu Jan 31, 2013 3:50 pm
by narcis
Error 3 Unable to resolve type 'Steema.TeeChart.TChart, TeeChart, Version=2.0.2987.19069, Culture=neutral, PublicKeyToken=9c8126276c77bdb7' C:\Test\WindowsFormsApplication1\WindowsFormsApplication1\Properties\licenses.licx 1 WindowsFormsApplication1

Warning 1 The currently targeted framework ".NETFramework,Version=v4.0,Profile=Client" does not include "System.Design, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" which the referenced assembly "TeeChart, Version=2.0.2987.19069, Culture=neutral, PublicKeyToken=9c8126276c77bdb7, processorArchitecture=MSIL" depends on. This caused the referenced assembly to not resolve. To fix this, either (1) change the targeted framework for this project, or (2) remove the referenced assembly from the project. WindowsFormsApplication1

Does this mean I need a later version of TeeChart?
This means you should change the .NET Framework version your project targets. You should probably set it to 2.0 or the version with which the TeeChart assembly you use was built.
How to I get to tutorial 17
Go to the program group TeeChart installer created at Start Menu -> All programs.

Re: Fresh install fails

Posted: Fri Feb 01, 2013 10:46 am
by 9644022
Hi Narcis, thanks for the replies. The legacy project is 100 k lines of code. We are trying to move it from .Net 2 to .Net 4. Hence we have to be able to target .Net 4.

Do we need another version of TeeChart? I checked the download page for our customer number/licence number/password and it doesn't mention VS2010 or .Net 4. Should we be buying a later version?

Thanks

Re: Fresh install fails

Posted: Fri Feb 01, 2013 10:52 am
by narcis
Hi PaulB,

Yes, in that case you'll need a TeeChart version that supports .NET Framework 4. This means you should upgrade your TeeChart for .NET v2 license to the current v2012 version. Here you'll find the upgrade options. At the TeeChart .NET version info page you can check when .NET Framework 4 support was introduced.

Re: Fresh install fails

Posted: Mon Feb 04, 2013 12:28 pm
by 9644022
Thanks Narcis. I want to make sure I order the right upgrade.

Our current key has the text:
"Licensing details for TeeChart Pro .NET V2:
For both Vs 2003 & VS 2005"

I see no evidence that we bought source code. We need .Net 4 for use with VS2010.
The Steema options show .Net4 becoming available in "Tee Chart for .Net version 2012"

Hence I think we need to buy this option:
"Upgrade to TeeChart for .NET v2012 (non sourcecode) from v1 or v2"

Is this correct please?

Thanks

Re: Fresh install fails

Posted: Mon Feb 04, 2013 12:39 pm
by narcis
Hi PaulB,

Yes, I think this option would fit your needs.