473,385 Members | 1,610 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,385 software developers and data experts.

How can I connect to a remote database?

I am using ODBC to connect to dBase data on a remote server. The ASP.NET app
will be running on Win 2k or 2003 server. I have tried to make it work but
all I can get is an error.

System.Data.Odbc.OdbcException: ERROR [HY024] [Microsoft][ODBC dBase Driver]
'(unknown)' 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. ERROR [IM006] [Microsoft][ODBC Driver Manager] Driver's
SQLSetConnectAttr failed ERROR [HY024] [Microsoft][ODBC dBase Driver]
'(unknown)' 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.

Everything works fine if the data and the .net app are on the same machine
but won't work if separated.

I'm using the DSN. The driver is Microsoft dBase driver. Any ideas besides
changing to OleDB?

Thanks
Nov 19 '05 #1
3 6687
Hi Dave,

The problem is that you're not trying to connect to a database server, such
as SQL Server, Oracle, or MySQL. You're trying to connect over a network to
a file-based database.

--
HTH,

Kevin Spencer
Microsoft MVP
..Net Developer
Sometimes you eat the elephant.
Sometimes the elephant eats you.

"Dave F." <df******@gmail.com> wrote in message
news:OM**************@TK2MSFTNGP10.phx.gbl...
I am using ODBC to connect to dBase data on a remote server. The ASP.NET
app will be running on Win 2k or 2003 server. I have tried to make it work
but all I can get is an error.

System.Data.Odbc.OdbcException: ERROR [HY024] [Microsoft][ODBC dBase
Driver]
'(unknown)' 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. ERROR [IM006] [Microsoft][ODBC Driver Manager] Driver's
SQLSetConnectAttr failed ERROR [HY024] [Microsoft][ODBC dBase Driver]
'(unknown)' 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.

Everything works fine if the data and the .net app are on the same machine
but won't work if separated.

I'm using the DSN. The driver is Microsoft dBase driver. Any ideas besides
changing to OleDB?

Thanks

Nov 19 '05 #2
the asp.net process does not have network permission by default, so the
driver can not access the share. on you 2003 server, create an app pool with
a domain account, with permissions to the share, and setup your site to use
the app pool. on win2k, use the <identity> section in web.config to set a
domain account

-- bruce (sqlwork.com)
"Dave F." <df******@gmail.com> wrote in message
news:OM**************@TK2MSFTNGP10.phx.gbl...
I am using ODBC to connect to dBase data on a remote server. The ASP.NET
app will be running on Win 2k or 2003 server. I have tried to make it work
but all I can get is an error.

System.Data.Odbc.OdbcException: ERROR [HY024] [Microsoft][ODBC dBase
Driver]
'(unknown)' 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. ERROR [IM006] [Microsoft][ODBC Driver Manager] Driver's
SQLSetConnectAttr failed ERROR [HY024] [Microsoft][ODBC dBase Driver]
'(unknown)' 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.

Everything works fine if the data and the .net app are on the same machine
but won't work if separated.

I'm using the DSN. The driver is Microsoft dBase driver. Any ideas besides
changing to OleDB?

Thanks

Nov 19 '05 #3
Bruce,

Thanks for the help. I think we are on to something now. Our SQL database is
about a year away. I'm sure that will make life much easier.

Dave

"Bruce Barker" <br******************@safeco.com> wrote in message
news:eB**************@TK2MSFTNGP14.phx.gbl...
the asp.net process does not have network permission by default, so the
driver can not access the share. on you 2003 server, create an app pool
with a domain account, with permissions to the share, and setup your site
to use the app pool. on win2k, use the <identity> section in web.config to
set a domain account

-- bruce (sqlwork.com)
"Dave F." <df******@gmail.com> wrote in message
news:OM**************@TK2MSFTNGP10.phx.gbl...
I am using ODBC to connect to dBase data on a remote server. The ASP.NET
app will be running on Win 2k or 2003 server. I have tried to make it work
but all I can get is an error.

System.Data.Odbc.OdbcException: ERROR [HY024] [Microsoft][ODBC dBase
Driver]
'(unknown)' 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. ERROR [IM006] [Microsoft][ODBC Driver Manager] Driver's
SQLSetConnectAttr failed ERROR [HY024] [Microsoft][ODBC dBase Driver]
'(unknown)' 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.

Everything works fine if the data and the .net app are on the same
machine but won't work if separated.

I'm using the DSN. The driver is Microsoft dBase driver. Any ideas
besides changing to OleDB?

Thanks


Nov 19 '05 #4

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

Similar topics

3
by: Fabian Knopf | last post by:
Hi friends, i have a unix machine PC1 where a database is running ( IBM DB2 V8.1 ) . Then i have another machine PC2 i installed there also ( IBM DB2 V8.1 ). On PC2 i installed unixODBC. To...
4
by: banz | last post by:
Hello I have a problem to resolve: I wrote a Perlscript which caches data from a server (local on my machine) I would like to have a other connection to a remote server but I don't know how to...
3
by: Burkhard Schultheis | last post by:
I'm able to connect to a local DB2 database, but unable to connect to a remote DB2 database from Crystal Reports XI. In the control center I have no problems connecting to the remote databases....
5
by: mayamorning123 | last post by:
A comparison among six VSS remote tools including SourceOffSite , SourceAnyWhere, VSS Connect, SourceXT, VSS Remoting, VSS.NET To view the full article, please visit...
5
by: Mike L | last post by:
I'm able to connect to my stored procedure in my local database but not able to connect to my stored procedure in the remote database. I use several different UserID and Password that all should...
2
by: Martin | last post by:
Hi all. I have a fully functional page hosted on my PC that uses PHP and connects to MySQL on my PC to generate it's code. I now have some web hosting available which includes both PHP and...
3
by: sohan | last post by:
Hi, One question - to connect to a db2 database in the same UNIX server we can use from UNIX command prompt: db2 connect to <dbnameUSer <nameusing <pwd> Now if the db2 database is in a...
5
by: Rnt6872 | last post by:
Hello. All, I've been trying to connect to my hosting company's (Go Daddy) remote database. But continuously receive "Server does not allow remote connections". Do I need a open_source...
8
by: BD | last post by:
I am developing C# win form app to work with remote database on SQL Server 2005. Problem scenario is as follows: 1. a form is open that has downloaded dataset to local cache 2. computer is...
7
by: RN1 | last post by:
Is it possible to connect to my local SQL Server 2005 database from a remote web server? If yes, what ConnectionString do I use? Thanks, Ron
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

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.