ODBiC Discussion Board


RE: It still doesn't work while the IIS has been started, Ian, 01-08-2006

404 means "file not found"

by Roger Harris, January 9, 2006 01:34

Getting a 404 error when you click on one of the links in the example index.htm file means that the odb.exe file is not being found. There are only two possible reasons for getting a 404 error: Either the file really isn't there, or the browser is not looking in the right place.

If you put the example HTML files on subdirectory C:/inetpub/wwwroot/wwwidget, then typing http://localhost/wwwidget/index.htm (or just http://localhost/wwwidget) in a browser address window should open the example index file. (It isn't going to work if you opened the index.htm file by double-clicking on the file in a Windows folder listing. It has to be opened through IIS. If typing that URL in a browser address window doesn't work, then either IIS is not running, or the index.htm file isn't where you think it is.)

The links in that index.htm file are specified such as HREF="/cgi-bin/odb.exe/..." which is assuming that the odb.exe program is on a subdirectory named cgi-bin on the same site. That is, those URLs don't specify a domain, which means that the browser will go back to the same site where it got the current file, which in this case will be localhost, so the URL you should see if you click on a link should be something like http://localhost/cgi-bin/odb.exe/...

If that is the URL in the browser address window when you get the 404 error, then either you you don't have the cgi-bin directory in the right place, or the odb.exe file isn't on that directory. (If you have it directly under your root directory, at C:/inetpub/wwwroot/cgi-bin, then you shouldn't need to do anything else, but it can be anywhere on your system if you set up a "virtual directory" named cgi-bin in IIS, and explicitely point it to the right directory.)

If all of that is correct and you're still getting the 404 error, then odb.exe must not really be on the cgi-bin directory.

If all of that doesn't help, then you need to provide precise answers to these questions:

1. Where did you put the index.htm file? 2. How are you opening the index.htm file in the browser? 3. Where did you put the odb.exe file? 4. What URL is in the address window after you get the 404 error?


Replies:


Post Your Reply:

Name   
E-mail  optional
Topic  
Message:

HTTP Link: 
Link text: 

          


Copyright ©1997-2003, Roger Harris. All rights reserved.