Click here to Skip to main content
16,017,241 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi All,

I am developing Web Application. So i use master page for each web page. i also use stylesheet in App_Theme folder.

when i don't use Form Authorization our web page is ok. but if i add form authorization in web config, the web page can be shown <b>without pictures and style sheet.</b>

i add like this in Web.config

<authentication>
<loginurl />
</authentication>

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


How come? i don't know please help me
Posted
Updated 28-Nov-11 21:56pm
v2

1 solution

Just try:
XML
<authentication>
      <loginurl />
</authentication>
<authorization>
      <allow users="*" />
</authorization>


If possible for you then give Authorization path wise, like:
XML
<location path="Images">
        <system.web>
            <authorization>
                <allow users="*"/>
            </authorization>
        </system.web>
    </location>



For details on Authorization, refer:
HOW TO: Control Authorization Permissions in an ASP.NET Application[^]
Form authentication and authorization in ASP.NET[^]
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900