Wrox Programmer Forums
|
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
 
Old December 18th, 2006, 06:14 PM
Imar's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

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
 
Old December 18th, 2006, 06:43 PM
Friend of Wrox
 
Join Date: Jan 2004
Posts: 1,870
Thanks: 12
Thanked 20 Times in 20 Posts
Send a message via AIM to mat41
Default

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
 
Old December 18th, 2006, 07:08 PM
Imar's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

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
 
Old December 18th, 2006, 07:20 PM
Friend of Wrox
 
Join Date: Jan 2004
Posts: 1,870
Thanks: 12
Thanked 20 Times in 20 Posts
Send a message via AIM to mat41
Default

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
 
Old December 19th, 2006, 01:41 PM
Imar's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

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.
 
Old December 19th, 2006, 04:39 PM
Friend of Wrox
 
Join Date: Jan 2004
Posts: 1,870
Thanks: 12
Thanked 20 Times in 20 Posts
Send a message via AIM to mat41
Default

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
 
Old December 19th, 2006, 05:15 PM
Imar's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

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





Similar Threads
Thread Thread Starter Forum Replies Last Post
How to find paths in visual C#? chobo2 C# 2008 aka C# 3.0 2 September 25th, 2008 11:12 PM
paths table FT BOOK: ASP.NET 2.0 Website Programming Problem Design Solution ISBN: 978-0-7645-8464-0 1 December 12th, 2006 11:50 AM
Filesystemobject and UNC paths dlfisher1972 Pro VB 6 0 January 5th, 2006 01:44 PM
Accessing parent control functions from child badgolfer VS.NET 2002/2003 2 January 9th, 2004 07:49 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.