Thanks for the suggestion Nello.
Unfortunately, the permissions must be fine because IIS will launch one
(*any* one of the CGI applications) without any problems.  It's only
subsequent CGI apps that have problems.

I have modified the code so that it reports all error information to me,
as well as the Session information.  Curiously enough the PRIVDIR and
NETDIR settings of the default Session component are blank, so I assume
that they are defaulting to something useful (such as current directory
and the BDE Admin setting for NETDIR).  Also, the current working
directory is (drive):\inetpub\wwwroot, which I have also tried changing
to something that is definitely accessible to everyone, but without
success.

I wouldn't have thought that the PRIVDIR or NETDIR settings would have
made a difference though, as those are s'posed to be for Paradox stuff,
not ODBC/MSSQL.

I'll look into the permissions for the anonymous user again but, from
memory, I actually gave read/write/etc. permissions to "Everyone", which
should include IUSR_*

Regards,

Bevan



Nello Sestini wrote:
> 
> > However, if I didn't manually start the first CGI application from the
> > Administrator login (ie. I let IIS start it as requested), then that's
> > when I get this error.
> >
> > Does any body have any other ideas why this is happening?
> 
> unless I am mistaken (always a possibility) IIS doesn't run CGI
> apps as "system"
> 
> they run as the "IIS anonymous user" which is usually set up
> initially as something like IUSR_FOO where FOO is the name of
> the machine hosting IIS.   The name of this user is in the
> IIS configuration.
> 
> this user needs to have access to the CGI directory - also
> to registry keys like
> 
> HKLM\SYSTEM\CurrentControlSet\Services\W3SVC\Parameters\Script Map
> 
> (on NT4 - not sure about Win2k)
> 
> plus who knows whatever else depending on what your script does.
> 
> Since you're getting an error from the BDE it sounds like
> your IUSR_FOO user has correct permissions to get the script
> off the ground, but has some DB access problem or problem
> with access to the BDE directories or private directories.
> 
> -ns
> 
> ---------------------------------------------------------------------------
>     New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
>                   Website: http://www.delphi.org.nz
> To UnSub, send email to: [EMAIL PROTECTED]
> with body of "unsubscribe delphi"

-- 
Bevan Edwards                           mailto:[EMAIL PROTECTED]
Achieve Software Limited                http://www.achieve.co.nz
Phone:  (64-9) 444-4210                 ICQ: 732011
Fax:    (64-9) 444-4201
Mobile: (64-21) 979-603
---------------------------------------------------------------------------
    New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
                  Website: http://www.delphi.org.nz
To UnSub, send email to: [EMAIL PROTECTED] 
with body of "unsubscribe delphi"

Reply via email to