Page 1 of 1

license error

Posted: Thu Dec 07, 2006 9:48 pm
by 9637570
I am suddenly getting the following error, and I haven't been able to figure out how to make it go away. Any idea?

Error 2 Exception occurred creating type 'Steema.TeeChart.Chart, TeeChart, Version=2.0.2511.18118, Culture=neutral, PublicKeyToken=9c8126276c77bdb7' System.MethodAccessException: Attempt to access the method failed. P:\projects\Sinaps2\licenses.licx 1 Sinaps2

A project that had been working started getting this, so I uninstalled and got the latest version. But the error remains. The lines in my .licx file are
Steema.TeeChart.Chart, TeeChart
Steema.TeeChart.TChart, TeeChart

Posted: Mon Dec 11, 2006 11:41 am
by narcis
Hi sring,

If you have a teechart.dll other than the TeeChart version you are using
pathed under the registry's:

HKEY_CURRENT_USER\SOFTWARE\Microsoft\.NETFramework\AssemblyFolders

or

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\.NETFramework\AssemblyFolders

Please remove the AssemblyFolder entry or update it to the path of the
required version of TeeChart.

Posted: Mon Dec 11, 2006 4:46 pm
by 9637570
This didn't help. The problem has something to do with me using a disk from my file server. If I copy the project to a local disk the problem goes away. It only happens when I try and build the project on the server disk. This was working until I installed a number of patches from Microsoft. However, I'm only getting errors from the teechart lines in my license file. The lines from other products still compile ok.

Posted: Mon Dec 11, 2006 4:52 pm
by narcis
Hi sring,

Ok, then you should do as told in Tutorial 17 - Designtime, Runtime and License Requirements. You'll find the tutorials at TeeChart's program group.

Posted: Mon Dec 11, 2006 8:19 pm
by 9637570
I had already gone through all of the suggestions in this tutorial before I wrote the first time.

As I said, there wasn't anything wrong until some microsoft security updates were made. Then I went ahead and updated teechart to see if that would fix things. It didn't, but teechart is the only think in my license.licx file that won't comple (although it compiles fine if I copy everything to a local disk).

Posted: Mon Dec 18, 2006 3:40 pm
by Marc
Hello,

The error message of the first post is the msg that appears at project compile time?

Please could you run a short test to rule-in/out a couple of things:

- create a simple winform project at the serverdrive location you normally use and drag a tchart onto it ...then compile and run it and let us know if it runs ok or not.

The test will help us identify if the problem is generic across projects or just limited to the project with which you are working now.

With thanks.
Regards,
Marc Meumann

Posted: Mon Dec 18, 2006 10:59 pm
by 9637570
I finally figured this out today. Unfortunately, I've tweaked a number of security setting, so I'm not sure exactly which one it was. In any event, the main problem is that IE7 changes the intranet security settings. In IE7 I had to reset the intranet to a lower security. But, I also added intranet security settings to the .net security control panel.