WEB dialog is a special dialog which behaves like no dialog, except it also sends HTML page with error message back to client in web applications. Web application include CGI applications (both console and WinCGI), ISAPI applications, IntraWeb applications or any other HTTPApp-based application.
Warning: if there will be error during stage other than processing client's request (like: application's initialization or shutdown) - there will be no HTML page, since there is no client connected. So be sure that you've enabled and setup bug report saving. Be sure that bug report folder is writable under user account, which is used to run your application.
Note: error messages in dialogs are controlled by nested exceptions behaviour options.
This dialog type has no visual appearance in your application. Here is a browser with error message from your web-application:
Google Chrome shows error page about exception which occurred during HTTP-request
The example error message above uses the following HTML page template:
<html> <head> <%content_type%> <title>EurekaLog Documentation</title> </head> <body> <h1>Internal Application Error</h1> <p><%EXCEPTION_MESSAGE%></p> <p><hr width="100%"></p> <p>The exception details were saved to log file. Contact site administrator.</p> <p><hr width="100%"></p> <p>Additional information is below.</p> <p>Class: <%exception_class%><br /> Message: <%exception_message%><br /> Location: <%exception_location%><br /> Call stack: <%call_stack%><br /> Bug report: <%file_name%></p> <p><hr width="100%"></p> <p><%bug_report%></p> </body> </html>
The HTML source of the result looks like this:
<html> <head> <meta http-equiv="content-type" content="TEXT/HTML;charset=UTF-8" /> <title>Error occurred</title> </head> <body> <h1>Internal Application Error</h1> <p>Access violation at address 0216942E in module 'ISAPI.dll'. Write of address 00000000</p> <p><hr width="100%"></p> <p>The exception details were saved to log file. Contact site administrator.</p> <p><hr width="100%"></p> <p>Additional information is below.</p> <p>Class: EAccessViolation<br /> Message: Access violation at address 0216942E in module 'ISAPI.dll'. Write of address 00000000<br /> Location: (000D842E){ISAPI.dll } [0216942E] MainISAPI.Error (Line 41, "MainISAPI.pas") + $2<br /> Call stack: <pre> - ISAPI.dll.MainISAPI.Error,41[4] ... - ISAPI.dll.ISAPIApp.HttpExtensionProc </pre> <br /> Bug report: C:\inetpub\wwwroot\cgi-bin\ISAPI.el</p> <p><hr width="100%"></p> <p><pre>EurekaLog 7.0.0.63 alpha 1 RC ... 0157ECF0: 0157ED0C 0216951E: 95 16 02 E8 92 43 F5 FF 8B 45 E8 B9 4C 00 00 00 .....C...E..L... </pre></p> </body> </html> <!-- EurekaLog page ID: CC2F96D8 --> <!-- EurekaLog Bug ID: 7D390000 -->
Note: it may be a good idea to hide information about occurred problem in application's release version, showing only generic message "The exception details were saved to log file. Contact site administrator" and logging bug report to file. Showing too much error details may compromise your security.
Constant: edtWeb.
See also:
|