S
Steve R.
This is driving me nuts:
I've used this same exact setup (web.config, see below) before without
any problems... the authentication does not stop at the logon page AT
ALL. I've put breakpoints in it to be sure, plus, there's no code at
all in my Load event handler for the Logon page.
It seems to work as predicted if I try to access the app from a
workstation that I haven't tried to access from. I just tested one
more time and it worked 3 times in a row and I couldn't break it, but
on the dev server itself, it always falls right through without
stopping at all on logon.aspx and another workstation accessing the
app worked a few times and then began to fail.
I've got another app set up on the very same server where I have never
encountered that problem before. This is not the first time I've
implemented Forms Authentication.
I cannot figure out what gives here. Where should I start to look? The
web config setup was copied and pasted directly from the working app
to the app under development on the same dev server.
Any help would be very gratefully received.
Here's the relevant portions of my web.config:
<system.web>
<!-- enable Forms authentication -->
<authentication mode="Forms">
<forms name="AHDAuth" loginUrl="logon.aspx"
protection="All" path="/" />
</authentication>
<!-- enable custom errors for the application -->
<customErrors mode="Off">
</customErrors>
<sessionState mode="InProc" cookieless="false" />
<compilation defaultLanguage="vb" debug="true" />
</system.web>
<!-- set secure paths -->
<location path="Quote.aspx">
<system.web>
<authorization>
<deny users="?" />
</authorization>
</system.web>
</location>
<location path="SupplierInfoEdit.aspx">
<system.web>
<authorization>
<deny users="?" />
</authorization>
</system.web>
</location>
I've used this same exact setup (web.config, see below) before without
any problems... the authentication does not stop at the logon page AT
ALL. I've put breakpoints in it to be sure, plus, there's no code at
all in my Load event handler for the Logon page.
It seems to work as predicted if I try to access the app from a
workstation that I haven't tried to access from. I just tested one
more time and it worked 3 times in a row and I couldn't break it, but
on the dev server itself, it always falls right through without
stopping at all on logon.aspx and another workstation accessing the
app worked a few times and then began to fail.
I've got another app set up on the very same server where I have never
encountered that problem before. This is not the first time I've
implemented Forms Authentication.
I cannot figure out what gives here. Where should I start to look? The
web config setup was copied and pasted directly from the working app
to the app under development on the same dev server.
Any help would be very gratefully received.
Here's the relevant portions of my web.config:
<system.web>
<!-- enable Forms authentication -->
<authentication mode="Forms">
<forms name="AHDAuth" loginUrl="logon.aspx"
protection="All" path="/" />
</authentication>
<!-- enable custom errors for the application -->
<customErrors mode="Off">
</customErrors>
<sessionState mode="InProc" cookieless="false" />
<compilation defaultLanguage="vb" debug="true" />
</system.web>
<!-- set secure paths -->
<location path="Quote.aspx">
<system.web>
<authorization>
<deny users="?" />
</authorization>
</system.web>
</location>
<location path="SupplierInfoEdit.aspx">
<system.web>
<authorization>
<deny users="?" />
</authorization>
</system.web>
</location>