We have installed few ASP.NET applications onto Windows 2003 server. Most of those web applications use TeeChart Pro, version 1.1.2004.16592. For some reason TeeChart cannot find it's licence and we get an error message
Code: Select all
[NullReferenceException: Object reference not set to an instance of an object.]
Steema.TeeChart.FrAccessProvider.GetLicense(LicenseContext context, Type type, Object instance, Boolean allowExceptions) +158
System.ComponentModel.LicenseManager.ValidateInternalRecursive(LicenseContext context, Type type, Object instance, Boolean allowExceptions, License& license, String& licenseKey) +327
System.ComponentModel.LicenseManager.ValidateInternal(Type type, Object instance, Boolean allowExceptions, License& license) +44
System.ComponentModel.LicenseManager.Validate(Type type, Object instance) +32
Steema.TeeChart.Chart..ctor() +89
Steema.TeeChart.Web.WebChart..ctor() +117
Code: Select all
Line 13: <body MS_POSITIONING="GridLayout">
Line 14: <FORM id="Form1" method="post" runat="server">
Line 15: <tchart:WebChart id="WebChart1" style="Z-INDEX: 101; LEFT: 16px; POSITION: absolute; TOP: 16px" runat="server"
Line 16: Width="704px" Height="408px" TempChart="File" AutoPostback="False"></tchart:WebChart></FORM>
Line 17: </body>
1) I have removed current TeeChart component from my form, recompiled, removed licence.licx file and let my Visual Studio 2003 recreate it when I added TeeChart component again to the form.
2) Licences.licx looks like this: Steema.TeeChart.Web.WebChart, TeeChart, Version=1.1.2004.16592, Culture=neutral, PublicKeyToken=9c8126276c77bdb7
3) Licences.licx file is an embedded resource.
4) I have also modified registry entry [HKEY_LOCAL_MACHINE\SOFTWARE\Steema Software\TeeChart.NET]
"DesignKey"="Steema.TeeChart.TChart is a licensed component."
to:
"DesignKey"="xxSteema.TeeChart.TChart is a licensed component."
and I got an error "'path'\licenses.licx Could not transform licenses file 'licenses.licx' into a binary resource. (1) : error LC0004 : Exception occured creating type 'System.ComponentModel.LicenseException'" when I tried to recompile my application. This shows that Visual Studio is compiling the licence into my dll.
5) For some reason one of my applications which use TeeChart is getting its' licence correctly.
6) Applications are working fine on my development environment (Visual Basic .NET, Visual Studio 2003)
Have I possibly missed out something or done some wrong?
Any tips?
Best Regards
Markku