Solved

W2K, IIS 5, ISAPI, BDE, Paradox

Posted on 2001-06-18
6
280 Views
Last Modified: 2010-04-06
Hello there,

I've run an ISAPI application on an NT server, using IIS 4.0 and BDE, to query and display data from a number of paradox tables. Everything worked just as it should, and everybody were happy. Now I have to do the same on a W2K server, and I've run into all kinds of trouble.

I can get the ISAPI application to work just fine, but the second I try to access the database in one way or the other, I get an exception.

My test application consists of:
 - one webactionitem, reacting on all calls to the application
 - a TSession component with autosessionname set to true
 - a tquery with an alias that works when used normally on the server

  in the webactionitem i have:

with query1 do
begin
  close;
  sql.clear;
  sql.add('SELECT * FROM WebUsers');
  try
    open;
    first;
    response.content := fields[0].asstring;
    close;
  except
    on exception do
    begin
      response.content := 'exception';
    end;
  end;
end;


no matter how I set up the BDE on the server I get the "exception" response, and I have also tried creating an ODBC entry pointinng to my database, and using that, but with the same result.


I'm getting the feelin that it must have something to do with the creation of the temporary files involved, and/or user privileges, but...

Best regards
NetGeek
0
Comment
Question by:NetGeek
  • 3
  • 3
6 Comments
 
LVL 3

Expert Comment

by:nnbbb09
ID: 6203543
Hello,

Can you run the same query in Database Desktop?
What is the Paradox private directory set to?
Do you have the correct permissions for this folder?
Which exception is being raised?

Jo
0
 

Author Comment

by:NetGeek
ID: 6206174
I can excute the same code in a "normal" application without problems, i.e. running the query and getting the expected result out of it.
The private directory is set to a folder below the cgi-bin folder with the application it self, "everybody" has "full control" over those folders, and the IUSR_MYSERVER user has even been granted membership of administrators.
I haven't figured out a way to find out exactly what kind of exception is being raised, any help on that would be greatly appreciated as well.

Best regards
NetGeek
0
 
LVL 3

Accepted Solution

by:
nnbbb09 earned 200 total points
ID: 6206814

To get the exception type change your exception handler to read :

except
 on e:exception do
 begin
   response.content := e.classname+' - '+e.message;
 end;
end;

Jo
0
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 

Author Comment

by:NetGeek
ID: 6237630
Great, nnbbb, that helped a lot. I still haven't solved the problem, and have decided to move back to an NT server. I am however gonna give you the points anyway, because i really liked the code you gave me on getting the exception messages.

Best regards
NetGeek
0
 
LVL 3

Expert Comment

by:nnbbb09
ID: 6237968

Glad to help. Out of interest what was the exception message?

Jo
0
 

Author Comment

by:NetGeek
ID: 6238653
I never got to try it out in this context, I'll let you know when i re-install win2000 and try it out again.

Best regards
NetGeek
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
delphi prevent click fast 2 191
Delphi selector screen 2 69
How to define IfThen functions in one common unit? 4 44
PHP preg_replace code convert to Delphi 14 35
Introduction I have seen many questions in this Delphi topic area where queries in threads are needed or suggested. I know bumped into a similar need. This article will address some of the concepts when dealing with a multithreaded delphi database…
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…
Migrating to Microsoft Office 365 is becoming increasingly popular for organizations both large and small. If you have made the leap to Microsoft’s cloud platform, you know that you will need to create a corporate email signature for your Office 365…
In this video I am going to show you how to back up and restore Office 365 mailboxes using CodeTwo Backup for Office 365. Learn more about the tool used in this video here: http://www.codetwo.com/backup-for-office-365/ (http://www.codetwo.com/ba…

920 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

20 Experts available now in Live!

Get 1:1 Help Now