all groups > dotnet security > july 2006 >
You're in the

dotnet security

group:

Form authentication and files that shouldn'y be authenticated


Re: Form authentication and files that shouldn'y be authenticated Dominick Baier
7/22/2006 12:00:00 AM
dotnet security:
use a location element to specify authorization settings for individual files/folders

<location path="myfile.aspx">
<system.web>
<authorization>
<allow users="*" />
/
/
/

[quoted text, click to view]

Form authentication and files that shouldn'y be authenticated MarjanRastegar
7/22/2006 1:09:01 AM
I'm using asp.net 1,C#.my application has a form authentication but there are
some aspx pages that all clients, include unauthenticated clients, should be
able to visit them. i can not use html pages because i need connecting to
Re: Form authentication and files that shouldn'y be authenticated MarjanRastegar
7/22/2006 4:27:02 AM
I used this tag but i got this error:
"Unable to start debugging on the Web ser";
Here is my code I don't know what is wrong with it?!

<authentication mode="Forms" >
<forms loginUrl="index.aspx">
</forms>
</authentication>
<location path="Unauthorized.aspx" />
<authorization>
<allow users="*" />
</authorization>
</location>




[quoted text, click to view]
Re: Form authentication and files that shouldn'y be authenticated Joe Kaplan (MVP - ADSI)
7/22/2006 2:55:30 PM
You didn't follow D.'s instruction. The location tag must include the
system.web element as well.

Joe K.

--
Joe Kaplan-MS MVP Directory Services Programming
Co-author of "The .NET Developer's Guide to Directory Services Programming"
http://www.directoryprogramming.net
--
[quoted text, click to view]

Re: Form authentication and files that shouldn'y be authenticated MarjanRastegar
7/22/2006 11:55:01 PM
No,I tested both location but for both of them I got an error.

[quoted text, click to view]
Re: Form authentication and files that shouldn'y be authenticated Dominick Baier
7/23/2006 12:00:00 AM
<system.web>

<authentication mode="Forms" >
<forms loginUrl="index.aspx">
</forms>
</authentication>

</system.web>

<location path="Unauthorized.aspx" />
<system.web>
<authorization>
<allow users="*" />
</authorization>
</system.web>
</location>




[quoted text, click to view]

AddThis Social Bookmark Button