 |
| Classic ASP Professional For advanced coder questions in ASP 3. NOT for ASP.NET 1.0, 1.1, or 2.0. |
Welcome to the p2p.wrox.com Forums.
You are currently viewing the Classic ASP Professional section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
|
|
|
|

December 18th, 2006, 06:14 PM
|
 |
Wrox Author
|
|
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
|
|
Hi Matt,
Have you set up the site as a virtual directory on your local machine? That is, do you browse to it as something like http://localhost/YourApp/ or as http://localhost?
In the latter case, I don't know why it works. In the former case, it makes sense as /Scripts is being searched in the actual root of http://localhost/. In that case, you could map a virtual folder as http://localhost/Scripts and have it use the Scripts folder in your YourApp site.
HtH,
Imar
|
|

December 18th, 2006, 06:43 PM
|
|
Friend of Wrox
|
|
Join Date: Jan 2004
Posts: 1,870
Thanks: 12
Thanked 20 Times in 20 Posts
|
|
I have the c:inetpub......../newAge [inside newAge is the sites root level] as a virtual directory and browse to it as:
http://localhost/newAge/
Are you suggesting I also make the newAge/scripts dir one also? Have just tryed that without succcess. Do I need to undo newAge as a VD to make it work?
TYIA
Wind is your friend
Matt
|
|

December 18th, 2006, 07:08 PM
|
 |
Wrox Author
|
|
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
|
|
No, I am suggesting to reuse the Scripts folder from /newAge/ as a VD under lovalhost.
E.g. setup a VD that points to your Scripts folder (wherever it's located) and call it Scripts. That the folder exists as http://localhost/Scripts.
So, when you then refer to /Scripts inside http://localhost/newAge/ you end up with http://localhost/Scripts, which in turn maps to the physical Scripts folder of the newAge website.
HtH,
Imar
|
|

December 18th, 2006, 07:20 PM
|
|
Friend of Wrox
|
|
Join Date: Jan 2004
Posts: 1,870
Thanks: 12
Thanked 20 Times in 20 Posts
|
|
ahhh I see, that works. I have learnt something very useful today, thanking you Imar...
An observation : It would certainley make the folder tree under the default web site in IIS look odd if this had to be done for all my sites. If so, all my sites have a scripts folder, is it a silly question to ask if there would be a name conflict?
TYIA
Wind is your friend
Matt
|
|

December 19th, 2006, 01:41 PM
|
 |
Wrox Author
|
|
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
|
|
It depends.
If all your sites use the *same physical* Scripts folder, then there's no problem. They all pick up /Scripts from the root of your server.
If they're different, you'd need to change the physical path of /Scripts for every site you're working on.
It's probably better to always develop your site with the root in mind. E.g. browse to the site as http://localhost instead of http://localhost/YourApp. Google for a tool called IIS Admin that allows you to more than one website on your system (although only one can be active at any time).
Hope this helps,
Imar
---------------------------------------
Imar Spaanjaars
Everyone is unique, except for me.
|
|

December 19th, 2006, 04:39 PM
|
|
Friend of Wrox
|
|
Join Date: Jan 2004
Posts: 1,870
Thanks: 12
Thanked 20 Times in 20 Posts
|
|
mmmmm, I see. This is the first instance of me not having admin access to the intended live server therefore literally the first time I have had to use the include virtual syntax. Thank you for clearing what became foggy air, as always your assistance continues to exceed all expectations.
I will be shutting down COB tommorow until after NY. You have a fine Christmas and a great NY Imar.
Wind is your friend
Matt
|
|

December 19th, 2006, 05:15 PM
|
 |
Wrox Author
|
|
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
|
|
Quote:
|
quote:Thank you for clearing what became foggy air
|
You're welcome.
Quote:
|
quote:You have a fine Christmas and a great NY Imar.
|
Thank you. You too and see you next year.
Imar
|
|
 |