Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

W2K, IIS 5, ISAPI, BDE, Paradox

Posted on 2001-06-18
6
Medium Priority
?
290 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 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
What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

 

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

Important Lessons on Recovering from Petya

In their most recent webinar, Skyport Systems explores ways to isolate and protect critical databases to keep the core of your company safe from harm.

Question has a verified solution.

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

Introduction The parallel port is a very commonly known port, it was widely used to connect a printer to the PC, if you look at the back of your computer, for those who don't have newer computers, there will be a port with 25 pins and a small print…
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…
This lesson discusses how to use a Mainform + Subforms in Microsoft Access to find and enter data for payments on orders. The sample data comes from a custom shop that builds and sells movable storage structures that are delivered to your property. …
When cloud platforms entered the scene, users and companies jumped on board to take advantage of the many benefits, like the ability to work and connect with company information from various locations. What many didn't foresee was the increased risk…

927 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