473,326 Members | 2,023 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,326 software developers and data experts.

OLEDB + VFP DATABASE

i got two server, (data server) + application server.
the asp.net will be stored in application server and map the vfp database
by using network drive.

When the database and program located in the same server, everything works
fine.
However, when I place the database in another server, It got an error said
"invalid paht"
Dim db_root As String = "u:\WTO\"
Session("HostCompanyName") = "WTO LOGISTICS LIMITED"
Session("ConnectionAuth") = "Provider = VfpOleDB.1;Data Source =
" & db_root & "vfpmaster\ttsdata\tts.dbc"

'U' is network drive.
when i change back into 'C', eveything works fine.
Does anyone know how to solve it ??
thanks a lot
Sep 4 '06 #1
1 1090
On Mon, 4 Sep 2006 10:17:32 +0800, "Agnes" <ag***@dynamictech.com.hkwrote:
>i got two server, (data server) + application server.
the asp.net will be stored in application server and map the vfp database
by using network drive.

When the database and program located in the same server, everything works
fine.
However, when I place the database in another server, It got an error said
"invalid paht"
Dim db_root As String = "u:\WTO\"
Session("HostCompanyName") = "WTO LOGISTICS LIMITED"
Session("ConnectionAuth") = "Provider = VfpOleDB.1;Data Source =
" & db_root & "vfpmaster\ttsdata\tts.dbc"

'U' is network drive.
when i change back into 'C', eveything works fine.
Does anyone know how to solve it ??
thanks a lot
You will need to use the URN of the server and folder, not the attached drive
letter. It should be something like this:

\\YourServerName\WTO\

Good luck with your project,

Otis Mukinfus
http://www.arltex.com
http://www.tomchilders.com
Sep 4 '06 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Chris Thunell | last post by:
I have a program where i connect to an access database and get some information out of it. I'm using the oledb.3.51 version, my computer doesn't seem to have the 4.0 version, but the computer that...
9
by: Pam Ammond | last post by:
I need the code to update the database when Save is clicked and a text field has changed. This should be very easy since I used Microsoft's wizards for the OleDBAdapter and OleDBConnection, and...
3
by: Brian Foree | last post by:
I am developing an ASP.NET application that uses Access 2000 as its backend, and have just started getting the following error on 2 ASP.NET pages that had been working until late last week (and I...
0
by: NicK chlam via DotNetMonster.com | last post by:
this is the error i get System.Data.OleDb.OleDbException: Syntax error in INSERT INTO statement. at System.Data.Common.DbDataAdapter.Update(DataRow dataRows, DataTableMapping tableMapping) at...
3
by: Chris Thunell | last post by:
I have a program where i connect to an access database and get some information out of it. I'm using the oledb.3.51 version, my computer doesn't seem to have the 4.0 version, but the computer that...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.