URGENT!! Application does not start after upgrading

TeeChart for Microsoft Visual Studio .NET, Xamarin Studio (Android, iOS & Forms) & Monodevelop.
JohnS
Newbie
Newbie
Posts: 31
Joined: Mon Aug 26, 2013 12:00 am

URGENT!! Application does not start after upgrading

Post by JohnS » Thu Aug 29, 2013 2:39 pm

Dear support team,

First we installed an evaluation version of TChart .net 2013.
After this installation we had to manually add the TeeChart.dll in Visual Studio 2012 to be able to find the Chart on the tool box.

Our program then worked OK, also at our customers PC.

Then we bought a license and installed the licensed version (TeeChartNET2013_4.1.2013.07300) on our programming PC,
without first uninstalling the evaluation version.

After that our application still worked fine on our programming PC and at the customers PC.

Then we uninstalled the evaluation version, and the trouble began.
We had to uninstall everything, and manually delete leftovers in e.g. the Registry (great uninstall tool!).
We then installed the licensed version again, and everything seemed to work as expected on our programming PC,
until we deployed our application to our customers PC.

On our customers PC the application simply does not start!
No error messages are shown.

All involved PCs run Windows 7 32bit.

This is normally a sign that a .dll is missing or somehow incorrect.

Of course we suspect the TChart to be the sinner, as the installation went wrong in the first place,
but how should we go about checking this?

The case is pretty urgent now, so any help is highly appreciated!

Yeray
Site Admin
Site Admin
Posts: 9613
Joined: Tue Dec 05, 2006 12:00 am
Location: Girona, Catalonia
Contact:

Re: URGENT!! Application does not start after upgrading

Post by Yeray » Thu Aug 29, 2013 3:29 pm

Hello,
JohnS wrote:First we installed an evaluation version of TChart .net 2013.
After this installation we had to manually add the TeeChart.dll in Visual Studio 2012 to be able to find the Chart on the tool box.

Our program then worked OK, also at our customers PC.

Then we bought a license and installed the licensed version (TeeChartNET2013_4.1.2013.07300) on our programming PC,
without first uninstalling the evaluation version.

After that our application still worked fine on our programming PC and at the customers PC.

Then we uninstalled the evaluation version, and the trouble began.
This is because you installed the registered version but you probably didn't manually replace the TeeChart.dll from the list of references in the application. So, the application still referenced the TeeChart.dll from the evaluation version.
JohnS wrote:We had to uninstall everything, and manually delete leftovers in e.g. the Registry (great uninstall tool!).
We then installed the licensed version again, and everything seemed to work as expected on our programming PC,
until we deployed our application to our customers PC.

On our customers PC the application simply does not start!
No error messages are shown.

All involved PCs run Windows 7 32bit.

This is normally a sign that a .dll is missing or somehow incorrect.

Of course we suspect the TChart to be the sinner, as the installation went wrong in the first place,
but how should we go about checking this?

The case is pretty urgent now, so any help is highly appreciated!
Please, check the TeeChart.dll your application is referencing is the correct one. And make sure that licenses.licx is built as an embedded resource in your project as told in Tutorial 17.
Best Regards,
ImageYeray Alonso
Development & Support
Steema Software
Av. Montilivi 33, 17003 Girona, Catalonia (SP)
Image Image Image Image Image Image Please read our Bug Fixing Policy

JohnS
Newbie
Newbie
Posts: 31
Joined: Mon Aug 26, 2013 12:00 am

Re: URGENT!! Application does not start after upgrading

Post by JohnS » Thu Aug 29, 2013 8:20 pm

Hi Yeray,

Thanks for your answer.

We already removed all known references to TeeChart.dll in Visual Studio,
and manually added the new one as reference from this path:
C:\Program Files\Steema Software\Steema TeeChart for .NET 2013 4.1.2013.07300\net45\x86

Enclosed screen dump 1 shows "TeeChart" in the "References" list in Visual Studio after we added the dll.
Is this correct?

Enclosed screen dump 2 shows how licenses.licx is embedded, is this correct?

We have also tried to manually copy licenses.licx to the folder that contains our application on the customers PC,
but still no luck.

The registry key "DesignKey"="Steema.TeeChart.TChart is a licensed component." is in place on our programming PC.

As the Chart is added to our application at design-time, we have NOT added the dll to Visual Studio with "Add | AddExisting Item".
We only added a reference as written above.

In the Windows event log on the customers PC we can see that an exception
was thrown with regards to some Steema license stuff, so we are probably on the right track.


Looking forward to your comments to the above, and what we can do to investigate further.

Thanks in advance!
Attachments
2.JPG
2.JPG (58.82 KiB) Viewed 17633 times
1.JPG
1.JPG (58.23 KiB) Viewed 17630 times

JohnS
Newbie
Newbie
Posts: 31
Joined: Mon Aug 26, 2013 12:00 am

Re: URGENT!! Application does not start after upgrading

Post by JohnS » Fri Aug 30, 2013 1:10 pm

Would be great with some feedback!
After investigating half of the day I now have the following error messages from the Windows log on our customers machine:

The application log shows this message:

Faulting application name: TurboScrubber_P4116_HMI.exe, version: 1.0.0.0, time stamp: 0x52208fff
Faulting module name: KERNELBASE.dll, version: 6.1.7601.18015, time stamp: 0x50b83b16
Exception code: 0xe0434352
Fault offset: 0x0000812f
Faulting process id: 0xd18
Faulting application start time: 0x01cea57d1896bad0
Faulting application path: C:\HMI\TurboScrubber_P4116_HMI.exe
Faulting module path: C:\Windows\system32\KERNELBASE.dll
Report Id: 592c5466-1170-11e3-8d1b-00079250af43

The .net error log this:

Application: TurboScrubber_P4116_HMI.exe
Framework Version: v4.0.30319
Description: The process was terminated due to an unhandled exception.
Exception Info: System.IO.FileNotFoundException
Stack:
at System.ModuleHandle.ResolveType(System.Reflection.RuntimeModule, Int32, IntPtr*, Int32, IntPtr*, Int32, System.Runtime.CompilerServices.ObjectHandleOnStack)
at System.ModuleHandle.ResolveTypeHandleInternal(System.Reflection.RuntimeModule, Int32, System.RuntimeTypeHandle[], System.RuntimeTypeHandle[])
at System.Reflection.RuntimeModule.ResolveType(Int32, System.Type[], System.Type[])
at System.Reflection.CustomAttribute.FilterCustomAttributeRecord(System.Reflection.CustomAttributeRecord, System.Reflection.MetadataImport, System.Reflection.Assembly ByRef, System.Reflection.RuntimeModule, System.Reflection.MetadataToken, System.RuntimeType, Boolean, System.Object[], System.Collections.IList, System.RuntimeType ByRef, System.IRuntimeMethodInfo ByRef, Boolean ByRef, Boolean ByRef)
at System.Reflection.CustomAttribute.GetCustomAttributes(System.Reflection.RuntimeModule, Int32, Int32, System.RuntimeType, Boolean, System.Collections.IList, Boolean)
at System.Reflection.CustomAttribute.GetCustomAttributes(System.RuntimeType, System.RuntimeType, Boolean)
at System.RuntimeType.GetCustomAttributes(System.Type, Boolean)
at System.Attribute.GetCustomAttributes(System.Reflection.MemberInfo, System.Type, Boolean)
at System.Attribute.GetCustomAttribute(System.Reflection.MemberInfo, System.Type, Boolean)
at System.ComponentModel.LicenseManager.ValidateInternalRecursive(System.ComponentModel.LicenseContext, System.Type, System.Object, Boolean, System.ComponentModel.License ByRef, System.String ByRef)
at System.ComponentModel.LicenseManager.Validate(System.Type, System.Object)
at Steema.TeeChart.TChart..ctor()
at PureteQ.Graph.InitializeComponent()
at PureteQ.Graph..ctor()
at PureteQ.frmMain.InitializeComponent()
at PureteQ.frmMain..ctor()
at PureteQ.Program.Main()

Yeray
Site Admin
Site Admin
Posts: 9613
Joined: Tue Dec 05, 2006 12:00 am
Location: Girona, Catalonia
Contact:

Re: URGENT!! Application does not start after upgrading

Post by Yeray » Fri Aug 30, 2013 3:57 pm

Hello,

Excuse us for the delay here. We haven't forgotten you. We'll investigate it asap.
Best Regards,
ImageYeray Alonso
Development & Support
Steema Software
Av. Montilivi 33, 17003 Girona, Catalonia (SP)
Image Image Image Image Image Image Please read our Bug Fixing Policy

Narcís
Site Admin
Site Admin
Posts: 14730
Joined: Mon Jun 09, 2003 4:00 am
Location: Banyoles, Catalonia
Contact:

Re: URGENT!! Application does not start after upgrading

Post by Narcís » Mon Sep 02, 2013 11:34 am

Hi JohnS,

It looks like the design time developer license was removed or damaged in the process. My recommendation is that you check the license is correctly installed following the steps I described here. If this doesn't help don't hesitate to let me know.
Best Regards,
Narcís Calvet / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Image Image Image Image Image Image
Instructions - How to post in this forum

JohnS
Newbie
Newbie
Posts: 31
Joined: Mon Aug 26, 2013 12:00 am

Re: URGENT!! Application does not start after upgrading

Post by JohnS » Mon Sep 02, 2013 12:06 pm

I already went through these steps before contacting you, except the step to check the design time with your tool.
I assumed that the design time license was OK, as I don't have problems at design time.

Are we talking about the following tool "TeeRegV2010" to check the license?
To me it looks like it is only for V2010??

Narcís
Site Admin
Site Admin
Posts: 14730
Joined: Mon Jun 09, 2003 4:00 am
Location: Banyoles, Catalonia
Contact:

Re: URGENT!! Application does not start after upgrading

Post by Narcís » Mon Sep 02, 2013 12:13 pm

Hi JohnS,
Are we talking about the following tool "TeeRegV2010" to check the license?
To me it looks like it is only for V2010??
Version names should be corrected to current version. An updated version of the TeeRegister tool is available at the client download area. Internally v2010, v2011, v2012 and v2013 are the same (v4). They are renamed yearly to reflect the subscription license system.
Best Regards,
Narcís Calvet / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Image Image Image Image Image Image
Instructions - How to post in this forum

JohnS
Newbie
Newbie
Posts: 31
Joined: Mon Aug 26, 2013 12:00 am

Re: URGENT!! Application does not start after upgrading

Post by JohnS » Mon Sep 02, 2013 2:07 pm

We now ran TeeRegV2010.exe on our programming PC, and it said that all was OK.

But at our customers PC the error is the same!

JohnS
Newbie
Newbie
Posts: 31
Joined: Mon Aug 26, 2013 12:00 am

Re: URGENT!! Application does not start after upgrading

Post by JohnS » Mon Sep 02, 2013 2:10 pm

Will it work if we install the evaluation version again?
What happens when it expires?

Narcís
Site Admin
Site Admin
Posts: 14730
Joined: Mon Jun 09, 2003 4:00 am
Location: Banyoles, Catalonia
Contact:

Re: URGENT!! Application does not start after upgrading

Post by Narcís » Mon Sep 02, 2013 2:16 pm

Hi JohnS,

Are you deploying the application with licenses.licx compiled as an embedded resource and include TeeChart.dll? If the problem persists please send us the files being deployed and a test project, please. You can send your files to info at steema dot com.

Thanks in advance.
Best Regards,
Narcís Calvet / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Image Image Image Image Image Image
Instructions - How to post in this forum

JohnS
Newbie
Newbie
Posts: 31
Joined: Mon Aug 26, 2013 12:00 am

Re: URGENT!! Application does not start after upgrading

Post by JohnS » Mon Sep 02, 2013 2:20 pm

>>Are you deploying the application with licenses.licx compiled as an embedded resource and include TeeChart.dll?

See my previous posts above for this information.
Does it look right?

Narcís
Site Admin
Site Admin
Posts: 14730
Joined: Mon Jun 09, 2003 4:00 am
Location: Banyoles, Catalonia
Contact:

Re: URGENT!! Application does not start after upgrading

Post by Narcís » Mon Sep 02, 2013 2:47 pm

Hi JohnS,
See my previous posts above for this information.
Does it look right?
Yes. I'm sorry but, since this is very strange, I wanted to double check it. Could you please arrange a simple example project with a TeeChart component on it, check if it fails at your customer's and if that's the case send us the .exe and the project?

Thanks in advance.
Best Regards,
Narcís Calvet / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Image Image Image Image Image Image
Instructions - How to post in this forum

JohnS
Newbie
Newbie
Posts: 31
Joined: Mon Aug 26, 2013 12:00 am

Re: URGENT!! Application does not start after upgrading

Post by JohnS » Tue Sep 03, 2013 6:29 am

I tried to upload an example project, but got the message that the file size was too large.
Maximum size is 4194304 MB!!!!!
My test project is only 6 MB...

How should I send this project to you?

JohnS
Newbie
Newbie
Posts: 31
Joined: Mon Aug 26, 2013 12:00 am

Re: URGENT!! Application does not start after upgrading

Post by JohnS » Tue Sep 03, 2013 7:12 am

OK, now I just sent an example project to support...steema...com.

The file is a zip file containing the Visual Studio 2012 project.
In the Bin/Release folder the files that we deploy to our customer are located.
If you copy all the files in the Bin/Release folder to a computer without TeeChart installed,
and then run the .exe, the application should throw an error in the Windows event log.

Can you reproduce this error?

Post Reply