Solved

Directory path problems on Win2K server

Posted on 2002-07-09
2
133 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 96

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

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 article will help to fix the below error for MS Exchange server 2010 I. Out Of office not working II. Certificate error "name on the security certificate is invalid or does not match the name of the site" III. Make Internal URLs and External…
If you're a developer or IT admin, you’re probably tasked with managing multiple websites, servers, applications, and levels of security on a daily basis. While this can be extremely time consuming, it can also be frustrating when systems aren't wor…
Add bar graphs to Access queries using Unicode block characters. Graphs appear on every record in the color you want. Give life to numbers. Hopes this gives you ideas on visualizing your data in new ways ~ Create a calculated field in a query: …

728 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