I am trying to access the scripts which are placed within the folder scripts created within Areas.
But whenever i am trying to run the View, i am getting an error 404 saying the file was not found.
<script src="/Areas/TestAreas/Scripts/AutoPostBack.js" type="text/javascript"></script>
You should include a
~prefix when building the url to your file.When razor sees
~/It knows it has to get the file from the app root, So it will look for the remaining part(Areas/TestAreas/Scripts/AutoPostBack.js) from the app root .This should work