Ask a Question related to ASP.NET Security, Design and Development.
-
Yunus Emre ALPÖZEN [MCAD.NET] #1
Re: Url Issue
If i clearly understand your question, your question is about security
rights...
Web.Config's authorization section is interpreted line by line...
Look at this line
<authorization>
<allow roles="ADMIN"></allow>
<allow users="*"/>
<deny users="?"/>
</authorization>
Just reorder allow/deny tags like following:
<authorization>
<deny users="?"/>
<allow roles="ADMIN"></allow>
</authorization>
--
Thanks,
Yunus Emre ALPÖZEN
BSc, MCAD.NET
"Niyaz via .NET 247" <anonymous@dotnet247.com> wrote in message
news:unVz9oUWFHA.3676@TK2MSFTNGP10.phx.gbl...
I am having an issue, I don't know whether it is my machine or the setting
of my project.
I am using form authentication and following is a piece of my web.config
file.
<location path="Protected">
<system.web>
<authorization>
<deny users="?"/>
</authorization>
</system.web>
</location>
<location path="Protected/Admin">
<system.web>
<authorization>
<allow roles="ADMIN"></allow>
<allow users="*"/>
<deny users="?"/>
</authorization>
</system.web>
</location>
When I login, it bring up a ~/Protected/Main.aspx page. On Main.aspx, I have
button which Response.Redirects to ~/Protected/Admin/UserList.aspx page.
When I click the button for UserList.aspx, it redirect the page to
UserList.aspx page but the URL remains ~/Protected/Main.aspx, also the code
behind is of Main.aspx. This is causing lots of confusion and issue. I have
given all the rights to wwwroot and to Proctected/Admin.
Any Help in would be highly appreciated. There is no help on this issue, I
am searhing for last 4 days on this issue. Please help.
Thanks,
Niyaz.
-----------------------
Posted by a user from .NET 247 ([url]http://www.dotnet247.com/[/url])
<Id>fnYFJRyxnUG04I9GW85ZWw==</Id>
Yunus Emre ALPÖZEN [MCAD.NET] Guest
-
XML Issue
I recently created a flash animation that calls the dynamic text from a XML file. The movie works when I use flash player, however when it is... -
FRS issue
I have started having replication problems and know the reason I just have no choice in the matter. Management has insisted on running ZA... -
non-php issue
hi everyone, could someone recommend a security mailing list, please? or you may like to answer my question below: i'm currently using... -
4GL V7.32 issue
OK, testing i4GL V7.32 on HP-UX 11i, IDS9.40. The following code is coredumping: (this is a cut down version of a bigger file, to the point where... -
IIS 5.1 and ASP.net issue
I'd suggest posting to a DotNet group...this one is for ASP (classic asp, not ASPX) :} --...



Reply With Quote

