If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > Pervasive.SQL > Btrieve error 171

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 12-05-06, 09:50
emeterio emeterio is offline
Registered User
 
Join Date: Nov 2004
Posts: 9
Btrieve error 171

Hi there,

We are using use TITAN tbTable in my desktop applications it run good, but now I have a ISAPI (web application) connected to pervasive database and in some servers I receive the error Btrieve Error 171. DBI Error Code = Titan (BDE) Error 171 trying to open a database.

Can some body help me ?


Thanks in advance
Reply With Quote
  #2 (permalink)  
Old 12-05-06, 11:22
mirtheil mirtheil is offline
Registered User
 
Join Date: Dec 2001
Posts: 1,026
A few questions:
- Does the ISAPI application use Titan as well?
- How does the ISAPI application open the data file(s)? Posting code is best.
- What version of PSQL are you using?
- Is the database yours or is it a third party application database?
- Is database security enabled on the database?
__________________
Mirtheil Software
Certified Pervasive Developer
Certified Pervasive Technician
Custom Btrieve/VB development
http://www.mirtheil.com
I do not answer questions by email. Please post on the forum.
Reply With Quote
  #3 (permalink)  
Old 12-05-06, 12:10
emeterio emeterio is offline
Registered User
 
Join Date: Nov 2004
Posts: 9
- Does the ISAPI application use Titan as well?
yes, I use Titan in Isapi and CGI.

- How does the ISAPI application open the data file(s)? Posting code is best.
I open it normally, I don't understand "Posting code", can you explaim me ?

- What version of PSQL are you using?
PSQL 9.50

- Is the database yours or is it a third party application database?
NO

- Is database security enabled on the database?
YES

I have specified in the TtbDatabase connection
aliasName =\\servername\path\

I have this error for years, some time I resolve reinstalling the pervasive client but I don't know wich is the problem.

Thanks in advantage
Reply With Quote
  #4 (permalink)  
Old 12-05-06, 15:56
mirtheil mirtheil is offline
Registered User
 
Join Date: Dec 2001
Posts: 1,026
If your database is secured (and requires a username/password through PCC for example), then you may need to specify a different way of opening the files.
Quote:
- Is the database yours or is it a third party application database?
NO
No really isn't an answer for the above question.

As far as posting your code, I'm looking for the Delphi Code where you specify the location of the files and the Open call. I haven't worked with Titan for a number of years (I prefer C# and/or VB to Delphi and used PDAC in Delphi).
__________________
Mirtheil Software
Certified Pervasive Developer
Certified Pervasive Technician
Custom Btrieve/VB development
http://www.mirtheil.com
I do not answer questions by email. Please post on the forum.
Reply With Quote
  #5 (permalink)  
Old 12-06-06, 08:18
emeterio emeterio is offline
Registered User
 
Join Date: Nov 2004
Posts: 9
Thank you very much for your help.

-We are connecting to the data base as Classic (OS authentication and authorization) and we never need to put Login and password it take OPerating system authentication.

- It is our own data base.

- Windows XP as hosting server

- Delphi 5

- This is the code, a easy Delphi CGI, It only try to open a table, it run good
in some servers

http://12.149.78.167/ra/test_error.exe/test

but in other with same configuration haver error :

Btrieve Error 171. DBI Error Code = Titan (BDE) Error 171

.
.
.
procedure TWebModule1.WebModule1WebActionItem3Action(Sender: TObject;
Request: TWebRequest; Response: TWebResponse; var Handled: Boolean);
begin
tbDatabase1.AliasName := '\\ra-486\sys\appl\';
Try
tbTable1.open;
response.content := 'The table was open...'
except
On e : exception do
begin
response.content := 'Error openning...<br>' + E.Message;
end;
end;
end;

As you can see it is a very easy example, what happen ?, I'm really frustrated.


Thank you, one more time.
Reply With Quote
  #6 (permalink)  
Old 12-06-06, 08:25
mirtheil mirtheil is offline
Registered User
 
Join Date: Dec 2001
Posts: 1,026
What's the difference between servers where it works and where it doesn't? Is the "AliasName" different? If so, how?
__________________
Mirtheil Software
Certified Pervasive Developer
Certified Pervasive Technician
Custom Btrieve/VB development
http://www.mirtheil.com
I do not answer questions by email. Please post on the forum.
Reply With Quote
  #7 (permalink)  
Old 12-06-06, 10:09
emeterio emeterio is offline
Registered User
 
Join Date: Nov 2004
Posts: 9
No, the aliasname is the same, because I openning the same table, data base and engine, that is the point, I say about aliasname because the desktop application always work and the main code's difference is the aliasname specification between CGI and desktop applications

\\ra-486\sys\appl\ ---> for CGI
H:\appl\ ---> for desktop
Reply With Quote
  #8 (permalink)  
Old 12-06-06, 13:00
mirtheil mirtheil is offline
Registered User
 
Join Date: Dec 2001
Posts: 1,026
Still sounds like a permissions issue when run as a web application. If the desktop app works and the web app fails, it's most likely a permission error.
Double check that IUSR_machinename (where the web server runs) has proper rights on the remote server (\\ra-486\sys\appl).
__________________
Mirtheil Software
Certified Pervasive Developer
Certified Pervasive Technician
Custom Btrieve/VB development
http://www.mirtheil.com
I do not answer questions by email. Please post on the forum.
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On