• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 574
  • Last Modified:

javascript 404.2 file not found error, when the files are in correct locations

im getting alot of 404.2 file not found errors related to all javascripts on a site.

yet all files are in the correct locations and paths

please advise
0
ACSPalmdale
Asked:
ACSPalmdale
  • 9
  • 4
3 Solutions
 
Michel PlungjanIT ExpertCommented:
0
 
cj_1969Commented:
Can you access the files directly?
Does this happen all the time or is it intermittent?
Do some pages work, just not all or does this error occur on all pages?
We need to narrow down the scope of the problem.
0
 
ACSPalmdaleAuthor Commented:
cj
if i try to direct access by url i get the same 404
it is constant, and affects ALL js files on the site in different folders or locations
0
Network Scalability - Handle Complex Environments

Monitor your entire network from a single platform. Free 30 Day Trial Now!

 
ACSPalmdaleAuthor Commented:
mplungjan
the paths do match.  and the issues isnt with asp pages, but .js files on the site.  the asp pages load and run fine, but .js scripts referenced by them do not
0
 
ACSPalmdaleAuthor Commented:
note:

even if i allow the ASP.NET extension, the scripts do not load, but the 404.2 error goes away
0
 
cj_1969Commented:
Try accessing the js files directly while on the console or RDPd into the server.
If all the js files on the site are having problems I am wondering if js files have been blocked on the server.
I am hoping that if you test the access while on the server you would get a message on the desktop telling you that the file is blocked.
0
 
ACSPalmdaleAuthor Commented:
i can acces the file though every method ive tried.  i can even edit the file if i choose.  

we did a traffic capture in wrieshark and it looks like the get is acknowledged, then the sessions just terminates without serving the file
0
 
cj_1969Commented:
Sorry, I meant access it through the browser.
Try a direct connection to the js file ... i.e.  http://server/directory/file.js
If you can load the file this way then there is some problem that completely baffles me.
If you get an error doing this then the IIS or the OS is blocking the files and not allowing them to be accessed and display.  Since you have confirmed that you can open the actual files then this would imply that IIS is some how blocking the file.  In which case, check your mime type for .js files ... there might be something odd about the mime type that is keeping them from being served up by IIS.
0
 
ACSPalmdaleAuthor Commented:
sorry cj, misunderstood.  i have tried to access the file in that manner by url and it does not work

what should the IIS js mime type be ?  there is one at the root IIS server that is application/javascript
0
 
ACSPalmdaleAuthor Commented:
also

copied the entire site to a new folder on the same server .. created a new site assigned it a new port other than 80, and it works.
i can find no difference betwee nthe settings ofthe sites or the permissions on them
0
 
ACSPalmdaleAuthor Commented:
nd now strangely enuogh what was working on friday when we left, is now not working either on monday
0
 
ACSPalmdaleAuthor Commented:
embedding the code into the page works, but still doesnt exaplin why IIS cant find files that are absolutely the correct paths
0
 
ACSPalmdaleAuthor Commented:
this is still unresolved
0
 
cj_1969Commented:
If this was working on Friday and then was broken when you came in on Monday and never resolved itself this leads me to believe that there is an IIS policy that is being pushed by AD restricting access to .js files.
Since creating the new site worked then this indicates that the policy is not OS based and a global restriction on these files.  This makes me think that it is something along the lines of the IIS lockdown tool that is restricting file types per web instance.


Chekc out this section of the following page ... "Troubleshoot problems after you run the IIS Lockdown Wizard" ... http://support.microsoft.com/kb/325864

Here are the instruction on configuring the URLScan ... http://support.microsoft.com/kb/326444

0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Cloud Class® Course: C++ 11 Fundamentals

This course will introduce you to C++ 11 and teach you about syntax fundamentals.

  • 9
  • 4
Tackle projects and never again get stuck behind a technical roadblock.
Join Now