Showing 404 status for JavaScript file path in master page of asp.net -


i giving javascript file path in master page of asp.net in browser console showing error of status 404 in javascript path i.e. in short browser not getting path of javascript file.

here code

<script async="" src="index/analytics.js.download"></script>     <script type="text/javascript" src="index/modernizr.js.download"></script>     <script type="text/javascript" src="index/jquery-1.10.1.min.js.download"></script>     <script type="text/javascript" src="index/jquery.dlmenu.js.download"></script>     <script type="text/javascript" src="index/waypoints.min.js.download"></script>      <script type="text/javascript" src="index/jquery.counterup.min.js.download"></script>      <script type="text/javascript" src="index/owl.carousel.js.download"></script>      <script type="text/javascript" src="index/viewportchecker.js.download"></script>     <script type="text/javascript" src="index/bootstrap.min.js.download"></script>     <script type="text/javascript" src="index/transit.js.download"></script>     <script type="text/javascript" src="index/jquery.simpleslider.js.download"></script>     <script type="text/javascript" src="index/backstretch.js.download"></script>     <script type="text/javascript" src="index/custom.js.download"></script>     <script type="text/javascript" src="index/jquery.flexisel.js.download"></script>     <script type="text/javascript" src="index/classie.js.download"></script> 

now, javascript file path correct confused why browser console showing type of error status:

404 javascript file not found.

first of, double check js path correct

if sure correct, use relative path root of site adding ~/ - otherwise relative current page may have caused problem

for example:
<script async="" src="index/analytics.js.download"></script>
becomes
<script async="" src="~/index/analytics.js.download"></script>

if above 2 step still not solve problem, please show exact url console not finding , actual local path of file


Comments

Popular posts from this blog

node.js - Node js - Trying to send POST request, but it is not loading javascript content -

javascript - Replicate keyboard event with html button -

javascript - Web audio api 5.1 surround example not working in firefox -