 |
 |
|
|
|
Customizing the Error Page
The file ..\FileNet\IDM\Web\FNOpenClient\FnErrorPage.aspx is a
custom error page included in the Open Client toolkit for handling unexpected
errors. You must perform the following code changes to enable custom error messages.
- To enable custom error messages, navigate to ..\FileNet\IDM\Web\FNOpenClient\Global.asax.vb file and
comment the following highlighted code line:
Sub Application_Error(ByVal Sender As Object, ByVal E As EventArgs)
..
..
..
//errObj.HandleException(ErrorInfo)
..
..
..
You need to compile the Open Client project.
Optionally, you can use the CustomErrors tag in the ..\FileNet\IDM\Web\FNOpenClient\Web.Config file to customize the error page as shown below.
- To enable custom error messages, visible to all clients
customErrors mode="On"
- To enable custom error messages, yet hide them from remote clients
customErrors mode="RemoteOnly"
- To disable custom messages and just use the Open Client error messages
customErrors mode=”Off”
- To handle other errors than are currently listed in the file, such
as
Server Error (code=500)
<customErrors mode="on" defaultRedirect="FnCustomError.asp">
<error statusCode="500" redirect="InternalError.htm"/>
|