asp.net mvc 2 - Allow anonymous access to Content and Script folder -


i building asp.net mvc 2 website uses forms authentication. want allow unauthenticated users access scripts , content folders, stylesheets , images load. however, not work. found on google, should work:

<location allowoverride="false" path="content">     <system.web>       <authorization>         <allow users="?" />       </authorization>     </system.web>   </location>   <location allowoverride="false" path="scripts">     <system.web>       <authorization>         <allow users="?" />       </authorization>     </system.web>   </location> 

it not work in asp.net mvc 2 on iis (win7). stylesheet , javascript requests redirected account/logon. how fix this?

update: anonymous authentication enabled in iis. forms authentication.

don't use authorization tags in web.config. use authorization attribute in controllers (or actions).


Comments

Popular posts from this blog

Cursor error with postgresql, pgpool and php -

delphi - ESC/P programming! -

c++ - error: use of deleted function -