ASP.NET: No CSS applied to the web page.

If you ever experienced that your CSS is not working AT ALL on your web page, then you need to keep reading this article. It is as if your web page is from the stone age, no style or anything fancy, just text, black and white. All your CSS is not working. The ASP.NET is executing fine though, so what is wrong?

You don’t have to do anything like changing your .aspx files, .css files, or clear your browser’s history. That is not the problem. It is just security problem which prevent access to CSS files. The solution is:

  1. Open you IIS.
  2. Click the node of your web’s virtual directory.
  3. Click on “Edit Permissions…”
  4. Add “Everyone” to the list.
  5. Voila! Hit F5 on your browser and celebrate.

Leave a comment

Tony Wijaya

My programming tips