Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
ASP page can not found .dbc database
Message
From
26/03/2002 04:03:48
 
 
To
25/03/2002 15:04:02
General information
Forum:
Visual FoxPro
Category:
Internet applications
Miscellaneous
Thread ID:
00636978
Message ID:
00637129
Views:
18
Hi!

HOW you mapped that drive and path for another user on that machine? Mapped drives are applied for current logged on user only. So when you logged on as user "ME", mapped drive will be available only to all applications that run under "ME" user account. ASP pages run under the account defined for WEB service (IIS). So you have to log on on the computer as that user at least once, map some share to drive and set up it to do mapping automatically at logon, then logout. In addition, IIS service account must have proper security rights in the network domain to have access to network resources, as well as it should have access rights to the mapped share and files in folders there. This is hard to organize, but possible - you require to create a network user accound with the same name as used for IIS, then reconfigure the IIS to use that account. Beware - allowing the IIS to access network resources is a very dangerous hole in the security in case you will not handle security rights properly for the user account used for IIS.

You can also use just the UNC name, so no mapping ia required:
\\SOMEMACHINE\SOMESHARENAME\data\euc.dbc

Finally, you can set up IIS to work unde "ME" account, but for sure this is even greated hole in the security.

HTH.

>I am trying to access a VFP database but I get an error :
>My ASP pages is locate in my local machine and the database in a remote server.
>
>Here is the error:
>
>Error Type:
>Microsoft OLE DB Provider for Visual FoxPro (0x80004005)
>Invalid path or file name.
>/ehs_lookup/lookup.asp, line 28
>
>Here is the connection code :
>
>Set oRecordset = Server.CreateObject("adodb.recordset")
>Set oConnection = Server.CreateObject("adodb.connection")
>oConnection.Mode = 16
>
>oConnection.ConnectionString = "Provider=VFPOLEDB.1;Data Source=f:\data\euc.dbc"
>
>oConnection.Open
>
>
>The path is a mapped drive on my local computer.
>
>Any help is greatly appreciated.
>
>Thanks,
>Sergio Ortiz
Vlad Grynchyshyn, Project Manager, MCP
vgryn@yahoo.com
ICQ #10709245
The professional level of programmer could be determined by level of stupidity of his/her bugs

It is not appropriate to say that question is "foolish". There could be only foolish answers. Everybody passed period of time when knows nothing about something.
Previous
Reply
Map
View

Click here to load this message in the networking platform