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

Posted on 2004-11-11
Last Modified: 2010-04-05
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.
Question by:cjclayton
    LVL 17

    Accepted Solution

    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.)

    Author Comment

    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.  

    Featured Post

    Better Security Awareness With Threat Intelligence

    See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

    Join & Write a Comment

    Suggested Solutions

    Creating an auto free TStringList The TStringList is a basic and frequently used object in Delphi. On many occasions, you may want to create a temporary list, process some items in the list and be done with the list. In such cases, you have to…
    Introduction Raise your hands if you were as upset with FireMonkey as I was when I discovered that there was no TListview.  I use TListView in almost all of my applications I've written, and I was not going to compromise by resorting to TStringGrid…
    In this sixth video of the Xpdf series, we discuss and demonstrate the PDFtoPNG utility, which converts a multi-page PDF file to separate color, grayscale, or monochrome PNG files, creating one PNG file for each page in the PDF. It does this via a c…
    Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…

    745 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    15 Experts available now in Live!

    Get 1:1 Help Now