Please excuse me if this is a bit remedial, but if its c#, did you excape the "\"? (either @"\" or "\\")
Is the Account your app is running under a member of your network domain?
>Hi,
>
>I am having problems connecting to a FoxPro database sitting on a shared
>folder on a network from within my .NET application. I am using a the
>following connection string to connect to the database:
>
>'provider=VFPOLEDB.1;data
>source='\\myServer\DataDirectory\FoxProDatabase.dbc'
>
>When I try to connect to the database, I get an error thrown up by the
>oledbprovider:
>"OleDbException (0x80040e21): Invalid path or file name"
>
>I have tried to resolve this by giving the IUSR account full admin rights
>within IIS, but to no avail.
>
>Any ideas why this is happening?
>
>Thanks in advance for your help.
>
>André Luiz M. de Castro
Bill Mittenzwey