webforms - Forms Authentication and Web Form -


i have directory , want allow users logged into. there web page in root directory has several data , visitors can see them. web.config file:

<system.web>     <compilation debug="true"/>     <customerrors mode="off"/>   <authentication mode="forms">     <forms name=".artucltd" loginurl="loginpage.aspx"         protection="all" path="the_path" timeout="30"          cookieless="usedeviceprofile" />   </authentication>   <authorization>     <deny users ="?" />     <allow users="*"/>   </authorization> </system.web> 

this custom login controls username , password mssql 2008 database. works fine have problem is:

when want open default web page (http://localhost/test), system automatically redirect loginpage.aspx (not default.aspx). want see default.aspx , navigate other pages. loginpage.aspx in root folder not protected , want same. in protected folder, there default.aspx page , other protected pages. how can rid of redirection? should specify protected folder application , put web.config file?

processes tried up-to-now:

  • changed name of default.aspx page in protected folder

  • in iis, default page default.aspx

  • in visual studio 2010, set default page default.aspx in root folder.

but no luck!

well, found solution: http://support.microsoft.com/kb/316871


Comments

Popular posts from this blog

android - Spacing between the stars of a rating bar? -

html - Instapaper-like algorithm -

c# - How to execute a particular part of code asynchronously in a class -