Web Wiz - Green Windows Web Hosting

  New Posts New Posts RSS Feed - huh?
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

huh?

 Post Reply Post Reply Page  <123>
Author
WebWiz-Bruce View Drop Down
Admin Group
Admin Group
Avatar
Web Wiz Developer

Joined: 03 September 2001
Location: Bournemouth
Status: Offline
Points: 9844
Post Options Post Options   Thanks (0) Thanks(0)   Quote WebWiz-Bruce Quote  Post ReplyReply Direct Link To This Post Posted: 29 October 2003 at 11:53am
If you are using the physical path you need to comment the string that users the mapPath method and uncomment the string that doesn't have the MapPath method:-

Virtual path to database
'strDbPathAndName = Server.MapPath(" \\nas01ent\domains\d\mydomain.co.il\user\private\cantellu.md b")  'This is the path of the database from this files location on the server 'Physical path to database
strDbPathAndName = " \\nas01ent\domains\d\mydomain.co.il\user\private\cantellu.md b"


See the ' is placed in on the top one and removed from the bottom one.
Back to Top
DragonFist View Drop Down
Groupie
Groupie
Avatar

Joined: 22 June 2003
Location: Israel
Status: Offline
Points: 68
Post Options Post Options   Thanks (0) Thanks(0)   Quote DragonFist Quote  Post ReplyReply Direct Link To This Post Posted: 30 October 2003 at 8:01am

10x borg, i tried to do what you said, so i downloaded a new copy of the forum and got a new common.asp, and now i get this error:

Server.MapPath() error 'ASP 0174 : 80004005'

Invalid Path Character(s)

/forum/common.asp, line 193

An invalid '/' or '\' was found in the Path parameter for the MapPath method.


Legends Live Forever
Back to Top
michael View Drop Down
Senior Member
Senior Member
Avatar

Joined: 08 April 2002
Location: United States
Status: Offline
Points: 4670
Post Options Post Options   Thanks (0) Thanks(0)   Quote michael Quote  Post ReplyReply Direct Link To This Post Posted: 30 October 2003 at 8:09am
Naturally you get this error when you use Mappath and still use the same syntax as before being \\nas.....
You cannot put a UNC path into a mappath statement. Use a physical path instead.
Back to Top
DragonFist View Drop Down
Groupie
Groupie
Avatar

Joined: 22 June 2003
Location: Israel
Status: Offline
Points: 68
Post Options Post Options   Thanks (0) Thanks(0)   Quote DragonFist Quote  Post ReplyReply Direct Link To This Post Posted: 30 October 2003 at 8:32am

ok when i using the mappath and the physical both (i wrote my DB path in the physical and the mappath) i get this error as usual:

Server.MapPath() error 'ASP 0174 : 80004005'

Invalid Path Character(s)

/forum/common.asp, line 193

An invalid '/' or '\' was found in the Path parameter for the MapPath method.

when i use only the physical (i didnt write my DB path in the map path) i get this error:

Server.MapPath() error 'ASP 0171 : 80004005'

Missing Path

/forum/common.asp, line 193

The Path parameter must be specified for the MapPath method.

oh oh! and my DB path (the one i tried both in only physical, only map path, and both) is:

\\nas01ent\domains\d\CANTELLU.co.il\user\private\CANTELLU.md b

the "CANTELLU" is not real, just wrote it here so no one will my with my DB....

 



Edited by DragonFist

Legends Live Forever
Back to Top
WebWiz-Bruce View Drop Down
Admin Group
Admin Group
Avatar
Web Wiz Developer

Joined: 03 September 2001
Location: Bournemouth
Status: Offline
Points: 9844
Post Options Post Options   Thanks (0) Thanks(0)   Quote WebWiz-Bruce Quote  Post ReplyReply Direct Link To This Post Posted: 30 October 2003 at 9:18am
if you use the physical path you can not use the MapPath method.
Back to Top
DragonFist View Drop Down
Groupie
Groupie
Avatar

Joined: 22 June 2003
Location: Israel
Status: Offline
Points: 68
Post Options Post Options   Thanks (0) Thanks(0)   Quote DragonFist Quote  Post ReplyReply Direct Link To This Post Posted: 30 October 2003 at 12:16pm

No you dont understand me......

Using Physical ONLY Path

Example:

'Virtual path to database
strDbPathAndName = Server.MapPath("")  'This is the path of the database from this files location on the server

'Physical path to database
'strDbPathAndName = " \\nas01ent\domains\d\mydomain.co.il\user\private\CANTELLU.md b" 'Use this if you use the physical server path, eg:- C:\Inetpub\private\wwForum.mdb

Error:

Server.MapPath() error 'ASP 0171 : 80004005'

Missing Path

/forum/common.asp, line 193

The Path parameter must be specified for the MapPath method.

==========================================

Using Virtual MapPath ONLY

Example:

'Virtual path to database
strDbPathAndName = Server.MapPath(" \\nas01ent\domains\d\mydomain.co.il\user\private\CANTELLU.md b")  'This is the path of the database from this files location on the server

'Physical path to database
'strDbPathAndName = "" 'Use this if you use the physical server path, eg:- C:\Inetpub\private\wwForum.mdb

Error:

Server.MapPath() error 'ASP 0174 : 80004005'

Invalid Path Character(s)

/forum/common.asp, line 193

An invalid '/' or '\' was found in the Path parameter for the MapPath method.

==========================================

Using Both Virtual MapPath And Phisical Path

Example:

'Virtual path to database
strDbPathAndName = Server.MapPath(" \\nas01ent\domains\d\mydomain.co.il\user\private\CANTELLU.md b")  'This is the path of the database from this files location on the server

'Physical path to database
'strDbPathAndName = " \\nas01ent\domains\d\mydomain.co.il\user\private\CANTELLU.md b" 'Use this if you use the physical server path, eg:- C:\Inetpub\private\wwForum.mdb

Error:

Server.MapPath() error 'ASP 0174 : 80004005'

Invalid Path Character(s)

/forum/common.asp, line 193

An invalid '/' or '\' was found in the Path parameter for the MapPath method.

==========================================

You see i tried uploading common.asp with these 3 ways and always got errors!

what do i do?


Legends Live Forever
Back to Top
michael View Drop Down
Senior Member
Senior Member
Avatar

Joined: 08 April 2002
Location: United States
Status: Offline
Points: 4670
Post Options Post Options   Thanks (0) Thanks(0)   Quote michael Quote  Post ReplyReply Direct Link To This Post Posted: 30 October 2003 at 12:47pm
Sorry but I don't think you understand. If you use a mappath you CANNOT have a physical path statement in there. It should look something like:
strDbPathAndName = Server.MapPath(" ..\private\CANTELLU.md b")

If you choose a physical path make sure that you uncomment the physical path line and comment the mappath line.
Back to Top
DragonFist View Drop Down
Groupie
Groupie
Avatar

Joined: 22 June 2003
Location: Israel
Status: Offline
Points: 68
Post Options Post Options   Thanks (0) Thanks(0)   Quote DragonFist Quote  Post ReplyReply Direct Link To This Post Posted: 31 October 2003 at 1:51am

ohhhh, ok i tried to do what you said and i got this error AGAIN:

Server.MapPath() error 'ASP 0174 : 80004005'

Invalid Path Character(s)

/board/forum/common.asp, line 193

An invalid '/' or '\' was found in the Path parameter for the MapPath method.

i did like this:

'Virtual path to database
strDbPathAndName = Server.MapPath("..\private\CANTELLU.mdb")  'This is the path of the database from this files location on the server

'Physical path to database
'strDbPathAndName = "" 'Use this if you use the physical server path, eg:- C:\Inetpub\private\wwForum.mdb

plz if im missing something here tell me how it must be, im pretty much ASP newbie...sorry for being that stupid....



Edited by DragonFist

Legends Live Forever
Back to Top
 Post Reply Post Reply Page  <123>

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.08
Copyright ©2001-2026 Web Wiz Ltd.


Become a Fan on Facebook Follow us on X Connect with us on LinkedIn Web Wiz Blogs
About Web Wiz | Contact Web Wiz | Terms & Conditions | Cookies | Privacy Notice

Web Wiz is the trading name of Web Wiz Ltd. Company registration No. 05977755. Registered in England and Wales.
Registered office: Web Wiz Ltd, Unit 18, The Glenmore Centre, Fancy Road, Poole, Dorset, BH12 4FB, UK.

Prices exclude VAT at 20% unless otherwise stated. VAT No. GB988999105 - $, € prices shown as a guideline only.

Copyright ©2001-2026 Web Wiz Ltd. All rights reserved.