?
Solved

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

Posted on 2009-04-16
15
Medium Priority
?
572 Views
Last Modified: 2013-12-14
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
Comment
Question by:ACSPalmdale
  • 9
  • 4
14 Comments
 
LVL 75

Accepted Solution

by:
Michel Plungjan earned 672 total points
ID: 24165708
0
 
LVL 22

Assisted Solution

by:cj_1969
cj_1969 earned 1328 total points
ID: 24167664
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
 

Author Comment

by:ACSPalmdale
ID: 24168193
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
What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

 

Author Comment

by:ACSPalmdale
ID: 24168275
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
 

Author Comment

by:ACSPalmdale
ID: 24169457
note:

even if i allow the ASP.NET extension, the scripts do not load, but the 404.2 error goes away
0
 
LVL 22

Expert Comment

by:cj_1969
ID: 24170270
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
 

Author Comment

by:ACSPalmdale
ID: 24170342
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
 
LVL 22

Expert Comment

by:cj_1969
ID: 24170471
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
 

Author Comment

by:ACSPalmdale
ID: 24171257
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
 

Author Comment

by:ACSPalmdale
ID: 24171678
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
 

Author Comment

by:ACSPalmdale
ID: 24185778
nd now strangely enuogh what was working on friday when we left, is now not working either on monday
0
 

Author Comment

by:ACSPalmdale
ID: 24186137
embedding the code into the page works, but still doesnt exaplin why IIS cant find files that are absolutely the correct paths
0
 

Author Comment

by:ACSPalmdale
ID: 24330121
this is still unresolved
0
 
LVL 22

Assisted Solution

by:cj_1969
cj_1969 earned 1328 total points
ID: 24335361
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

Featured Post

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

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

Make the most of your online learning experience.
If you try to migrate from Elastix to Issabel, you will face a lot of issues. These problems are inevitable but fortunately, you can fix them. In the guide below, I will explain how I performed the migration while keeping all data and successfully t…
After creating this article (http://www.experts-exchange.com/articles/23699/Setup-Mikrotik-routers-with-OSPF.html), I decided to make a video (no audio) to show you how to configure the routers and run some trace routes and pings between the 7 sites…
Internet Business Fax to Email Made Easy - With  eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, f…

609 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