teechar .net 1.1 in medium trust

TeeChart for Microsoft Visual Studio .NET, Xamarin Studio (Android, iOS & Forms) & Monodevelop.
Post Reply
bluetang
Newbie
Newbie
Posts: 5
Joined: Fri Nov 15, 2002 12:00 am
Contact:

teechar .net 1.1 in medium trust

Post by bluetang » Mon Apr 28, 2008 12:37 pm

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

Narcís
Site Admin
Site Admin
Posts: 14730
Joined: Mon Jun 09, 2003 4:00 am
Location: Banyoles, Catalonia
Contact:

Post by Narcís » Mon Apr 28, 2008 1:16 pm

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.
Best Regards,
Narcís Calvet / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Image Image Image Image Image Image
Instructions - How to post in this forum

bluetang
Newbie
Newbie
Posts: 5
Joined: Fri Nov 15, 2002 12:00 am
Contact:

Post by bluetang » Tue Apr 29, 2008 9:20 am

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

Narcís
Site Admin
Site Admin
Posts: 14730
Joined: Mon Jun 09, 2003 4:00 am
Location: Banyoles, Catalonia
Contact:

Post by Narcís » Tue Apr 29, 2008 9:29 am

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.
Best Regards,
Narcís Calvet / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Image Image Image Image Image Image
Instructions - How to post in this forum

bluetang
Newbie
Newbie
Posts: 5
Joined: Fri Nov 15, 2002 12:00 am
Contact:

Post by bluetang » Tue Apr 29, 2008 10:07 am

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]

Narcís
Site Admin
Site Admin
Posts: 14730
Joined: Mon Jun 09, 2003 4:00 am
Location: Banyoles, Catalonia
Contact:

Post by Narcís » Tue Apr 29, 2008 10:39 am

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.
Last edited by Narcís on Tue Apr 29, 2008 1:02 pm, edited 1 time in total.
Best Regards,
Narcís Calvet / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Image Image Image Image Image Image
Instructions - How to post in this forum

bluetang
Newbie
Newbie
Posts: 5
Joined: Fri Nov 15, 2002 12:00 am
Contact:

Post by bluetang » Tue Apr 29, 2008 12:57 pm

deleted

bluetang
Newbie
Newbie
Posts: 5
Joined: Fri Nov 15, 2002 12:00 am
Contact:

Post by bluetang » Tue Apr 29, 2008 1:24 pm

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

Marc
Site Admin
Site Admin
Posts: 1265
Joined: Thu Oct 16, 2003 4:00 am
Location: Girona
Contact:

Post by Marc » Tue Apr 29, 2008 2:57 pm

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
Steema Support

Post Reply