<system.web>
<!-- Custom errors -->
<customErrors mode="On" defaultRedirect="error.aspx" />
<!-- Debug -->
<compilation defaultLanguage="vb" debug="true" />
<!-- Authentication mode -->
<authentication mode="Forms">
<forms name=".DGB" protection="All" timeout="60" />
</authentication>
</system.web>
The problem I'm having, is that when there is an error, I would like the user to be redirected. Instead, I get the message telling me to set my customErrors = "on", blah, blah, blah...which is the way it currently is.
Now the weird thing about this is that if I take out the authentication section...it works. Any ideas as to what I'm doing wrong here?
Thanks.what do you mean to take out the authentication section?
did you configure only one web.config file and put it at app root
I mean that when I take out the forms authentication section of the web config, it works as planned.
I have multiple web.configs. One at the root level of the site...and several others in created directories.
Combining several folder-level authentication sometimes may crash your app if you forget what you have configured - as you said in some places it worked so I hope you have compared whether there is any difference between those folders and checked it
I suppose you have not mapped other extensions into IIS so its only an attempt try to rename the error redirected page as .htm
0 comments:
Post a Comment