Re: Connecting to a database by Sietse
Sietse
Mon May 24 05:05:35 CDT 2004
Hi Xavier,
A few assumptions:
Website is running in IIS
User access is using the IUSR
With no modifications the DLL is instanciated using the IUSR's credentials.
The IUSR (ofcourse) doesn't have the access rights for the network drive by
default. You can set the rights for the IUSR for that network drive, but my
opinion for that is that it's a bad solution. A better solution is using
COM+. COM+ components can use impersonation, so the dll gets started using
user credentials other than the IUSR, while the IUSR still can access the
functionality of the DLL.
Look at the help of Component Services on how to add a VFP-COM component to
the COM+ services
The using of the dll in ASP is not affected by using Component Services.
Additional advantage is the easy shutting down of the dll at run time for
updating purposes.
In NT4 Comnponent Services were called Transaction Server (MTS)
HTH,
Sietse Wijnker
"Nuyttens Xavier" <xavier@cpsit.be> wrote in message
news:Wxisc.127165$rz5.6725759@phobos.telenet-ops.be...
> Hi,
>
> We are hosting a webserver for a client, and have a connection to our
foxpro
> software via a dll. If we put the software on the drive that has also the
> website, it works ok. If we move the software to an external networkdrive,
> it gives an error that it can't connect to the database. Probably this is
> because of security reasons. Does anybody know how to resolve this problem
?
>
> thanks in advance
> Xavier
>
>