I hope someone can help me. I have an asp.net website where all webforms use a single master page. All styling is done via .css elements. Everything styles correctly at first, then eventually blows up. The only thing that fixes this is to open web.config and edit out the Authorization entry, shown below:

<authorization>
<deny users="?" />
</authorization>

The next time I run the site, all styling is fixed. If I then un-remark the entry, styling continues to work for a while. It seems to blow up if I delete my browsing history, when I have to go through this routine again.

Anyone encounter this? Any ideas? Thanks!

Authorization prevent an access of .css an other resources. You may use location markup to override the settings,

....
 <location path="~/css1.css">
    <system.web>
      <authorization>
        <allow users="?"/>
      </authorization>
    </system.web>    
  </location>
 ....
Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.