C
cooldv
After talking (emailing) to my webhoster, i have placed my access DB
in a folder outside the root directory folder; and they gave me a
*path.asp* file to put in my root directory folder. ** This webhoster
is a real specimen! He/she refuses to provide further support saying
it is a script debugging issue***
I need help from ya'll gurus!!!!!!
1a. The path.asp file has only 1 line code: <% = Server.MapPath(".")
%>
1b. Running the path.asp file (via http://........./path.asp) returns
this in the browser window: f:\names\mywebsite.com\rootfolder
2. the structure of my ftp access is like this:
ftp.mywebsite....com
- mywebsite....com (folder)
Now, all the asp files (and path.asp file) are in the rootfolder and
the access DB is in the secure folder.
3a. What path to the database do i write in my asp file?
set conn = server.createobject("adodb.connection")
DSNtemp="DRIVER={Microsoft Access Driver (*.mdb)}; "
DSNtemp=dsntemp & "DBQ=" & server.mappath("database.mdb")
conn.Open DSNtemp
3b. If i run my asp file with this above code, i get this error:
Microsoft OLE DB Provider for ODBC Drivers error '80004005'
[Microsoft][ODBC Microsoft Access Driver]General error Unable to open
registry key 'Temporary (volatile) Jet DSN for process 0xd9c Thread
0xdf0 DBC 0x22b6024 Jet'.
/aspfile.asp, line 74
(line 74 is the conn.open DSNtemp)
in a folder outside the root directory folder; and they gave me a
*path.asp* file to put in my root directory folder. ** This webhoster
is a real specimen! He/she refuses to provide further support saying
it is a script debugging issue***
I need help from ya'll gurus!!!!!!
1a. The path.asp file has only 1 line code: <% = Server.MapPath(".")
%>
1b. Running the path.asp file (via http://........./path.asp) returns
this in the browser window: f:\names\mywebsite.com\rootfolder
2. the structure of my ftp access is like this:
ftp.mywebsite....com
- mywebsite....com (folder)
rootfolder (this is the root directory folder)
secure (folder)
Now, all the asp files (and path.asp file) are in the rootfolder and
the access DB is in the secure folder.
3a. What path to the database do i write in my asp file?
set conn = server.createobject("adodb.connection")
DSNtemp="DRIVER={Microsoft Access Driver (*.mdb)}; "
DSNtemp=dsntemp & "DBQ=" & server.mappath("database.mdb")
conn.Open DSNtemp
3b. If i run my asp file with this above code, i get this error:
Microsoft OLE DB Provider for ODBC Drivers error '80004005'
[Microsoft][ODBC Microsoft Access Driver]General error Unable to open
registry key 'Temporary (volatile) Jet DSN for process 0xd9c Thread
0xdf0 DBC 0x22b6024 Jet'.
/aspfile.asp, line 74
(line 74 is the conn.open DSNtemp)