In VS 2012 my project is running fine. But when I hosted it local IIS it does not find the css and js file. In my project files are linked like
<link href="~/CSS/layout.css" rel="stylesheet" type="text/css" />
<link href="~/CSS/color.css" rel="stylesheet" type="text/css" />
and after hosting I get like
<link href="/ApplicationTemplate/CSS/color.css " rel="stylesheet" type="text/css" />
<link href="/ApplicationTemplate/CSS/bootstrap.css " rel="stylesheet" type="text/css"/>
I also tried to solve the problem to put css in @Url.Content() and scripts in @Scripts.Render(). But it did not work for me. Then somebody told me to change the published web config . But also did not work.