views:

39

answers:

1

Hi, All ;)

I am experiencing problems with Forms Authentication. When I try to load my Login.aspx page neither javascript nor stylesheets do not load. Here is part of my web.config file

        <authentication mode="Forms">
        <forms loginUrl="Login.aspx"
               timeout="30"
               name=".ASPXAUTH"
               path="/"
               requireSSL="false"
               slidingExpiration="true"
               defaultUrl="Main.aspx"
               cookieless="UseDeviceProfile" />
    </authentication>

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

Help me, please, to understand what's happening.

+1  A: 

You need to add exceptions to those directories or files in your web.config

<location path="css">
<system.web>
<authorization>
<allow users="*"/>
</authorization>
</system.web>
</location>
jon3laze
Duplicate of this http://stackoverflow.com/questions/55594/css-not-being-applied-on-non-authenticated-asp-net-page
jon3laze
It works. Thanks a lot :)
Tror