Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Using the VFPOLEDB.1 provider
Message
General information
Forum:
ASP.NET
Category:
Visual FoxPro Toolkit for .NET
Miscellaneous
Thread ID:
00733915
Message ID:
00733930
Views:
24
This message has been marked as the solution to the initial question of the thread.
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.com
www.prenia.com
Weblog: blogs.prenia.com/cathi
Previous
Reply
Map
View

Click here to load this message in the networking platform