Hi Ken,
In the Notes: paragraph, are you saying that setting up the user ASPNET did work or didn't work? You will need to give setup the ASPNET as a user on the domain with full permissions to the directory containing the data files or use impersonation as described in message #
682735.
When you test in VS.NET, you are not using the same security as when you are running the web pages. That is why it works in the IDE but not in the browser.
>I am working with the 'Using ASP.NET in Visual Studio .NET with Visual FoxPro 7.0' example on MSDN. In short, I can get this to read a .DBF on my C:\ drive, but not a network drive. I get 'Invalid File name or path'.
>
>My connection string ...
>Provider=VFPOLEDB.1;Data Source=t:\custacct.dbf;Mode=Share Deny None;Extended Properties="";User ID="";Password="";Mask Password=False;Cache Authentication=False;Encrypt Password=False;Collating Sequence=MACHINE;DSN="";MVCOUNT=1024
>
>Notes: I have a 'user' account setup for ASPNET. It has permissions on the my 'T:\'drive. I created this string with the editor. I tested the connection and it worked. Again, if I just change the t:\ to c:\, everything works. The password and userid seems to be irrelevant in this circumstance.
>
>Thanks in advance,
>Ken
-----------------------------------------
Cathi Gero, CPA
Prenia Software & Consulting Services
Microsoft C# / .NET MVP
Mere Mortals for .NET MVP
cgero@prenia.comwww.prenia.comWeblog: blogs.prenia.com/cathi