BUG: DefaultRedirect Does Not Work When You Use SmartNavigation (813831)
The information in this article applies to:
- Microsoft ASP.NET (included with the .NET Framework) 1.0
SYMPTOMSWhen you design an ASP.NET Web page that uses
SmartNavigation, you set the defaultRedirect property in the customErrors tag that appears in the Web.config
file to redirect users to an error page if an error occurs. However, when an
error occurs in the ASP.NET page during postback, users are not redirected to
the error page. Instead, they receive the following error message in the
ASP.NET page: Runtime Error Description: An application error occurred on the server. The current custom
error settings for this application prevent the details of the application
error from being viewed. CAUSEThe defaultRedirect feature is not supported when SmartNavigation is turned on in an
ASP.NET Web page.WORKAROUNDTo work around this problem, use one of the following
methods:
- Turn off the SmartNavigation
feature.
-or- - Set the ErrorPage in the @ Page directives as follows:
- Use the following code to add the
ErrorPage page directive:
<%@ Page smartNavigation="True" ErrorPage="Error.aspx" %> - Verify whether the customErrors message mode is set to On in the Web.config file as follows:
<customErrors defaultRedirect = "Error.aspx"
mode="On"
/>
STATUS
Microsoft has confirmed that this is a bug in the Microsoft products that are
listed at the beginning of this article.
REFERENCESFor more information, visit the following Microsoft Web
sites:
Modification Type: | Major | Last Reviewed: | 1/21/2004 |
---|
Keywords: | kberrmsg kbEvent kbConfig kbServerControls kbWebForms kbbug KB813831 kbAudDeveloper |
---|
|