Page 1 of 2

WebChat for .net running on Medium trust server

Posted: Wed Nov 03, 2010 12:27 pm
by 15654776
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

Re: WebChat for .net running on Medium trust server

Posted: Wed Nov 03, 2010 12:38 pm
by narcis
Hi Waz,

Which is the exact error message you get?

Thanks in advance.

Re: WebChat for .net running on Medium trust server

Posted: Wed Nov 03, 2010 12:44 pm
by 15654776
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 ;-)

Re: WebChat for .net running on Medium trust server

Posted: Wed Nov 03, 2010 1:06 pm
by narcis
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.

Re: WebChat for .net running on Medium trust server

Posted: Wed Nov 03, 2010 2:19 pm
by 15654776
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.

Re: WebChat for .net running on Medium trust server

Posted: Thu Nov 04, 2010 7:40 am
by 15654776
Does anyone have anything else I can try?

Re: WebChat for .net running on Medium trust server

Posted: Thu Nov 04, 2010 12:42 pm
by narcis
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 

Re: WebChat for .net running on Medium trust server

Posted: Thu Nov 04, 2010 2:47 pm
by 15654776
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?

Re: WebChat for .net running on Medium trust server

Posted: Thu Nov 04, 2010 2:53 pm
by narcis
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.

Re: WebChat for .net running on Medium trust server

Posted: Fri Nov 05, 2010 6:12 am
by 15654776
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.

Re: WebChat for .net running on Medium trust server

Posted: Fri Nov 05, 2010 9:30 am
by narcis
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.

Re: WebChat for .net running on Medium trust server

Posted: Fri Nov 05, 2010 10:51 am
by 15654776
Changed position of the license.licx. Still same error.

Re: WebChat for .net running on Medium trust server

Posted: Fri Nov 05, 2010 11:09 am
by narcis
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.

Re: WebChat for .net running on Medium trust server

Posted: Mon Nov 08, 2010 5:07 am
by 15654776
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.

Re: WebChat for .net running on Medium trust server

Posted: Mon Nov 08, 2010 1:09 pm
by narcis
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.