Alias

 
Post new topic   Reply to topic    Aprelium Forum Index -> General Questions
View previous topic :: View next topic  
Author Message
molsonbubba
-


Joined: 17 Feb 2006
Posts: 2

PostPosted: Sat Feb 18, 2006 12:08 am    Post subject: Alias Reply with quote

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 View user's profile Send private message
aprelium
-


Joined: 22 Mar 2002
Posts: 6800

PostPosted: Sat Feb 18, 2006 2:29 pm    Post subject: Re: Alias Reply with quote

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 View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic   Reply to topic    Aprelium Forum Index -> General Questions All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB phpBB Group