Diff between local and server

M

MikeR

To get to a database on my local server:
dbname="DBQ=" & Server.MapPath("../db/qsl.mdb")

That same line causes the connection to puke on my host's server, and must be
dbname="DBQ=" & Server.MapPath("/db/qsl.mdb")

Why the difference?
MikeR 1st
 
K

Kevin Spencer

Your hosting service doesn't allow parent paths. The "../" indicates a path
above the current directory. The "/" indicates a path beginning at the root
of the web site. Parent paths have been used by hackers to get into the web
server's upper-level and system folders, and many hosting services disallow
them.

--
HTH,

Kevin Spencer
Microsoft MVP
..Net Developer
Paranoia is just a state of mind.
 
M

MikeR

I waded around a in IIS, to set my local server to parent paths off(to match my ISP), and
now, using dbname="DBQ=" & Server.MapPath("/db/qsl.mdb") I get this:

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 0xdb4 Thread 0xa58 DBC 0x1150064 Jet'.

I Googled lotsa stuff about error 80004005, but no joy on a fix.
Sure woulb be nive to have it the same path in both places. My host is VERY reluctant to
change settings, citing security concerns.
MikeR 1st
 
T

Thomas A. Rowe

80004005 errors are permission related.

--
==============================================
Thomas A. Rowe (Microsoft MVP - FrontPage)
==============================================
If you feel your current issue is a results of installing
a Service Pack or security update, please contact
Microsoft Product Support Services:
http://support.microsoft.com
If the problem can be shown to have been caused by a
security update, then there is usually no charge for the call.
==============================================

MikeR said:
I waded around a in IIS, to set my local server to parent paths off(to match my ISP), and now,
using dbname="DBQ=" & Server.MapPath("/db/qsl.mdb") I get this:

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 0xdb4 Thread 0xa58 DBC 0x1150064 Jet'.

I Googled lotsa stuff about error 80004005, but no joy on a fix.
Sure woulb be nive to have it the same path in both places. My host is VERY reluctant to change
settings, citing security concerns.
MikeR 1st

To get to a database on my local server:
dbname="DBQ=" & Server.MapPath("../db/qsl.mdb")

That same line causes the connection to puke on my host's server, and must be
dbname="DBQ=" & Server.MapPath("/db/qsl.mdb")

Why the difference?
MikeR 1st
 
M

MikeR

I waded into IIS on my local server, and set parent paths off, so I would match my host.
Now dbname="DBQ=" & Server.MapPath("/db/qsl.mdb") gives me

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 0xdb4 Thread 0x204 DBC 0x1150064 Jet'.

Googling that finds a ton of references to error 80004005, but nothing that fixes the
problem.

MikeR 1st
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top