Page 1 of 1
teechar .net 1.1 in medium trust
Posted: Mon Apr 28, 2008 12:37 pm
by 6922278
I am running teechart in medium trust (.NET 2.0) in a web application and get the System error at:
Steema.TeeChart.FrAccessProvider..ctor() at System.RuntimeTypeHandle.CreateInstance(RuntimeType type, Boolean publicOnly, Boolean noCheck, Boolean& canBeCached, RuntimeMethodHandle& ctor, Boolean& bNeedSecurityCheck)
Has this been seen or is teechart just not Medium Trust compatible. I'm actually running under .NET 2.0 but there isn't a .NET 2 version of teechart (just .NET 3.0)
Thanks in advance
Posted: Mon Apr 28, 2008 1:16 pm
by narcis
Hi bluetang,
Could you please confirm the exact TeeChart for .NET version you are using? Please notice that TeeChart for .NET v3 has specific builds for v1.1, v2.0 and v3.0 .NET Frameworks. TeeChart for .NET v2 also has builds for v.1 and v2.0 .NET Framework versions.
Thanks in advance.
Posted: Tue Apr 29, 2008 9:20 am
by 6922278
Thanks NarcĂs for your quick reply
The DLL is coming up as 1.1.1879.21176
As an aside, is it right that I we can distribute the runtime DLL as part of a web application? I always thought you needed to purchase a runtime in this case and as a result we offer charts as an add-on. Your site says you can distribute teechart in an application but i am not sure if that includes web applications.
Peter
Posted: Tue Apr 29, 2008 9:29 am
by narcis
Hi Peter,
You're welcome.
The DLL is coming up as 1.1.1879.21176
Thanks for the info. Please notice there's a newer version available at the client download area. Could you please check if this solves the problem at your end?
As an aside, is it right that I we can distribute the runtime DLL as part of a web application? I always thought you needed to purchase a runtime in this case and as a result we offer charts as an add-on. Your site says you can distribute teechart in an application but i am not sure if that includes web applications.
In that case you may need a TeeChart for .NET v1 WebServer Runtime license as described
here. For further licensing questions please contact our Sales Dept. at sales at steema dot com.
Thanks in advance.
Posted: Tue Apr 29, 2008 10:07 am
by 6922278
Again thanks for the quick reply.
Curiously I did try downloading the latest 1.1 dll and it was the same version. I couldn't see a reference to net2.0 version, only a net3.0. It could be that I am using an old ActiveX login to access the site.
On that score I am unable to find my Teechart.net login details, just the license number 8129087. As a final request, can you please if possible dig up my details.
[please remove the email address from this message, thanks]
Posted: Tue Apr 29, 2008 10:39 am
by narcis
Hi Peter,
I have just removed your e-mail address from your message.
Sales Dept. staff has just sent you the licensing details corresponding to your TeeChart for .NET v1 license. If you go to the
client download area using those details you will find TeeChart for .NET v1 Build 1.1.2531.28391 from 6th December 2006, which is the latest release available as announced on the
version info page.
Posted: Tue Apr 29, 2008 12:57 pm
by 6922278
deleted
Posted: Tue Apr 29, 2008 1:24 pm
by 6922278
Hi Narcis
I have tried 1.1.2531.28391 but sadly it exhibits the same problem. Maybe its something I will have to live with, it only affects hosted services which tend to run in Medium trust mode. I'll remove the charts from our online demo, which is shame but that's life.
I'll try the net2 evaluation - though this is an evaluation and I assume I will need to pay for an upgrade?
Thanks
Peter
Posted: Tue Apr 29, 2008 2:57 pm
by Marc
Hello Peter,
Re. Your first post, the "Steema.TeeChart.FrAccessProvider" message suggests that the TeeChart license may not have been correctly compiled into your web application. You can check the following:
- I assume you are using VSNET2005 (and framework 2). Please check that your project includes a licenses.licx file. If you right-mouseclick on the file you will see 'build runtime licenses'. Execute that option to create a 'App_Licenses.dll' file in the bin folder of your website project. The bin folder should also include teechart.dll.
Rebuilding the website in a machine with a valid TeeChart Designtime license installed (installed by the TeeChart installer) will create a website application that includes the runtime key that may then be distributed to runtime webservers.
Please be sure that your webserver doesn't have another version of TeeChart registered with the GAC or AssemblyFolders.
The Medium Trust mode at the client should have no effect if other elements such as images are viewable at the same site as TeeChart for .NET returns an image to the client, not a control.
Regards,
Marc Meumann