Error Message When You Browse the Web: An Error Has Occurred in the Script on This Page (306831)



The information in this article applies to:

  • Microsoft Internet Explorer 5.5 for Windows NT 4.0 SP 1
  • Microsoft Internet Explorer 5.5 for Windows Millennium Edition SP 1
  • Microsoft Internet Explorer 5.5 for Windows 98 Second Edition SP 1
  • Microsoft Internet Explorer 5.5 for Windows 98 SP 1
  • Microsoft Internet Explorer 5.5 for Windows 95 SP 1
  • Microsoft Internet Explorer 5.5 for Windows 2000 SP 1
  • Microsoft Internet Explorer version 6 for Windows XP
  • Microsoft Internet Explorer version 6 for Windows Millennium Edition
  • Microsoft Internet Explorer version 6 for Windows 2000
  • Microsoft Internet Explorer version 6 for Windows NT 4.0
  • Microsoft Internet Explorer version 6 for Windows 98 Second Edition
  • Microsoft Internet Explorer version 6 for Windows 98

This article was previously published under Q306831

SYMPTOMS

When you are browsing a Web page, you may receive an error message similar to one of the following:
An error has occurred in the script on this page.
Line: line
Char: character
Error: Class not registered
-or-

On the Status Bar, you may receive the following message:

Done, but with error on page

If you double-click the Status Bar message, and then click Show Details, you receive the following error message:
An error has occurred in the script on this page.
Line: line
Char: character
Error: Class not registered

CAUSE

This issue may occur if the Urlmon.dll file is not registered.

RESOLUTION

To resolve this issue, follow these steps:
  1. Click Start, and then click Run.
  2. In the Open box, type Regsvr32 urlmon.dll, and then click OK.
  3. When prompted with the DllRegisterServer in urlmon.dll succeeded message, click OK.
If the issue persists, follow these steps:
  1. Open the Java Virtual Machine. To do so, visit the following Java Web site:
  2. Close all instances of Internet Explorer.
  3. Click Start, click Control Panel, and then double-click Internet Options.
  4. Click the Advanced tab.
  5. Under Browsing, click to clear the Enable third-party browser extensions (requires restart) check box.
  6. Restart Internet Explorer.
If the issue persists, follow these steps:
  1. Open Internet Explorer.
  2. Click Tools, and click Internet Options.
  3. Click the Advanced tab.
  4. Under Browsing, click to select the Disable Script Debugging check box.
  5. Click OK to close all windows, and then restart the computer.

MORE INFORMATION

For additional information about how to troubleshoot this issue, click the following article numbers to view the articles in the Microsoft Knowledge Base:

308260 How to troubleshoot script errors in Internet Explorer

If the issue persists, follow these steps:
  1. Download and install Java Virtual Machine. To do this, visit the following Java Web site:
  2. Close all instances of Internet Explorer, click Start, and then click Control Panel.
  3. Click Network and Internet Connections, and then click Internet Options.
  4. Click the Advanced tab.
  5. Clear the Enable third-party browser extensions (requires restart) check box under Browsing.
  6. Restart Internet Explorer. If the problem is not resolved, go to step 7.
  7. Open Internet Explorer, click Tools, and then click Internet Options.
  8. Click the Advanced tab, and then select the Disable Script Debugging check box under Browsing.
  9. Click OK to close all the windows.
  10. Restart the computer.

Modification Type:MajorLast Reviewed:5/11/2004
Keywords:kberrmsg kbprb KB306831