Solved

Directory path problems on Win2K server

Posted on 2002-07-09
2
129 Views
Last Modified: 2010-04-13
I'm hoping someone will be able to help solve some problems I'm having with a move of a web site from one server (running IIS 4) to another running IIS 5 on W2k.

The problem is that I can no longer call style sheets or javascript files from my webroot/scripts folder.

In root directory files, the previous code that worked was..
<link rel="stylesheet" href="scripts/main.css">
<script src="scripts/toolbox.js" type="text/javascript"></script>

This no longer works on the new server.  

Is there some setting/config on the scripts folder that has not been set?

Thanks,

Bruce
0
Comment
Question by:Malus
2 Comments
 
LVL 95

Accepted Solution

by:
Lee W, MVP earned 400 total points
ID: 7142393
try going back one directory - for example:


<link rel="stylesheet" href="../scripts/main.css">
<script src="../scripts/toolbox.js" type="text/javascript"></script>

Either that or check your IIS config - you might have created a virtual directory to your scripts directory under NT 4 and failed to recreate it on the new IIS 5 web server.

The tree structure of IIS inetpub is generally:

inetpub
   ftproot
   wwwroot
   scripts
   nntproot
   mailroot
   (etc)

And by default wwwroot is the root web.  So if you are referencing "scripts/toolbox.js" you are really referencing "inetpub/wwwroot/scripts/toolbox.js" only that doesn't exist because scripts lives in "inetpub/scripts"

See what I mean?

In IIS manager you can create a virtual directory so that the folder "scripts" appears to be (according to IIS) in wwwroot and then you'd be ok.  Either that or create a scripts folder and copy the contents (but that gets messy)





0
 
LVL 2

Expert Comment

by:Chicko
ID: 7142908
I just searched by 2k box for the files you were looking for, and they are not there. Not there at all, not on the hdd.

Are the files installed as part of the frontpage server extentions?

Try opening the web again using a program like that and it may install the required files to the new web.

I know in NT i have had to fix the server extentions a few times, however I haven't tried in 2k.

hope this helps, reagrds Chicko
0

Featured Post

Best Practices: Disaster Recovery Testing

Besides backup, any IT division should have a disaster recovery plan. You will find a few tips below relating to the development of such a plan and to what issues one should pay special attention in the course of backup planning.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Visual C++ Runtime Error on Windows 2000 Server 2 1,484
Images sometimes not printed 6 477
VMware converter for windows 2000 server SP4 4 5,971
Can’t delete a file 14 139
In the hope of saving someone else's sanity... About a year ago we bought a Cisco 1921 router with two ADSL/VDSL EHWIC cards to load balance local network traffic over the two broadband lines we have, but we couldn't get the routing to work consi…
NTFS file system has been developed by Microsoft that is widely used by Windows NT operating system and its advanced versions. It is the mostly used over FAT file system as it provides superior features like reliability, security, storage, efficienc…
This Micro Tutorial will give you a basic overview how to record your screen with Microsoft Expression Encoder. This program is still free and open for the public to download. This will be demonstrated using Microsoft Expression Encoder 4.
Hi friends,  in this video  I'll show you how new windows 10 user can learn the using of windows 10. Thank you.

910 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now