When I am trying to deploy an ASP App to IIS, I'm having some serious problems with the scripts and styles.
what i am doing is: first I'm publishing my app using visual studio and then on IIS I'm clicking on a website then deploy and then import an application
The site is working as expected and I am able to access it using the port and URL specified, but I'm losing my css, javascript and jQuery.
some facts:
I am setting debug to false in my Web.config :
<compilation debug="false" targetFramework="4.0" />
I installed Microsoft ASP.NET Web Optimization from NuGet to my app
when using firebug or chrome canary to inspect whats happening I can see my links like the following: href="/Content/css/bootstrap.min.css" etc ... when I change it to href=" Content/css/bootstrap.min.css"
i.e just changing "/Content" to "Content" makes everything works as expected
any thoughts ? !