I am trying to host asp.net application in IIS7. I am using published version of application. when i run it all css and javascripts are not loading. the strange is when i run from visual studio it working fine.
error in browser console like this : Failed to load resource: the server responded with a status of 404 (Not Found)
I analyse the issue and come to know that css and js path is not correct. you can see in below image. it is http://localhost/css/bootstrap.css but it should be http://localhost/MICPA1/css/bootstrap.css
I have used bundle for css and js like MVC.
bundles.Add(new StyleBundle("~/bundles/commonStyle").Include(
"~/css/bootstrap.css",
"~/css/style.css",
"~/css/datepicker.css"
));
bundles.Add(new ScriptBundle("~/bundles/jquery").Include(
"~/Scripts/jquery.min.js"));
bundles.Add(new ScriptBundle("~/bundles/commonJquery").Include(
"~/Scripts/bootstrap.min.js",
"~/Scripts/script.js"));
I also tried simple link tag but it is also not working.


