Hey everyone, I have a .net 4 application that i just deployed to production. The app loadas fine, except my referenced js files arent loading properly. Using fiddler I found that the ScriptResource.axd calls are returning 404 errors.
Heres the kicker, the page is also making a call via WebResource.axd, and that request works just fine.
Any ideas what I can check for? Were running IIS7. It is load balanced, but we have machinekeys in the config. I added an httpHandlers section for scriptresource.axd.. but Im still having the same issue.. stumped...
Update - we think ou websrver has no idea what an axd file is. Is there any install for .net that will install the axd mappings in iis?
For me, all AXD files were failing. After spending an entire week, trying every answer found on Internet, with no luck:
I created empty files
ScriptResource.axd
andWebResource.axd
, and it solved the issue. I would love to know what the real issue was.This worked for me:
Add the below handler to your web.config:
"404" could also mean (under certain conditions) a "Not enabled" or "not allowed". I had that some time back on a server and had to enable some extension.
Another way would be to use Process Monitor to see whether real files are being searched by the IIS process and not found.
Check that the time on the server is not set to before the time the site was published.
Solved it by adding