Root > Integral parts > Dialogs > WEB

WEB

Previous pageReturn to chapter overviewNext page   

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:




Send feedback... Build date: 2024-09-30
Last edited: 2023-03-07
PRIVACY STATEMENT
The documentation team uses the feedback submitted to improve the EurekaLog documentation. We do not use your e-mail address for any other purpose. We will remove your e-mail address from our system after the issue you are reporting has been resolved. While we are working to resolve this issue, we may send you an e-mail message to request more information about your feedback. After the issues have been addressed, we may send you an email message to let you know that your feedback has been addressed.


Permanent link to this article: https://www.eurekalog.com/help/eurekalog/web_dialog.php