My page is not redirecting to proper Login.aspx page
-
In my Web.config file,authentication mode is "Form" and login url is "Login.aspx" which is in root directory.when i am calling a page which is in sub directory,then my page should automatically redirect to "Login.aspx" for authentication.but my problem is that instead of redirecting the page to "login.aspx" in root directory it searches in the same sub directory hence it does not get a file. But when i am working offline ie on local PC,i don't get this problem.when i have uploaded this project on server i face this problem. Thank u.
coolsatty
-
In my Web.config file,authentication mode is "Form" and login url is "Login.aspx" which is in root directory.when i am calling a page which is in sub directory,then my page should automatically redirect to "Login.aspx" for authentication.but my problem is that instead of redirecting the page to "login.aspx" in root directory it searches in the same sub directory hence it does not get a file. But when i am working offline ie on local PC,i don't get this problem.when i have uploaded this project on server i face this problem. Thank u.
coolsatty
Have you the path attribute set in the web.config?
<forms name="ASPXAUTH" loginUrl="Logon.aspx" protection="All" timeout="30" path="/" />
It should default to the root path anyway but adding it in may solve your problem.
Declan Bright www.declanbright.com
-
Have you the path attribute set in the web.config?
<forms name="ASPXAUTH" loginUrl="Logon.aspx" protection="All" timeout="30" path="/" />
It should default to the root path anyway but adding it in may solve your problem.
Declan Bright www.declanbright.com
-
So what have you tried? Is the IIS setup unusual in any way? Not sure if this is valid but try a path of "~/" or just "~".
Declan Bright www.declanbright.com
-
So what have you tried? Is the IIS setup unusual in any way? Not sure if this is valid but try a path of "~/" or just "~".
Declan Bright www.declanbright.com
Even this is not working,check out the code i have written but everything is fine when i am running in my PC ie offline.when i upload in server i get this error.and server is handled by some third party.Thank you
coolsatty
modified on Friday, March 28, 2008 12:57 AM