Page 1 of 1

Problem with Windows Server 2003

Posted: Thu Sep 13, 2007 11:26 pm
by 9533073
Hi, I´m trying to setup TeeChart on my Windows 2003 for web applications using IIS, but without success.

I used the simple code from the tutorial to test if it´s working, but I got the error 8000ffff and error on line 15 (img = MyChart.Export.asPNG.SaveToStream).

If I try to use the ADO example I get the picture symbol with an 'X' on it.

Both codes worked on a WindowsXP with IIS but isn´t working on my new server with Windows Server 2003. Is there any option I have to configure on Win2003 or IIS?

Thanks in advance

code used:

<!--METADATA NAME="TeeChart Pro Activex control v7" TYPE="TypeLib"
UUID="{EAE6A729-65BD-489F-BF3F-7FE35B416289}"-->

<OBJECT RUNAT=Server ID=MyChart
CLASSID="Clsid:FAB9B41C-87D6-474D-AB7E-F07D78F2422E">
REM Object Script
</OBJECT>

<%
Response.BinaryWrite(RunChart)
Function RunChart()
Dim img
MyChart.AddSeries(scArea)
MyChart.Series(0).FillSampleValues(10)
img = MyChart.Export.asPNG.SaveToStream
RunChart=img
End Function
%>

Posted: Fri Sep 14, 2007 7:46 am
by narcis
Hi gepea,

Have you tried running the ASP Server Examples, available at TeeChart's program group, at the Windows 2003 machine? Do they work fine there? If so you could check its IIS entry and try to make yours similar.

Thanks in advance.

Posted: Mon Sep 17, 2007 8:05 pm
by 9533073
Hi, I tested the examples on the server with Windows 2003 Server and here is what i got:

- Serverside VBScripted Examples
- Return template Chart Example
Worked fine (the only one that worked)

- ADO Example (uses TeeChart's example system DSN database)
shows a picture symbol with an 'X' on it
(I checked the ODBC Source config and it was ok)

- Example to show a variety of Chart Series types
error '8000ffff'
/TeeChart7/ChartTypes.asp, line 39 (OutputStream=Chart1.Export.asPNG.SaveToStream)

- Page showing 4 different export formats
error '8000ffff'
/TeeChart7/CompareOutput.asp, line 63 (Session("ExportPNG")=Chart1.Export.asPNG.SaveToStream)

- Save time on serverside coding
shows a picture symbol with an 'X' on it

- Create a static Chart image export with hotspots
error '8000ffff'
/TeeChart7/Hotspot.asp, line 60 (Session("ExportImg") = AChart.Export.asPNG.SaveToStream)

- Serverside JScripted
- Import data from a Text file on the server
shows a picture symbol with an 'X' on it

- Example to show a variety of Chart Series types (JScript version)
error '8000ffff'
/TeeChart7/ChartTypesJava.asp, line 43 (OutputStream=Chart1.Export.asPNG.SaveToStream();)

The problem seems to be with the SaveToStream, I think there is some configuration or permission i must grant or set in Windows or IIS, but it´s just a bet.

Do you know what could be happening?
Thanks again.

Posted: Tue Sep 18, 2007 7:54 am
by narcis
Hi gepea,

Which exact TeeChart version are you using? Have you tried using the latest version available at the client area?

Thanks in advance!

Posted: Tue Sep 18, 2007 11:24 pm
by 9533073
Hi, I had the previous version (v7.0.1.3), now I got the new one (v7.0.1.4).

I tried with the new version, but the problem still happens.

And what I am trying to do is register the ocx in Windows Server, so I can host my charts without having to install the whole package of TeeChart, I want to keep the Server as light as I can.

I used the folowing command to register the ocx:
(first I made a copy of teechart7.ocx to the system32 folder)

regsvr32 c:\winnt\system32\teechart7.ocx

Is this enough to make the charts work in the Server? Is there something else I must configure?

Thanks again!

Posted: Wed Sep 19, 2007 8:48 am
by narcis
Hi gepea,

Yes, should be enough but there's no need you copy the .ocx specifically to system32 folder. It can be anywhere in the machine provided you set the path when using regsvr32. You should also check that you don't have any other teechart7.ocx version registered. You can do that searching for teechart7.ocx in the server's registry and checking the only version that appears is the one in the path you mentioned.

If other versions appear you can unregister them using regsvr32 -u, for example: regsvr32 -u c:\winnt\system32\teechart7.ocx.

Thanks in advance.

Posted: Thu Sep 20, 2007 9:22 pm
by 9533073
Hi,

Yes, I did the regsvr32 /u to unregister the prior (old) version. But, still doesn´t work.

What else can I try to do? The machine I´m trying to configure has a brand new installation of Windows 2003 Server, and using the regsvr32 is not enough to make the Teechart ASP examples work (or any other code that uses Export.asPNG.SaveToStream).

Thanks again.

Posted: Tue Sep 25, 2007 9:44 am
by Pep
Hi,

TeeChart Pro AX uses a dynamic link library, Lpng.dll to facilitate export to PNG format graphic files. The DLL is included with the TeeChart installer and is installed to the Windows\System[32] folder at installtime.
Version information may be found at http://www.libpng.org/.

Check if this dll is already installed on your system.

If you are using TeeChart on a machine that doesn't have LPNG.DLL installed then you will need to install it.

Posted: Thu Sep 27, 2007 9:36 pm
by 9533073
That´s it! Now all works! =)

I had this DLL on another computer here, like you said, I just had to copy it to system32 folder.

Bye, and thanks again!