网站上传到服务器打开之后,发现格式混乱, 有的图片显示不了。使用 firebug或者google developer 发现错误代码500
reason: 服务器把 image .css , js 当成asp.net 脚本执行了。 根源是你自己在网站的web.config里面有不合理的设置, 或者一些URL rewrite rule , routing 等导致的问题。
如何测试:
1> rename your web.config file ;
2>Browser to your .js/image URL to see if the error gone;
3> undo the web.config rename;
4> Issue come again.
Solution : 一般将 web.config 重命名之后, 网站开始load。当然, 你需要联系你网站开发人员修改web.config。