?
Solved

W2K, IIS 5, ISAPI, BDE, Paradox

Posted on 2001-06-18
6
Medium Priority
?
288 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 800 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
Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

 

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

Industry Leaders: 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!

Question has a verified solution.

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

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…
In this tutorial I will show you how to use the Windows Speech API in Delphi. I will only cover basic functions such as text to speech and controlling the speed of the speech. SAPI Installation First you need to install the SAPI type library, th…
Have you created a query with information for a calendar? ... and then, abra-cadabra, the calendar is done?! I am going to show you how to make that happen. Visualize your data!  ... really see it To use the code to create a calendar from a q…
In this video, Percona Director of Solution Engineering Jon Tobin discusses the function and features of Percona Server for MongoDB. How Percona can help Percona can help you determine if Percona Server for MongoDB is the right solution for …
Suggested Courses

719 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