Page 1 of 2
Liense.licx Visual Studio 2003 & Visual Studio 2005
Posted: Thu May 17, 2007 2:22 pm
by 8123506
I am using Teechart V1 and have an application working fine in Visual Studio 2005 .Net framework 2.
I am trying try add teechart to a 2003 project on the same developer machine and am having license problems, I have tried removing the license.licx file from the project. Then I did "Build Web Site". The build was successful. However, when I executed the code, I did not see any webchart on the webpage (as it might not have found any license).
Is what I am trying to achieve possible or do I need to convert the 2003 project to 2005.
Posted: Thu May 17, 2007 2:30 pm
by narcis
Hi MikeThelad,
Regarding project licensing please read
Tutorial 17 - Designtime, Runtime and License Requirements. Also, if the chart is not visible in a webpage please read
Tutorial9 - ASP.NET Applications, specially the TempChart property section. I recommend you to set it to Session.
Is what I am trying to achieve possible or do I need to convert the 2003 project to 2005.
If you try to open in VS2005 a project you created with VS2003, VS2005 will most likely ask you if you want the project automatically converted.
Posted: Thu May 17, 2007 2:35 pm
by 8123506
Already set to session.
Do not really want to convert to 2005 as is not a straight foward as it should be.
Should it be possible to use Teechart 1 in both 2005 and 2003
Posted: Thu May 17, 2007 3:42 pm
by narcis
Hi MikeThelad,
Already set to session.
Was your problem solved then?
Should it be possible to use Teechart 1 in both 2005 and 2003
Yes, latest TeeChart for .NET v1 build available at the client download area can be used in both VS2003 and VS2005.
Posted: Thu May 17, 2007 3:57 pm
by 8123506
Not solved, have version v1.1.4322
Posted: Thu May 17, 2007 4:01 pm
by narcis
Hi MikeThelad,
Ok, do you get any error message or a not-displayed image with the typical red cross?
Posted: Mon May 21, 2007 11:06 am
by 8123522
All is get this red cross, like when an image can't be found.
Posted: Mon May 21, 2007 1:02 pm
by narcis
Hi MikeTheLad,
Then it's most likely to be a TempChart problem. If you set that property to Session, have you added GetChart.aspx.cs to the project as told in the tutorial?
Thanks in advance.
Posted: Mon May 21, 2007 2:46 pm
by 8123522
I do have a getchart.aspx as below, if add a break point, this is not being called. The graph is in a subfolder, I have put the getchart.aspx in the same folder as the graph, is this correct?
using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.HtmlControls;
public class getchart : System.Web.UI.Page
{
private void Page_Load(object sender, EventArgs e)
{
string chartName = Request.QueryString["Chart"];
if (Session[chartName] != null)
{
System.IO.MemoryStream chartStream = new System.IO.MemoryStream();
chartStream = ((System.IO.MemoryStream)Session[chartName]);
Response.OutputStream.Write(chartStream.ToArray(), 0, (int)chartStream.Length);
chartStream.Close();
Session.Remove(chartName);
}
}
}
Posted: Mon May 21, 2007 2:52 pm
by narcis
Hi MikeTheLad,
You should put GetChart.aspx at the project's root folder as it is done with the ASP.NET demo shipped with TeeChart for .NET v2. You'll find the demo's project at C:\Program Files\Steema Software\TeeChart for .NET v2\TeeChartForNET.
Posted: Mon May 21, 2007 3:00 pm
by 8123522
Hi,
Have just moved the getchart.aspx into the root and no different, still red cross and when I add a break point it is not being called. You say as per the Demo on Version 2. I am using version 1
Mike
Posted: Mon May 21, 2007 3:24 pm
by narcis
Hi Mike,
Ok, v1 also has WebForms example. Could you please have a look at them? If problem persist please send us a simple example project we can run "as-is" to reproduce the problem here.
You can post your files at news://
www.steema.net/steema.public.attachments newsgroup or at our
upload page.
Thanks in advance.
Posted: Mon May 21, 2007 3:44 pm
by 8123522
Uploaded a zip file containing getchart and our test graph page
Posted: Tue May 22, 2007 9:25 am
by narcis
Hi MikeTheLad,
Thanks for the files but we couldn't run them here since your asp.net page contained several controls and dependencies we don't have here.
Would you be so kind to arrange and send us a simple example project of a website using TeeChart on it so that we can reproduce the problem here?
Thanks in advance.
Posted: Tue May 22, 2007 12:58 pm
by 8123522
Have created a brand new solution and project and imported my test graph page and get chart program and I get the same result. I have uploaded WebProject1.zip