GflAx.GflAx.1 (0x80004005) - ASP sample does not run

Discussions on GFL SDK, the graphic library for reading and writing graphic files

Moderators: XnTriq, xnview

Aquiladan
Posts: 2
Joined: Tue Dec 21, 2004 11:34 am

GflAx.GflAx.1 (0x80004005) - ASP sample does not run

Post by Aquiladan »

Hi,
I'm try to test GFLAx example asp page, that I've found in the package installation, but I obtain this error message:

HTTP 500.100 - Errore interno del server - errore ASP
Internet Information Services

--------------------------------------------------------------------------------

Informazioni tecniche (per il personale del supporto tecnico)

Tipo di errore:
GflAx.GflAx.1 (0x80004005)
Error to open file
/mytest/GflSDK/GflAx/Examples/ASP/example1.asp, line 12


Tipo di browser:
Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0)

Pagina:
GET /mytest/GflSDK/GflAx/Examples/ASP/example1.asp

:(

What I've wronged?
Maybe something in the installation or have to configure something?
I'm sorry for my english
Greatings
User avatar
xnview
Author of XnView
Posts: 36798
Joined: Mon Oct 13, 2003 7:31 am
Location: France

Re: GflAx.GflAx.1 (0x80004005)

Post by xnview »

Aquiladan wrote:What I've wronged?
Maybe something in the installation or have to configure something?
In line 12, what do you try to load? Are you sure that you have correct path? Is the file available on the server?
Pierre.
Aquiladan
Posts: 2
Joined: Tue Dec 21, 2004 11:34 am

Thanks, but...

Post by Aquiladan »

Thanks,
I have correct my error, the path, now and all run well.
But now I have a doubt, in the example1.asp, in the <img> tag there is this code:

Code: Select all

<img src="image.asp?<% =file %>">
Well, I don't understand the scope of this code, can you explain me please?
User avatar
xnview
Author of XnView
Posts: 36798
Joined: Mon Oct 13, 2003 7:31 am
Location: France

Re: Thanks, but...

Post by xnview »

Aquiladan wrote:Thanks,
I have correct my error, the path, now and all run well.
But now I have a doubt, in the example1.asp, in the <img> tag there is this code:

Code: Select all

<img src="image.asp?<% =file %>">
Well, I don't understand the scope of this code, can you explain me please?
I'm not an ASP expert, and examples are not from me ;-)
But i think to put the original pathname
Pierre.
User avatar
helmut
Posts: 8240
Joined: Sun Oct 12, 2003 6:47 pm
Location: Frankfurt, Germany

Re: Thanks, but...

Post by helmut »

Aquiladan wrote:Thanks,
I have correct my error, the path, now and all run well.
But now I have a doubt, in the example1.asp, in the <img> tag there is this code:

Code: Select all

<img src="image.asp?<% =file %>">
Well, I don't understand the scope of this code, can you explain me please?
I know programming but don't know ASP at all (just like Pierre). But I'll give it a try.

(Note: The ASP example is part of GFL SDK, path is .\GflAx\ASP)

-What the scripts do
Script example1 holds some visual part. Also, it calls script image.asp with the filename of an image as parameter Script image.asp opens the image, does some processing and streams it back to script example1.asp.

In some more detail:
There is two ASP scripts, example1.asp and image.asp.

- example1.asp
example1.asp is the sample page that is opened and seen by your visitors. Your code line

Code: Select all

<img src="image.asp?<% =file %>">
will call the script image.asp with the filename of an image file as parameter.

- image.asp
The script image.asp will retrieve the parameter...

Code: Select all

File = request.querystring
...and then open the appropriate image and do some processing (add some text).
Finally it puts the image into the HTTP response:

Code: Select all

response.binarywrite .SendBinary
Last not least, the streamed, dynamic image will be displayed in example1.asp.

More realistic sample
As written above, I'm not in ASP. But I think in a (bit) larger and more realistic sample, you would pass the filename from one script to the other using a named parameter. You can then easily pass several parameters.

The code line would then look like this:

Code: Select all

<img src="image.asp?filename=<% =file %>">
And the code to retrieve the parameter would look like this:

Code: Select all

File = Request.Querystring("filename")
Hope this helps.