CSS, Images, JS not loading in IIS

Imran Rashid picture Imran Rashid · May 9, 2012 · Viewed 170k times · Source

My all applications were working fine but suddenly all sites under IIS are not loading css, images, scripts. It redirect to login page.

If i login it works fine. e.g. mysite.com/Account/LogOn?ReturnUrl=%2fpublic%2fimages%2ficons%2f41.png

On my local machine it works fine without login.

Answer

Matt Kocaj picture Matt Kocaj · Feb 12, 2014

The problem may be that IIS is not serving Static Content, which you can set up here: enter image description here

Source: http://adilmughal.com/blog/2011/11/iis-7-not-loading-css-and-image/

Windows 10:

windows 10 version of the above dialog