I have seen several of these topics on numerous sites and I am still having an issue. I have added this to the bottom of my web.config right before the </configuaration>
<location path="Form.css">
<system.web>
<authorization>
<allow users="*"/>
</authorization>
</system.web>
</location>
Yet my css is still not loading for all users.
Here is the forms part of my web.config
<authentication mode="Forms">
<forms name ="WebApp.ASPXAUTH"
loginUrl="login.aspx"
protection="All"
path ="/"/>
</authentication>
<authorization>
<allow users ="*"/>
</authorization>
Is there something else I am missing?
I put inside the css folder a webconfig with that code:
<?xml version="1.0"?>
<configuration>
<system.web>
<authorization>
<allow users="*"/>
</authorization>
</system.web>
</configuration>
Sucess! :)
Put your CSS in a non-protected folder and this should work for you.
<link rel="stylesheet" src="path of the stylesheet" type="text/css">
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With