I have an ASP.Net MVC application with Entity Framework. Website is hosted on IIS. When I open website in browser and following line is written in web.config then I start getting all sorts of JavaScript errors. It is using many libraries like jquery, datatables, date controls etc. and start getting random JavaScript errors and date controls don't work. I can see those errors when I press F12 in brower.
<compilation targetFramework="4.5" />
But when I change the above line to following, then everything works fine.
<compilation debug="true" targetFramework="4.5" />
What is going on here?