WebChat for .net running on Medium trust server

TeeChart for Microsoft Visual Studio .NET, Xamarin Studio (Android, iOS & Forms) & Monodevelop.
Waz
Newbie
Newbie
Posts: 20
Joined: Wed Dec 02, 2009 12:00 am

WebChat for .net running on Medium trust server

Post by Waz » Wed Nov 03, 2010 12:27 pm

Hi
Hoping someone can assist me in some way.
I am running webchart(teeChart.dll version 4,0,2010,13052) on my pc and publishing to a web based remote server. I have published a website onto a remote server that uses Medium trust levels. Whenever I add the teeChart to my Web page and publish it to this server the web page throws errors about permissions. If I run the web chart on my local IIS this all works fine. On a previous forum question there was something about the license.licx file however whenever I add a webchart to my webpage and rebuild there is no license file. If I add it to my windows application the license file appears the moment I add a teechart.
When I query this error with the ISP they tell me the web page is not compiled to run in medium trust however again if I take the teeChart off my webpage then suddenly all works fine. I am using .net framework 2 for my web application.

Please assist.

War
Regards

Waz

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

Re: WebChat for .net running on Medium trust server

Post by Narcís » Wed Nov 03, 2010 12:38 pm

Hi Waz,

Which is the exact error message you get?

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

Waz
Newbie
Newbie
Posts: 20
Joined: Wed Dec 02, 2009 12:00 am

Re: WebChat for .net running on Medium trust server

Post by Waz » Wed Nov 03, 2010 12:44 pm

Please download the print screen from this site below.
It's a safe drop box download:
http://dl.dropbox.com/u/7163928/Screenshot%20.zip

The only way I can get this error to go away is to remove the teeChart.dll and the webchart out of my application.

Thanks for the quick response. If you want I can give you the entire app as well and credentials to test on the remote server, but that must be done privately ;-)
Regards

Waz

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

Re: WebChat for .net running on Medium trust server

Post by Narcís » Wed Nov 03, 2010 1:06 pm

Hi Waz,

Thanks for the info. Given the error message you get I'd start checking if the developer license is correctly installed on your development machine and that your application is correctly compiled with this license. To do so I recommend you to follow the steps I posted here.

If this doesn't help don't hesitate to let us know.
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

Waz
Newbie
Newbie
Posts: 20
Joined: Wed Dec 02, 2009 12:00 am

Re: WebChat for .net running on Medium trust server

Post by Waz » Wed Nov 03, 2010 2:19 pm

Hi Narcis

Downloaded the TeeRegister tool and it says my key is installed correctly. As I said though my application runs perfectly well on my PC even when I compile and publish to my local IIS so I'm not sure why the licensing would now affect only the remote server. But then again I'm also not sure why the license.licx doesn't get included. Is there anyway to add this manually? . I had a similar problem on my old machine with this and I ended up having to uninstall everything and reinstall and start a new app.
Then again as I said as well the teechart works perfectly well with windows applications.
I checked some of those other answers with regards to the webchart and it seems he also had a similar issue and resolved with some licensing and updating server registries however I don't have this option here as I'm not in control of the server.
In the registry as well DesignKeyV2010 says Steema.TeeChart.Tchart is a licensed component.
Regards

Waz

Waz
Newbie
Newbie
Posts: 20
Joined: Wed Dec 02, 2009 12:00 am

Re: WebChat for .net running on Medium trust server

Post by Waz » Thu Nov 04, 2010 7:40 am

Does anyone have anything else I can try?
Regards

Waz

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

Re: WebChat for .net running on Medium trust server

Post by Narcís » Thu Nov 04, 2010 12:42 pm

Hi Waz,

Yes, you can add the licenses.licx file from another project. You can generate one by creating a new WebForm project and dragging a WebChart to the form. Or create a new file at root level in your project. The contents will be:

Code: Select all

Steema.TeeChart.Web.WebChart, TeeChart 
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

Waz
Newbie
Newbie
Posts: 20
Joined: Wed Dec 02, 2009 12:00 am

Re: WebChat for .net running on Medium trust server

Post by Waz » Thu Nov 04, 2010 2:47 pm

Hi Narci

The issue is when I add a webchart the license.licx does not get included at all. How do I get this file?
Regards

Waz

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

Re: WebChat for .net running on Medium trust server

Post by Narcís » Thu Nov 04, 2010 2:53 pm

Hi Waz,

As I told you in my previous reply you can get it from another project, for example the demo project included with TeeChart's installation, or create it manually too.
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

Waz
Newbie
Newbie
Posts: 20
Joined: Wed Dec 02, 2009 12:00 am

Re: WebChat for .net running on Medium trust server

Post by Waz » Fri Nov 05, 2010 6:12 am

Ok. I made a license.licx file and made a properties folder and added the license.licx file into the properties folder. I then copies all the items in the license.licx from the windows application into the license.licx file. Published to web server. Same fault.
I'm pretty sure this is a bug. Is there anyway we can speak privately so I can give certain credentials and you can maybe build the site on your side or something. Currently I am not going to use teeChart for my site and am using just datagrids to display the data.
I have now seen 3 separate issues in these forums regarding publishing to web server and all 3 seem to be unresolved and all 3 seem to point to license issues. Maybe it's not a license issue and possibly something else.
Regards

Waz

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

Re: WebChat for .net running on Medium trust server

Post by Narcís » Fri Nov 05, 2010 9:30 am

Hi Waz,
Ok. I made a license.licx file and made a properties folder and added the license.licx file into the properties folder. I then copies all the items in the license.licx from the windows application into the license.licx file. Published to web server. Same fault.
licenses.licx doesn't need to be in the Properties folder, it should be in project's root folder. Can you please try if moving it there solves the problem for you?
Is there anyway we can speak privately so I can give certain credentials and you can maybe build the site on your side or something.
You may contact us at info at steema dot com referencing this thread.
I have now seen 3 separate issues in these forums regarding publishing to web server and all 3 seem to be unresolved and all 3 seem to point to license issues. Maybe it's not a license issue and possibly something else.
Could you please post relevant threads here so that we can give our point of view?

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

Waz
Newbie
Newbie
Posts: 20
Joined: Wed Dec 02, 2009 12:00 am

Re: WebChat for .net running on Medium trust server

Post by Waz » Fri Nov 05, 2010 10:51 am

Changed position of the license.licx. Still same error.
Regards

Waz

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

Re: WebChat for .net running on Medium trust server

Post by Narcís » Fri Nov 05, 2010 11:09 am

Hi Waz,

What about the ASP.NET demo included with the insatllation at C:\Program Files\Steema Software\TeeChart for .NET 2010\TeeChartForNET? Does this compile fine in your machine? And what about deploying it to the server?

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

Waz
Newbie
Newbie
Posts: 20
Joined: Wed Dec 02, 2009 12:00 am

Re: WebChat for .net running on Medium trust server

Post by Waz » Mon Nov 08, 2010 5:07 am

The example is too big for this web server. I did try run it on my local IIS though and it also gave a error, but this seems to be some syntax error.
Line 46: HttpWebRequest rqst = (HttpWebRequest)WebRequest.Create(xmlFile);
Line 47: rqst.Credentials = CredentialCache.DefaultCredentials;
Line 48: HttpWebResponse rsp = (HttpWebResponse)rqst.GetResponse();
Line 49:
Line 50: XmlTextReader reader = new XmlTextReader(rsp.GetResponseStream());

However If i run a simple webchart(Just drag a webchart onto my app and publish to local IIS talking to a database hosted by a server) on my local IIS it works perfectly. Again only when i publish to the web server does it fail.
I did send an email to info and just waiting for a reply so I can give someone credentials. At least then I can see if it is just a licensing issue. I have tried what was said in previous forums for the licensing, but surely if I can publish to my local IIS than it has nothing to do with licensing unless the license is not based in the app, but based on the PC as then this is useless to me.
Regards

Waz

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

Re: WebChat for .net running on Medium trust server

Post by Narcís » Mon Nov 08, 2010 1:09 pm

Hi Waz,

I have created an application here with licenses.licx generated by WebChart and compiled into it. I have sent it to you by email. Can you please try deploying this application to the server and check how it goes?

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

Post Reply