Hi all,

I am trying to do what I thought would be a simple task: connect to a
foxpro database, that resides on another machine on our network,
through .Net.

I get the following error:

//windowsrv//f$//GSD//DEPO//L1//' is not a
valid path. Make sure that the path name is spelled correctly and that
you are connected to the server on which the file resides

Now this path is definitly a valid one.

The code is. i use connection string from web.config :

<add key="cnstr" value="Provider=Microsoft.Jet.OLEDB.4.0; Data Source=//windowsrv//f$//GSD//DEPO//L1//;Extended Properties=dBASE III "/>

f is drive name,

Any ideas?

I believe your key should looks like below :

<add key="cnstr" value="Provider=Microsoft.Jet.OLEDB.4.0; Data Source=//windowsrv//f//GSD//DEPO//L1//;Extended Properties=dBASE III; "/>

I have removed "$" sign and added ";" at the end.

Try it :-)

Thanks for reply.
but i have try ur suggetions and made changes and run application from the Visual Web Developer ,it cant found path, here f is remote drive.application is on local machine and database is on remote machine.
Let u know one thing that i posted error is come when i run application from iis,it run successfully when i run it from VWD.
i hope u understand what i want to say

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.