1. Home
  2. Web Conferencing

FIX: An Error Has Occurred in The Script on This Page (Microsoft Teams)

Microsoft Teams can be used via the official desktop app, and it can be used from any modern browser. On the surface, it appears to be a simple app and the UI would have you believe that it doesn’t need much to run. Normally, any system that can run Microsoft 365 apps can run Microsoft Teams without any trouble. That said, Microsoft Teams is notorious for problems when users try to sign in.

Microsoft Teams an error has occurred in the script on this page

Microsoft Teams doesn’t have a lot of dependencies. Most runtimes or libraries that it needs in order to work are already installed on your system. The app doesn’t support macros or add-ins, and you cannot run scripts within the app which is why the ‘an error has occurred in the script on this page’ error that appears when you try to log in is an odd one.

The ‘an error has occurred in the script on this page’ error isn’t generated by Microsoft Teams. It is a problem with your system that happens to trigger each time you try to login to the app. The trick is to be able to dismiss it and proceed with login.

Hide script errors

Windows 10 gives users the option to hide messages for script errors.

  1. Open File Explorer.
  2. Paste the following in the location bar, and tap Enter.
Control Panel\Network and Internet
  1. Click Internet Options.
  2. Go to the Advanced tab.
  3. Scroll down to the ‘Browsing’ section.
  4. Uncheck ‘Display a notification about every script error’.
  5. Uncheck ‘Disable script debugging (Internet Explorer)’.
  6. Uncheck ‘Disable script debugging (Other)’.
  7. Click Apply.
  8. Sign in to Microsoft Teams.

Note: This will only hide the errors. You should look up other parameters of the error, and resolve it.

Disable startup items and third-party services

It is possible that there are other apps and services running on the system that trigger this error and prevent you from signing into Microsoft Teams. A quick fix is to disable everything. You can later enable them, one-by-one, until you can figure out what’s causing the problem.

To disable services;

  1. Tap the Win+R keyboard shortcut to open the run box.
  2. In the run box, enter msconfig, and tap enter.
  3. Go to the Services tab.
  4. Click the ‘Hide all Microsoft services’ option at the very bottom.
  5. Select all remaining services.
  6. Click ‘Disable all’.

To disable startup items;

  1. Right-click the taskbar and select Task Manager from the context menu.
  2. Go to the Startup tab.
  3. Select each item, and click ‘Disable’.
  4. Restart the system.
  5. Open Microsoft Teams and log in.

Conclusion

If you see the ‘an error has occurred in the script on this page’ error message when logging into Microsoft Teams, it is possible that you will also see it when you try to open other Micorosft 365 apps. The solution is the same; either hide the error box or disable services that may be causing it. The alternative is to track down what is causing the error.

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.