views:

67

answers:

3

Hi,

I've been working on this for a while and was wondering if anyone has run into the issue of error 404 on IIS. More specifically, when I type in http://localhost/test/test.aspx, the page runs, but the referenced files (JS and CSS) are not being used.

Does anyone have an idea on what this could be? keep in mind that I'm new to IIS (6.0).

Thanks!

A: 

I am not sure why, but I had the same issue. I solved it quick & dirty by copying all files in the 404 folder. After all, it is only a 404 page ;)

RegExGuru
A: 

Are all your needed files present in your VS project explorer? If not they won't be included when you publish your project. Just copying them to your project's folder isn't good enough you have to include them in your project as well.

Jeroen
A: 

Simple, the path you are using to link in your style sheet and javascript files is incorrect. Are you using "~" to link in? Try using an absolute path to the files first. Also does this happen in firefox as well as IE?

subt13
do you know the reason why it doesn't actually work by shorthand?
cfarm54
Yes. In order for the ~ (tilda) to be evaluated, it must be a server control. If you want to use tilda you would have to add the runat="server" to the script tag. Only ASP.NET knows what the ~ (tilda) is.
subt13
okay I'll take a look
cfarm54