Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Error message 'access file denied'
Message
De
26/02/2001 20:04:08
Dragan Nedeljkovich (En ligne)
Now officially retired
Zrenjanin, Serbia
 
 
À
26/02/2001 13:45:01
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00479652
Message ID:
00479838
Vues:
37
>Hi to all, i am tring to open a database called "database.dcb" in a shared directory called C:\DATI on the 'server',and on the 'client' i have mapped the same directory with E:(\\SERVER\DATI). When i launch my application from the server OR from the client all is ok, but when i use simultaneusly the two application just i run the second accours the error 'access file denied' on the line OPEN DATABASE E:\database.dbc SHARED. The set exclusively is off. The problem is why if i use the application from the server or the client is OK and not simultaneusly??

When does this happen, when you launch or exactly when you open the database? One thing to look for is the resource file (which would explain the first case), foxuser.dbf, because it is always open exclusively, and if it is on the same directory as the app, all the users would try to use it. One way would be to turn it off (resource=off in config.fpw, or Set Resource Off in the first lines of the app), or to have one for each user (having a template resource table somewhere, and then copying to user's temp drive if not already there, then Set Resource To [local copy]).

If it's the .dbc, I wouldn't know - maybe you have a private datasession when you do it, and it has most of the SET commands for itself, so Set Exclusive may actually be in effect.

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform