PDA

View Full Version : MapPath Error


malhyp
10-02-2005, 04:12 AM
Gday to all. Can anyone help with the following?

I have been trying to creata a connection string and have had a few probles. I have uploaded my database to the ISP and now trying to create a DSN-Less connection string.

I belevie that to do this I must reate a MapPath to find out where my database sits.

The code I created was this.

"Provider=Microsoft.Jet.OLEDB.4.0;Data Source= " & Server.MapPath ("Database") & "db1.mdb;User Id=admin;Password="

The responce I received was this.

Could not find the file \\samba\clientweb\t\i\tamseek.com.au\\www\_mmServe rScripts\Databasedb1.mdb'.

Can anyone suggest what I have done wrong or what I have missed.

Thanks.

Mal.

davidj
10-03-2005, 08:25 AM
try uploading your _mmServerScripts dir to the live server

what path did your host give you to link to your database?

are you hosting it yourself?

is the DSN-Less connection string working on your development machine?