• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 185
  • Last Modified:

Can't run Delphi 5 CGI App using IIS 5.1 on XP. Worked fine on on W2K.

I can't run my Delphi 5 CGI App using IIS 5.1 on XP. Worked fine on W2K.

The main website pages run ok, it just doesn't like it when I run the CGI app.
I'm just testing it will a simple "Hello World" example to ensure nothing else is going wrong.

It comes up with: "The page cannot be displayed"

In IIS I have set: Execute Permission: Scripts and Executables for directory where the .exe lives. Have also added it to the list of ISAPI filters in the properties of the website.  Not sure if that is required.

What else do I need to do in order for it to run ok?

Thanks for you help.
0
cjclayton
Asked:
cjclayton
1 Solution
 
Wim ten BrinkCommented:
I don't think it needs to be in the ISAPI filters, since it's not an ISAPI filter but a CGI executable.

It is most likely that your CGI application is trying to access data in some other folder. However, the security in XP is slightly tighter thus your application might not be allowed to access this folder since the web user account has no proper access rights. If you do use a data folder, make sure your application has access rights to it.
The same applies for some other system resources like the registry, etc.

But if all your application is doing is displaying "Hello, World" then something else might be wrong. Are you sure you made no spelling errors while calling your page?

You might also need read access to this folder. (And perhaps set it up as an application with high (isolated) protection just to be sure.)
0
 
cjclaytonAuthor Commented:
I ended up getting it going - it appears I did have some extra code that I didn't know it was trying to excute - trying to open a file that didn't exist, instead of displaying the usual error it should "The page cannot be displayed" - not sure why.  Anyway I created the file and all worked fine. Thank you for your help it made me look at bit more at the code it was trying to excute.  
0

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now