Combination View Flat View Tree View
Threads [ Previous | Next ]
I've changed the /stockchart/stockchart.asp sample (which is working) to load a different PNG and I get this message:

-----
Active Server Pages error 'ASP 0115'
Unexpected error
/CiscoIPServices/stockchart/stockchart.asp
A trappable error (C0000005) occurred in an external object. The script cannot continue running.
-----

However, when I test the same PNG file with the ImageViewer.EXE, it works fine. I can only assume the ImageViewer is using the same COM server.

Any idea how do I approach this?

Can you put in some log statements to determine exactly which line of the script is failing?

Can you catch the exception and display the exception message/text?

Looking at the code, it does not check to verify whether this line results in good data:

var rawdata = Inet1.GetURL("<your URL>", 1);

If there is bad data, for example empty or not png data, then this line will probably fail:

cip.LoadPNGFromBuffer(rawdata);