Solved

W2K, IIS 5, ISAPI, BDE, Paradox

Posted on 2001-06-18
6
285 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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
Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 

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

On Demand Webinar: Networking for the Cloud Era

Did you know SD-WANs can improve network connectivity? Check out this webinar to learn how an SD-WAN simplified, one-click tool can help you migrate and manage data in the cloud.

Question has a verified solution.

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

The uses clause is one of those things that just tends to grow and grow. Most of the time this is in the main form, as it's from this form that all others are called. If you have a big application (including many forms), the uses clause in the in…
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…
NetCrunch network monitor is a highly extensive platform for network monitoring and alert generation. In this video you'll see a live demo of NetCrunch with most notable features explained in a walk-through manner. You'll also get to know the philos…
In this brief tutorial Pawel from AdRem Software explains how you can quickly find out which services are running on your network, or what are the IP addresses of servers responsible for each service. Software used is freeware NetCrunch Tools (https…
Suggested Courses
Course of the Month9 days, 21 hours left to enroll

624 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