Error Message: A Runtime Error Has Occurred. Do You Wish to Debug?

ID: Q226342


The information in this article applies to:
  • Microsoft Site Server version 3.0, Commerce Edition


SYMPTOMS

In Internet Explorer 5.0, when you use the Ad Manager and click the Help button in the Customers, Performance, Ad Sizes, or Refresh pages, Internet Explorer pauses temporarily when it attempts to open http://ServerName/Siteserver/Docs/Default_com.htm. Eventually, the following error message occurs:

A Runtime Error has occurred.
Do you wish to Debug?

However, the Site Server documentation (Help) page is still displayed behind the error message dialog box.

Line Number and Error

The line number and error referenced in the error message may vary. Following are two sets of line numbers and errors that may be displayed:
Line: 81
Error: Unspecified error.
Line: 87
Error: 'parent.main_l.document.hhctrl.object' is not an object
Note: This occurs in the Japanese version of Site Server 3.0, Commerce Edition, in addition to the English version.


CAUSE

There are two browser checks occurring, one by the Ad Manager and one by the documentation Help file at SiteServer/Docs/Default_com.htm.

The Ad Manager code finds that it is running Internet Explorer version 4.0 or later. The documentation Help file finds that it is not running Internet Explorer 4.0, and therefore, runs a Java applet instead. However, the Ad Manager tries to run a control, which it does not find because it was not called by the Java applet.


RESOLUTION

Perform the following steps to comment out the lines causing the problem:

  1. In the Inetpub\Wwwroot\Admanager\Include folder, open the Am.asp file in a text editor.


  2. Comment out the following four lines of code (lines 1045, 1046, 1047, 1048, and 1049):
    
    var path = Pathname; 
    fileName = path.substring(path.lastIndexOf("/")+1, path.length); 
    while (helpWindow.main.location.pathname == null) {};
    while (helpWindow.parent.main_l.document.hhctrl.object == null) {};
    helpWindow.main_l.document.hhctrl.syncURL(fileName); 

    Note: To comment out a line, place two forward slashes (//) at the beginning of the line.


Additional query words: admanager ssce

Keywords :
Version : winnt:3.0
Platform : winnt
Issue type : kbprb


Last Reviewed: September 21, 1999
© 2000 Microsoft Corporation. All rights reserved. Terms of Use.