View previous topic :: View next topic |
Author |
Message |
molsonbubba -
Joined: 17 Feb 2006 Posts: 2
|
Posted: Sat Feb 18, 2006 12:08 am Post subject: Alias |
|
|
Hello,
I am having an Alias problem and was wandering if any one could point me to the right direction. This set up works fine on my older PC set up on IIS5/XP PRO. It does not work on new PC set up with Abyss/WIN HOME. I need to map this:
Virtual Path: /db1
Real Path: C:\internet\database\my.db
It is not working. I checked and recheked the path. It is correct. The Error is caused by this code:
strCon = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" & Server.MapPath("\db1\my.mdb").
Here is the error.
Microsoft JET Database Engine- Error '80004005'
'C:\internet\database\my.db' 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.
Thnx in advance. |
|
Back to top |
|
 |
aprelium -
Joined: 22 Mar 2002 Posts: 6800
|
Posted: Sat Feb 18, 2006 2:29 pm Post subject: Re: Alias |
|
|
molsonbubba wrote: | strCon = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" & Server.MapPath("\db1\my.mdb"). |
To have MapPath work as expected in ActiveHTML, you'll have to declare the alias in ActiveHTML configuration too:
* run ActiveHTML configuration (you'll find it in the start menu)
* Press Connect
* Go to Directory Aliases
* In the fields at the bottom of the window enter the virtual directory (for
example /db1) and its real path (C:\internet\database\my.db for
example).
* Press save at the right bottom of the window
* Press save at the top of the window _________________ Support Team
Aprelium - http://www.aprelium.com |
|
Back to top |
|
 |
|