问题描述
大家好,我有我刚刚部署到生产的.NET应用4。该应用程序loadas很好,除了我引用的JS文件的arent正确加载。使用招我发现的ScriptResource.axd调用返回404错误。
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.
继承人的踢球,页面也正在通过WebResource.axd的一个电话,该请求的作品就好。
Heres the kicker, the page is also making a call via WebResource.axd, and that request works just fine.
任何想法我可以检查?正在运行IIS7。这是负载平衡,但我们在配置MachineKeys的。我添加了一个的ScriptResource.axd部分HttpHandlers的..但是我仍然有同样的问题..难倒...
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...
更新 - 我们认为欧websrver不知道一个AXD文件是什么。有没有安装用于.NET,将在IIS安装AXD映射?
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?
推荐答案
404也可能意味着(在一定条件下)未激活或不允许。我有一些时间回的服务器上,不得不使一些扩展。
"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.
另一种方法是使用到真正的文件是否由IIS进程被搜查,没有找到。
Another way would be to use Process Monitor to see whether real files are being searched by the IIS process and not found.
这篇关于的ScriptResource.axd 404错误的ASP网4应用程序 - webresource工作正常,虽然的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!