Page 1 of 2
Unable to drag TChart onto new winform application.
Posted: Tue Jan 23, 2007 1:33 pm
by 9639422
I have just installed TChart, and the Steema tab appears in the Micosoft Visual Studio Toolbox.
However when I drag the TChart component across onto a newly created project I get the following error.
Exception occurred while trying to create an instance of Steema.Teechart.TChart. The exception was "Attempt to access the method failed".
Current installation:
OS 2000 sp4
MSVS 2003 sp1
All help appriciated, thanks
Sid
Posted: Tue Jan 23, 2007 1:50 pm
by narcis
Hi Sid,
Are you using the latest TeeChart for .NET build available for VS 2003?
Posted: Tue Jan 23, 2007 2:00 pm
by 9639422
Hi Narcis,
thanks for the quick reply.
I have tried two versions.
2.0.2546.16098 - Release Dec 06 (used initially)
2.0.2179.21171 - Release Dec 05 (currently installed)
Both versions exhibit the same problem.
Also we have an existing project (that I will need to update) that contains the TChart component. When trying to compile this, the following message, regarding the licence.licx is generated:
Could not transform licenses file 'licenses.licx' into a binary resource. (1) : error LC0004 : Exception occured creating type 'System.MethodAccessException'
This application was developed using the 2.0.2179.21171 version of the TeeChart.dll
Posted: Tue Jan 23, 2007 2:11 pm
by narcis
Hi Sid,
Thanks for the information.
I have just installed TChart, and the Steema tab appears in the Micosoft Visual Studio Toolbox.
However when I drag the TChart component across onto a newly created project I get the following error.
Exception occurred while trying to create an instance of Steema.Teechart.TChart. The exception was "Attempt to access the method failed".
Please read
this message about the same issue.
Also we have an existing project (that I will need to update) that contains the TChart component. When trying to compile this, the following message, regarding the licence.licx is generated:
Could not transform licenses file 'licenses.licx' into a binary resource. (1) : error LC0004 : Exception occured creating type 'System.MethodAccessException'
This error message could be related to previous issue. Let us know if problems persists.
Posted: Tue Jan 23, 2007 2:27 pm
by 9639422
Hi Narcis,
I have checked the registry locations as suggested, and these appear to be correct.
I have tried creating new projects both on the server and locally. Both generated the same error when trying to add the TChart component to a form.
The problem, may well be caused by the security settings. However my knowledge of which to change, if any, is a little limited.
Thanks
Sid
Posted: Tue Jan 23, 2007 2:55 pm
by narcis
Hi Sid,
The message seems to indicate that this might be a license issue. Please check is Licenses.Licx is included as part of the project, and that it is included as an embedded resource. As a double check removing Licenses.licx should cause an error compiling your project if the license is setup correctly in your machine.
If Licenses.Licx is not included in your project then it would seem that the license on the Developer machine is not correctly installed. You could use the TeeRegister utility from the Customer Download page to correctly setup the design time license in your machine.
For further information about licensing setup please read Licensing setup for design and runtime section in Tutorial 17 - Designtime, Runtime and License Requirements. You'll find the tutorials at TeeChart's program group.
Posted: Tue Jan 23, 2007 3:32 pm
by 9639422
Hi Narcis,
I've removed the licence from the existing project. This now compiles without errors. Therefore licence does not appear to be installed correctly. I've used the TeeRegister utility to correctly install the developer licence.
However, this does not appear to have fixed the two problems I have.
I am still unable to create a new project with the TChart control.
I can not compile our existing application (with the licence included in the project).
Creating a new application and adding the TChart control should automatically add the licence.licx file to the project, but this is not happening either.
Sid
Posted: Tue Jan 23, 2007 3:41 pm
by narcis
Hi Sid,
If, after installing the physical license the compilation generates a license error then possibly either:
- there was a problem installing the physical license - retry using TeeRegister mentioned above.
- there is a confusion of TeeChart versions in the machine - check what versions of teechart.dll exist on the machine and confirm they are all the common version you wish to use. Check too the GAC and AssemblyFolders key to confirm that no inherent link is being made to a different version of TeeChart to that which you wish to use.
Posted: Tue Jan 23, 2007 4:24 pm
by 9639422
Hi Narcis,
There is only a single version of the DLL on the PC (multiple copies), version 2.0.2179.21171
I've tried TeeRegister Utility again 'Key Install Successfuly' - no luck.
Registry location: HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\.NETFramework\AssemblyFolders\TeeChart
contains
C:\Program Files\Steema Software\TeeChart for .NET v2
This is the root folder for the TeeChart installation.
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\.NETFramework\AssemblyFolders\TeeChart
does not exist
GacUtils /l teechart returns
Number of Items = 0
The problems still exists.
I'm unable to compile our existing application, and I'm unable to add a TChart component to a new project (or the existing peroject)
Sid
Posted: Wed Jan 24, 2007 2:50 pm
by 9639422
Hi Narcis,
Any further pointers?
I've tried reinstalling Visual Studio & the TeeChart component.
No change.
I'm still unable to add the component to a new project and unable to compile our existing application.
I've tried building the example projects provided, but I encounter the same problems.
Sid
Posted: Thu Jan 25, 2007 9:35 am
by Marc
Hello Sid,
To recap:
- The TeeChart installer runs without any error message report and TeeChart may be found on the Steema tab on the tool palette
- First visible problem occurs when dragging TeeChart to a form on a new project, the Chart does not place on the form and reports the error "Attempt to access the method failed". (first install v2.0.2546.16098, problem occurring too with v2.0.2179.21171)
- A previous version of TeeChart, v2.0.2179.21171, was used to successfully build a test project. You built that project on a different machine? Or was TeeChart v2.0.2179.21171 working correctly on this machine initially?
- Re. "Creating a new application and adding the TChart control should automatically add the licence.licx file to the project, but this is not happening either." (post Tue Jan 23, 2007 4:32 pm). Does this imply that at some stage it has become possible to drag TeeChart from the tool palette to the Form? Did any change take place to permit that to happen? Right mouseclicking on the Chart to view the Aboutbox reports what version?
- Is any security tool active on the machine where your tests are taking place? (ie. that may have intercepted write to the TeeChart license registry key)
We have tested an install on a W2000 machine with VS2003 so can confirm at least that the version 2.0.2546.16098 works correctly on a standard install. That directs us to look for other machine specific factors as the cause to this issue. If you have any more information that you think might help, please let us know.
With thanks.
Regards,
Marc Meumann
Posted: Thu Jan 25, 2007 11:12 am
by 9639422
Hi Marc,
A bit of History:
Our application, was developed by another developer, on a different Desktop PC. He has now left and his PC wiped. He reported no such problems with Teechart (worked like a dream).
I'm too make some enhancements to the application, and thus need TeeChart installed.
I've installed both versions you mentioned, and both have shown the same problems, i.e. unable to Drag the control onto new application, and unable to compile the licence.licx file on the existing application.
I currently only have the earlier version of the control installed on the PC (i.e. v2.0.2179.21171).
I have removed the licence.licx file from the build. I can now successfully build the application and run it on my PC.
This is the first time I have used the TeeChart control, and haven't at any stage been able to create a new application using the TeeChart Control, or compile the licence.licx for our existing application.
I have had discussions with our IT department about the way our machines are locked down, as I, like you, suspect that this may be the area causing the problem. However they were unable to shed any light - maybe I wasn't asking the right questions.
The setup should be the same for all developer Desktop PC's, so in theory my PC configuration should be the same as the previous developers PC.
All PC's use roaming profiles.
OS: Windows 2000 service pack 4
ePolicy Orchestrator Agent is used - for what I don't know
I have full admin rights to the Desktop PC
I've tried to install TeeChart on another Desktop PC and encountered the same problem. However, I also tried to install it on a Notebook (without roaming) and have been successful in adding TeeChart to a new application. So it would look like it is an issue with the setup of the Desktop PC's.
Regards
Sid
Posted: Fri Jan 26, 2007 12:52 pm
by 9639422
Hi Marc,
Are there any locations on the PC or network that the licencing code requires that would produce this problem?
Are there any tools that could be used to determine what is not setup correctly?
Regards
Sid
Posted: Tue Jan 30, 2007 8:26 am
by Marc
Hello Sid,
The issue you describe is very unusual. There is currently no utility to check the correct installation of the license key in the registry. We'll build one to make available for you to check the installation.
The only thing that I can think of that might be causing the problem for a basic designtime setup would be something like a spyware or virus checker (ePolicy Orchestrator Agent?) stopping the TeeChart installer writing the license key to the registry.
Regards,
Marc
Posted: Tue Jan 30, 2007 9:08 am
by 9639422
Hi Marc,
I appreciate the effort your all putting into this problem.
I agree that there will be some security/access issue at play here, but until we can identify the problem, our IT department are unable to resolve it.
We have a number of problems areas:
Roaming implementation - profile information & application data being store centrally
Security policies/Virus Checkers - preventing access to required locations (folders and or registry)
Again thanks for your efforts.
I look forward to receiving the diagnostic tool.
Sid