Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
File does not exist
Message
De
27/06/2003 17:36:08
 
 
À
27/06/2003 15:22:12
Jerry Tovar
Dana Corporation Dana It
Maumee, Ohio, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Web Services
Divers
Thread ID:
00804848
Message ID:
00804909
Vues:
21
>I am creating a web service in VFP8 that accesses a VFP free table located on the file server.
>
>After I compile the project as a Multi-threaded DLL, I can access the methods in the com object from the VFP command just fine as follows:
>
>***This works if the table is local or on a network.
>o = CREATEOBJECT("wemp.cemp")
>?o.p_GetEmployeeByLastName("SMITH")
>
>However, when I try to access the methods as a Web Service I get a File F:\data\employee.dbf Does Not Exist. Here's my syntax.

I had the same problem. Even with running IIS and having NT auth. That doesn't give you access to network drives. What we ended up doing was making our COM object run in the same memory space of IIS. Then using the API RevertToSelf, which will reverts back to the SYSTEM user, then using the API LogonUser with ImpersonateLoggedOnUser API to login as a domain user. Then you can access network drives. Also we always link to network drives using UNC. Or maybe you could give the IUSER_ access to the network but I think that would be less secure.
Charles

"The code knows no master." - Chuck Mautz
"Everybody is ignorant, only on different subjects." - Will Rogers
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform