Indicates whether the server channels in this application domain return filtered or complete exception information to local or remote callers.
<customErrors mode="off|on|remoteOnly" />
|mode||Indicates whether the server channels in this application domain return filtered or complete exception information to local or remote callers. The default is remoteOnly, which returns complete exception information (including the stack trace) only to callers on the same computer as the server.|
Complete exception information includes the exact server exception and the server stack trace. Filtered information includes a standard remoting exception but no server stack trace.
The following table describes the three server channel property values that specify which callers receive exception information and the type of information they receive.
|off||All callers receive complete exception information.|
|on||All callers receive filtered exception information.|
|remoteOnly||Local callers receive complete exception information; remote callers receive filtered exception information.|
The following configuration file example tells the .NET Remoting system to register a server channel on behalf of a client application domain so that the client domain can pass a delegate to be used as a callback. Specifying
<customErrors mode="off"/> causes the server to receive complete exception information, including the stack trace, if an exception occurs on the client during the callback.
<activated type="ClientActivatedType, RemoteType"/>
<channel ref="http" port="0">
<formatter ref="soap" typeFilterLevel="Full"/>
<formatter ref="binary" typeFilterLevel="Full"/>
Configuration Files: Application configuration file, machine configuration file (Machine.config)
Platform: This element is supported in the .NET Framework version 1.1 or later on Microsoft Windows 98 or later.