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?
I ran into this problem. The above solutions didn't work for me, but what did work was a comment from this page:
I solved it by copying the web.config file to the root folder of the website.
Two possible solutions from http://blogs.msdn.com/b/carloc/archive/2008/12/04/webresource-axd-or-scriptresource-axd-not-working.aspx:
Link also has good WebResource.axd background info even if it doesn't directly solve your problem. My problem WebResource.axd 404 problem unfortunately occurs only when Fiddler is running (!), but that is a separate question than the one posted.
Enjoy! -Zephan
This can be resolved in two ways. One is to set IIS7 application pool setting Manage Pipeline Mode to Classic when using the HttpHandlers setting. If IIS7 and/or IIS7 Express must use Integrated instead of Classic, then we need to use the system.webServer.handlers settings with the precondition attribute set to integrated mode.
This is a common problem when moving some older web apps to cloud hosted environments. For more details see this article:
http://www.ozkary.com/2015/12/404-error-axd-http-handler.html
Hope it helps.
I had the same issue today, but it was caused by a rewrite rule that was rewriting the request from
/ScriptResource.axd' to
/some_application/ScriptResource.axd', which wasn't a valid target. Correcting the rule to ignore urls with.axd
resolved the issue.Looks like handlers needed to be added to system.webserver, per this blog: http://geekswithblogs.net/lorint/archive/2007/03/28/110161.aspx
Thanks for the assistance @Uwe Keim
For me the issue was my server was set to the wrong time. It's date was set to 6/12/2012 instead of 6/21/2013. Fixed the date and poof! it started working :)