Page 1 of 1

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

Posted: Tue Dec 21, 2004 12:18 pm
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

Re: GflAx.GflAx.1 (0x80004005)

Posted: Tue Dec 21, 2004 12:53 pm
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?

Thanks, but...

Posted: Wed Dec 22, 2004 12:15 pm
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?

Re: Thanks, but...

Posted: Thu Dec 23, 2004 7:27 am
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

Re: Thanks, but...

Posted: Thu Dec 23, 2004 4:24 pm
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.