Re: RedirectFromLoginPage never returns to original page
From: Steven Cheng[MSFT] (v-schang_at_online.microsoft.com)
Date: 02/18/05
- Next message: Anna: "Re: formatting data with a one to many relationship using asp.net server controls"
- Previous message: Erik Cruz: "Server too busy error"
- In reply to: Edward Mitchell: "Re: RedirectFromLoginPage never returns to original page"
- Next in thread: Edward Mitchell: "Re: RedirectFromLoginPage never returns to original page"
- Reply: Edward Mitchell: "Re: RedirectFromLoginPage never returns to original page"
- Messages sorted by: [ date ] [ thread ]
Date: Fri, 18 Feb 2005 03:02:08 GMT
Hi Edward,
The problem you encountered is actual caused by some combined factors. here
is some of my suggestions:
1. Each ASP.NET Web application is hosted in an IIS folder which configured
as Application. So if you make your subfolder as Application, that
subfolder become a separate application from its parent virutal dir's
application. I don't think this is what you want, so you need to remove the
"Applciation" in the subfolder.
2. The <authentication> element is per-application based ,so each
application can have only one <authentication> element in the main
web.config. However, we can have multiple
<authorization> element to define different protection rules for different
paths in our web application. So currently you have two options to resolve
your problem:
1) Still use a sub web.config in your sub dir(must remove that subdir as
Application), and also remove the <authentication> element in it, just put
your <authorization> setting in sub dir's web.config.
2)Use the <location> element in your main web.config to specify different
<authorization> settings for different paths:
#Hierarchical Configuration Architecture
http://msdn.microsoft.com/library/en-us/cpguide/html/cpconhierarchicalconfig
urationarchitecture.asp?frame=true
If anything unclear, please feel free to post here.
Thanks & Regards,
Steven Cheng
Microsoft Online Support
Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)
- Next message: Anna: "Re: formatting data with a one to many relationship using asp.net server controls"
- Previous message: Erik Cruz: "Server too busy error"
- In reply to: Edward Mitchell: "Re: RedirectFromLoginPage never returns to original page"
- Next in thread: Edward Mitchell: "Re: RedirectFromLoginPage never returns to original page"
- Reply: Edward Mitchell: "Re: RedirectFromLoginPage never returns to original page"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|