Forms Authentication Default Document Not Redirecting. Please help I am going mad

Discussion in 'ASP.NET / ASP.NET Core' started by spartansoft, Sep 29, 2010.

  1. Hello all,

    This is driving me absolutely nuts and I have spent a day and a half on it tried misc configurations and googling the problem for hours.

    Using Forms Authentication on IIS7, Framework 4.0. Everything seems to be working fine when I go directly to home page or

    http://www.rewardroster.com/Default.aspx

    but if I go directly to :

    http://www.rewardroster.com

    the forms authentication redirects me to

    http://www.rewardroster.com/Login.aspx?ReturnUrl=/

    I removed forms Authentication and then the default document does work so its not an issue with the default document. I have tried multiple things here is how my current web.config looks:

    Code:
     <authentication mode="Forms">
            <forms name="appNameAuth" loginUrl="Login.aspx" protection="All" timeout="60" slidingExpiration="true" defaultUrl="Default.aspx" path="/">
            </forms>
    WITH
    Code:
    <location path="Default.aspx">
    		<system.web>
    			<authorization>
            <allow users="*"/>
            <allow users="?"/>
          </authorization>
    		</system.web>
    	</location>
    Does anyone have any ideas on this?? I would SINCERELY appreciate any clues. Thanks for your time
     
  2. Bruce

    Bruce DiscountASP.NET Staff

    i am a little confused..

    Do you or do you NOT want to use form authentication on your site?
     

Share This Page