某些Javascript + CSS +图像返回500 Internal Server Error [英] Some Javascript + CSS + Images returns 500 Internal Server Error
问题描述
我已经搜索了所有网络,但是找不到类似的问题.
I already search all the web but can't find any problem similar.
注意:以下问题仅在生产中出现.
在我的mvc网站中,如果我多次重新加载任何页面,css,javascript文件和图像将开始显示"500-Internal Server Error".
In my mvc website if i reload any page multiple times, css, javascript files and images begin to give "500 - Internal Server Error".
并非所有文件都如此.出现此错误的一些文件是:fontawesome.min.css和chartnew.js.
It doesn't happen with all the files. Some of the files that are giving the error are: fontawesome.min.css and chartnew.js.
如果我直接调用文件,它们将起作用,但是如果我重新加载,它们将开始显示 asp默认错误页面"500-内部服务器错误",没有任何其他详细信息(已经尝试了没有自定义错误,并使用了详细的错误视图).
If i call the files directly they work, but if i reload they begin to give the asp default error page "500 - Internal Server Error" without any other details (Already tried without custom errors and using detailed error view).
有什么想法吗?
谢谢.
推荐答案
已解决在Webconfig上将其删除的问题:
Resolved removing this at the webconfig:
<urlCompression doDynamicCompression="true" doStaticCompressions="True" dynamicCompressionBeforeCache="true" />
这篇关于某些Javascript + CSS +图像返回500 Internal Server Error的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!