My index.html
file from MVC application contains below code. All files get loaded into browser but no files from Views folder get loaded.
Index.html
file, Scripts & Views folders are located at root location.
<body>
<div ng-view></div>
<script src="Scripts/jquery-1.9.1.min.js"></script>
<script src="Scripts/angular.min.js"></script>
<script src="Scripts/angular-route.min.js"></script>
<script src="Scripts/app.js"></script>
<script src="Views/Authentication/Services.js"></script> -- Error here
<script src="Views/Authentication/AuthenticationController.js"></script> -- Error here
</body>
Folder structure
I get below error message when I checked it from chrome devtool.
http://localhost:58348/Views/Authentication/AuthenticationController.js
404 (Not Found)
Even I added js/html
handler into web.config but still facing the same issue.
<add name="JavaScriptHandler" path="*.js" verb="*" preCondition="integratedMode"
type="System.Web.StaticFileHandler" />
<add name="HtmlScriptHandler" path="*.html" verb="*" preCondition="integratedMode"
type="System.Web.StaticFileHandler" />