开发者

IIS can't find JavaScript and CSS files

I've been working on this for a while and was wondering if anyone has run into the issue of error 404 on IIS. More specifically, when I type in http://localhost/test/test.aspx, the page runs, but the referenced files (JS and CSS) are not being used.开发者_C百科

Does anyone have an idea on what this could be? keep in mind that I'm new to IIS (6.0).

Thanks!


Simple, the path you are using to link in your style sheet and javascript files is incorrect. Are you using "~" to link in? Try using an absolute path to the files first. Also does this happen in firefox as well as IE?


Are all your needed files present in your VS project explorer? If not they won't be included when you publish your project. Just copying them to your project's folder isn't good enough you have to include them in your project as well.


you need to set compilation debug="false" in your web.config to use Jquery & css bundling regardless if .NET is running 4.0 or 4.5.

compilation debug="false" targetFramework="4.0"

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜