Thanx alot.. I have searched alot to solve this...
I was trying to put files in a public folder by add web.config to the public
folder but this generate exception even if i excluded it from the project i
must delete it to work..
Is the web.config only one file for all my application so i can have only
one file in my solution??
"jongalloway" <jo*********@gmail.com> wrote in message
news:11**********************@f14g2000cwb.googlegr oups.com...
You can exclude specific files from forms auth with a location node in
web.config:
<location path="404.aspx">
<system.web>
<authorization>
<allow users="*" />
</authorization>
</system.web>
</location>
<location path="welcome.aspx">
<system.web>
<authorization>
<allow users="*" />
</authorization>
</system.web>
</location>
It's often easier to just group the pages that don't require auth into
a public folder and allow access to the whole folder at once:
<location path="public/">
<system.web>
<authorization>
<allow users="*" />
</authorization>
</system.web>
</location>
More here:
http://msdn.microsoft.com/library/de...ionelement.asp
- Jon
http://weblogs.asp.net/jgalloway