Solved

W2K, IIS 5, ISAPI, BDE, Paradox

Posted on 2001-06-18
6
279 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
Comment Utility
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
Comment Utility
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
Comment Utility

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
Find Ransomware Secrets With All-Source Analysis

Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

 

Author Comment

by:NetGeek
Comment Utility
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
Comment Utility

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

Jo
0
 

Author Comment

by:NetGeek
Comment Utility
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

Enabling OSINT in Activity Based Intelligence

Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

Join & Write a Comment

Objective: - This article will help user in how to convert their numeric value become words. How to use 1. You can copy this code in your Unit as function 2. than you can perform your function by type this code The Code   (CODE) The Im…
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 tutorial you'll learn about bandwidth monitoring with flows and packet sniffing with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're interested in additional methods for monitoring bandwidt…
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

763 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

9 Experts available now in Live!

Get 1:1 Help Now