Page 1 of 1

.net Application not able to read License info. in Test Env.

Posted: Thu Aug 19, 2010 10:03 am
by 9346725
Hi,

We have two different application one is integrated and other is standalone and both of them are used to launch our another application which is using TeeChart version 4.0.2009.35592.

Problem is when I am trying to launch the application from the Integrated Mode application it is able to find the TeeChart License information. Whereas if I am doing it from the Standalone application it is giving below exception.
See the end of this message for details on invoking
just-in-time (JIT) debugging instead of this dialog box.

************** Exception Text **************
System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.ComponentModel.LicenseException: An instance of type 'Steema.TeeChart.Chart' was being created, and a valid license could not be granted for the type 'Steema.TeeChart.Chart'. Please, contact the manufacturer of the component for more information.
at System.ComponentModel.LicenseManager.Validate(Type type, Object instance)
at Steema.TeeChart.Chart..ctor()
at Steema.TeeChart.TChart..ctor()
at Honeywell.QualityOptiMISER.Presentation.ProfileControl.InitializeComponent()
at Honeywell.QualityOptiMISER.Presentation.ProfileControl..ctor()
at Honeywell.QualityOptiMISER.Presentation.ContourMapControl.InitializeComponent()
at Honeywell.QualityOptiMISER.Presentation.ContourMapControl..ctor()
at Honeywell.QualityOptiMISER.Presentation.ContourMap.InitializeComponent()
at Honeywell.QualityOptiMISER.Presentation.ContourMap..ctor()
--- End of inner exception stack trace ---
at System.RuntimeTypeHandle.CreateInstance(RuntimeType type, Boolean publicOnly, Boolean noCheck, Boolean& canBeCached, RuntimeMethodHandle& ctor, Boolean& bNeedSecurityCheck)
at System.RuntimeType.CreateInstanceSlow(Boolean publicOnly, Boolean fillCache)
at System.RuntimeType.CreateInstanceImpl(Boolean publicOnly, Boolean skipVisibilityChecks, Boolean fillCache)
at System.Activator.CreateInstance(Type type, Boolean nonPublic)
at System.RuntimeType.CreateInstanceImpl(BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture, Object[] activationAttributes)
at System.Activator.CreateInstance(Type type, BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture, Object[] activationAttributes)
at System.Reflection.Assembly.CreateInstance(String typeName, Boolean ignoreCase, BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture, Object[] activationAttributes)
at System.Reflection.Assembly.CreateInstance(String typeName, Boolean ignoreCase)
at Honeywell.HISOFT.DownloadManager.AssemblyLoader.DownloadUserControl(Hashtable keys)
at Honeywell.HISOFT.Desktop.HISOFTReferences.ShowChildWindow(String HISOFTServer, Control parent, Hashtable keys, Color color, String fontFamily, Single fontSize)
at Honeywell.HISOFT.Desktop.HISOFTTreeMenu.DoOpen(TreeNode treenode)
at Honeywell.HISOFT.Desktop.HISOFTTreeMenu.treeView1_DoubleClick(Object sender, EventArgs e)
at System.Windows.Forms.Control.OnDoubleClick(EventArgs e)
at System.Windows.Forms.TreeView.WndProc(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)


************** Loaded Assemblies **************
mscorlib
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.3053 (netfxsp.050727-3000)
CodeBase: file:///C:/Windows/Microsoft.NET/Framework/v2.0.50727/mscorlib.dll
----------------------------------------
HISOFTTreeMenu
Assembly Version: 1.0.3736.24956
Win32 Version: 1.0.3736.24956
CodeBase: file:///E:/Program%20Files%20(x86)/Honeywell/HISOFT%20Menu/HISOFTTreeMenu.dll
----------------------------------------
System.Windows.Forms
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.3053 (netfxsp.050727-3000)
CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Windows.Forms/2.0.0.0__b77a5c561934e089/System.Windows.Forms.dll
----------------------------------------
System
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.3053 (netfxsp.050727-3000)
CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System/2.0.0.0__b77a5c561934e089/System.dll
----------------------------------------
System.Drawing
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.3053 (netfxsp.050727-3000)
CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Drawing/2.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll
----------------------------------------
Accessibility
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.3053 (netfxsp.050727-3000)
CodeBase: file:///C:/Windows/assembly/GAC_MSIL/Accessibility/2.0.0.0__b03f5f7f11d50a3a/Accessibility.dll
----------------------------------------
System.Xml
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.3053 (netfxsp.050727-3000)
CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Xml/2.0.0.0__b77a5c561934e089/System.Xml.dll
----------------------------------------
Microsoft.mshtml
Assembly Version: 7.0.3300.0
Win32 Version: 7.0.3300.0
CodeBase: file:///C:/Windows/assembly/GAC/Microsoft.mshtml/7.0.3300.0__b03f5f7f11d50a3a/Microsoft.mshtml.dll
----------------------------------------
DownloadManager
Assembly Version: 1.0.0.0
Win32 Version: 1.0.0.0
CodeBase: file:///E:/Program%20Files%20(x86)/Honeywell/HISOFT%20Menu/DownloadManager.DLL
----------------------------------------
HISOFTDateTime
Assembly Version: 1.0.0.0
Win32 Version: 6.6.6.0
CodeBase: file:///E:/Program%20Files%20(x86)/Honeywell/HISOFT%20Menu/HISOFTDateTime.DLL
----------------------------------------
System.Configuration
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.3053 (netfxsp.050727-3000)
CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Configuration/2.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll
----------------------------------------
Strings
Assembly Version: 0.0.0.0
Win32 Version: 0.0.0.0
CodeBase: file:///E:/Program%20Files%20(x86)/Honeywell/Honeywell%20HISOFT%20SDK/pdk/Resources/Strings.dll
----------------------------------------
Honeywell.HISOFT.BusinessCore.BusinessCore
Assembly Version: 10.3.25.0
Win32 Version: 10.3.25.0
CodeBase: file:///C:/Users/Administrator/AppData/Local/Honeywell/HISOFT/Cache/localhost/BusinessCore_100325_135422_Honeywell.HISOFT.BusinessCore.BusinessCore.dll
----------------------------------------
log4net
Assembly Version: 1.2.10.0
Win32 Version: 1.2.10.0
CodeBase: file:///C:/Windows/assembly/GAC/log4net/1.2.10.0__1b44e1d426115821/log4net.dll
----------------------------------------
nunit.framework
Assembly Version: 2.1.4.0
Win32 Version: 2.1.4.0
CodeBase: file:///C:/Users/Administrator/AppData/Local/Honeywell/HISOFT/Cache/localhost/BusinessCore_030911_215530_nunit.framework.dll
----------------------------------------
System.Runtime.Remoting
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.3053 (netfxsp.050727-3000)
CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Runtime.Remoting/2.0.0.0__b77a5c561934e089/System.Runtime.Remoting.dll
----------------------------------------
Strings.resources
Assembly Version: 0.0.0.0
Win32 Version: 0.0.0.0
CodeBase: file:///E:/Program%20Files%20(x86)/Honeywell/Honeywell%20HISOFT%20SDK/pdk/Resources/en/Strings.resources.DLL
----------------------------------------
Honeywell.QualityOptiMISER.Presentation.QualSpecManager
Assembly Version: 9.1.31.0
Win32 Version: 9.1.31.0
CodeBase: file:///C:/Users/Administrator/AppData/Local/Honeywell/HISOFT/Cache/localhost/Presentation_100128_031738_Honeywell.QualityOptiMISER.Presentation.QualSpecManager.dll
----------------------------------------
Honeywell.QualityOptiMISER.Presentation.QOApplicationBase
Assembly Version: 5.4.22.0
Win32 Version: 5.4.22.0
CodeBase: file:///C:/Users/Administrator/AppData/Local/Honeywell/HISOFT/Cache/localhost/Presentation_100128_032457_Honeywell.QualityOptiMISER.Presentation.QOApplicationBase.dll
----------------------------------------
Honeywell.QualityOptiMISER.Presentation.CommonModules
Assembly Version: 10.1.31.0
Win32 Version: 10.1.31.0
CodeBase: file:///C:/Users/Administrator/AppData/Local/Honeywell/HISOFT/Cache/localhost/Presentation_100320_040404_Honeywell.QualityOptiMISER.Presentation.CommonModules.dll
----------------------------------------
Honeywell.QualityOptiMISER.BusinessObjects.CommonDef
Assembly Version: 1.0.0.0
Win32 Version: 1.0.0.0
CodeBase: file:///C:/Users/Administrator/AppData/Local/Honeywell/HISOFT/Cache/localhost/Presentation_100202_010714_Honeywell.QualityOptiMISER.BusinessObjects.CommonDef.dll
----------------------------------------
CrystalDecisions.CrystalReports.Engine
Assembly Version: 10.5.3700.0
Win32 Version: 10.5.0.1943
CodeBase: file:///C:/Windows/assembly/GAC_MSIL/CrystalDecisions.CrystalReports.Engine/10.5.3700.0__692fbea5521e1304/CrystalDecisions.CrystalReports.Engine.dll
----------------------------------------
CrystalDecisions.ReportSource
Assembly Version: 10.5.3700.0
Win32 Version: 10.5.0.1943
CodeBase: file:///C:/Windows/assembly/GAC_MSIL/CrystalDecisions.ReportSource/10.5.3700.0__692fbea5521e1304/CrystalDecisions.ReportSource.dll
----------------------------------------
CrystalDecisions.Shared
Assembly Version: 10.5.3700.0
Win32 Version: 10.5.0.1943
CodeBase: file:///C:/Windows/assembly/GAC_MSIL/CrystalDecisions.Shared/10.5.3700.0__692fbea5521e1304/CrystalDecisions.Shared.dll
----------------------------------------
FarPoint.Win.Spread
Assembly Version: 4.0.3512.2008
Win32 Version: 4.0.3512.2008
CodeBase: file:///C:/Windows/assembly/GAC_MSIL/FarPoint.Win.Spread/4.0.3512.2008__327c3516b1b18457/FarPoint.Win.Spread.dll
----------------------------------------
System.Data
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.3053 (netfxsp.050727-3000)
CodeBase: file:///C:/Windows/assembly/GAC_32/System.Data/2.0.0.0__b77a5c561934e089/System.Data.dll
----------------------------------------
Honeywell.QualityOptiMISER.Presentation.QualityDiary
Assembly Version: 10.4.9.0
Win32 Version: 10.4.9.0
CodeBase: file:///C:/Users/Administrator/AppData/Local/Honeywell/HISOFT/Cache/localhost/Presentation_100326_223537_Honeywell.QualityOptiMISER.Presentation.QualityDiary.dll
----------------------------------------
TeeChart
Assembly Version: 4.0.2009.35592
Win32 Version: 4.0.2009.35592
CodeBase: file:///C:/Users/Administrator/AppData/Local/Honeywell/HISOFT/Cache/localhost/Presentation_090925_014300_TeeChart.dll
----------------------------------------
FarPoint.Win
Assembly Version: 4.0.3512.2008
Win32 Version: 4.0.3512.2008
CodeBase: file:///C:/Windows/assembly/GAC_MSIL/FarPoint.Win/4.0.3512.2008__327c3516b1b18457/FarPoint.Win.dll
----------------------------------------
Honeywell.QualityOptiMISER.Presentation.Profile
Assembly Version: 10.1.31.0
Win32 Version: 10.1.31.0
CodeBase: file:///C:/Users/Administrator/AppData/Local/Honeywell/HISOFT/Cache/localhost/Presentation_100322_210828_Honeywell.QualityOptiMISER.Presentation.Profile.dll
----------------------------------------
Honeywell.QualityOptiMISER.Presentation.QualityCheckControl
Assembly Version: 7.11.12.0
Win32 Version: 7.11.12.0
CodeBase: file:///C:/Users/Administrator/AppData/Local/Honeywell/HISOFT/Cache/localhost/Presentation_100128_032326_Honeywell.QualityOptiMISER.Presentation.QualityCheckControl.dll
----------------------------------------
Honeywell.QualityOptiMISER.Presentation.Trend
Assembly Version: 9.1.31.0
Win32 Version: 9.1.31.0
CodeBase: file:///C:/Users/Administrator/AppData/Local/Honeywell/HISOFT/Cache/localhost/Presentation_100128_031426_Honeywell.QualityOptiMISER.Presentation.Trend.dll
----------------------------------------
FarPoint.Excel
Assembly Version: 4.0.3518.2008
Win32 Version: 4.0.3518.2008
CodeBase: file:///C:/Windows/assembly/GAC_MSIL/FarPoint.Excel/4.0.3518.2008__327c3516b1b18457/FarPoint.Excel.dll
----------------------------------------
Honeywell.QualityOptiMISER.Presentation.ContourMap
Assembly Version: 10.4.9.0
Win32 Version: 10.4.9.0
CodeBase: file:///C:/Users/Administrator/AppData/Local/Honeywell/HISOFT/Cache/localhost/Presentation_100406_174019_Honeywell.QualityOptiMISER.Presentation.ContourMap.dll
----------------------------------------

************** JIT Debugging **************
To enable just-in-time (JIT) debugging, the .config file for this
application or computer (machine.config) must have the
jitDebugging value set in the system.windows.forms section.
The application must also be compiled with debugging
enabled.

For example:

<configuration>
<system.windows.forms jitDebugging="true" />
</configuration>

When JIT debugging is enabled, any unhandled exception
will be sent to the JIT debugger registered on the computer
rather than be handled by this dialog box.

.Net Application not able to read License info. in Test Env.


Could you please let me know from where generally license information stored, or is there any way to troubleshoot the issue.

Thanks,
Nitin

Re: .net Application not able to read License info. in Test Env.

Posted: Thu Aug 19, 2010 2:05 pm
by Marc
Hello Nitin,

By standalone, that means it is calling the TeeChart application via assembly load? ... and integrated calls the TeeChart application as a project, part of a common solution?

I would not expect a problem in either case if the resulting assembly is not itself being used in a design context. I see you are using TeeChart build 4.0.2009.35592 dated Sept. 2009. TeeChart internal assembly license checks were relaxed for the next update (build Build 4.0.2009.42283, Dec 2009) so Before we investigate further I recommend that you move to the latest available TeeChart build.

Regards,
Marc Meumann

Re: .net Application not able to read License info. in Test Env.

Posted: Mon Aug 23, 2010 7:07 am
by 9346725
Marc,

Thanks for your help.
I tried with the following version of TeeChart 4.0.2009.62332 and now issue is not there.

Thanks again,
Nitin