Hello Everyone,
While installing Microsoft Teams, the error message described in the subject line is thrown.
Am running Microsoft Windows Version - 1909
A couple of troubleshooting tips found on //docs.microsoft.com/en-us/MicrosoftTeams/troubleshoot-installation have been tried but the error still shows up.
Any idea on how to resolve this issue will be greatly appreciated.
UPDATES
I did a comparison of 2 SquirrelSetup.log files. [Both PC runs Windows 1909 and the same build number.
The PC 1[Throwing up the JavaScript error above]logged some issues not found in the PC 2 as shown below:
----start----
ApplyReleasesImpl: Couldn't run Squirrel hook, continuing:
C:\Users\Administrator\AppData\Local\Microsoft\Teams\current\Teams.exe:
System.OperationCanceledException: The operation was canceled.
at System.Threading.CancellationToken.ThrowOperationCanceledException[]
at Squirrel.Utility.c__DisplayClass11_0.b__0[]
at System.Threading.Tasks.Task.InnerInvoke[]
at System.Threading.Tasks.Task.Execute[]
--- End of stack trace from previous location where exception was thrown ---
at
System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess[Task task]
at
System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotificat ion[Task task]
at Squirrel.Utility.d__11.MoveNext[]
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess[Task task]
at
System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotificat
ion[Task task]
at
Squirrel.UpdateManager.ApplyReleasesImpl.c__DisplayClass18_1.d.MoveNext[]
---end----
FURTHER UPDATES
Many suggestions found on GitHub, Microsoft support site, blogs and other websites have been tried. So after spending several hours googling and searching for a working solution, the following finally worked on the PC in question.
- A standard user account was created on the PC.
- Downloaded a new Microsoft teams app.
- In services.msc, the status of a service called Quality Windows Audio Video Experience was also manually started.
- Executed the app and no JavaScript error was thrown.
N.B: I am still not satisfied with this fix, cos i applied the same troubleshooting approach on another PC throwing up the same JavaScript error, and the fix doesn't work on it. :]
Home/Windows 10/Windows 10 Troubleshooting/Javascript Exception Error in Microsoft Teams on Windows 10
JavaScript Exception Error in Microsoft Teams has been reported multiple times on online support forums as well as on Microsoft Support Community. It mostly occurs in one of the two situations: when a user tries to run Microsoft Teams set up or when a user tries to run Microsoft Teams software. The error notification is as follows: We have listed down a few causes of the problem after reviewing the user’s feedback and technical authorities in detail. The root causes for this error may be vague in nature but the most reported possible reasons in the online community, have been listed down below. The list is as follows:What Causes Javascript Exception Error in Microsoft Teams?
Solution 1: Update Microsoft Visual C++ Runtime Libraries
The MS Teams JavaScript Exception issue can be solved by reinstalling Microsoft Visual C++ to the latest version, as per feedback available online. Follow the steps given below to uninstall outdated versions of Microsoft Visual C++ Runtime Libraries and then reinstall the latest versions:
- Press the Windows Key + R keys on your keyboard to open Run dialog box.Opening Run dialog box
- Type
appwiz.cpl and click OK. This will take you to the list of all installed programs on your PC.Opening Installed Programs List
- Locate all Microsoft Visual C++ programs in the list, select them, and click Uninstall. This will start a series of uninstallation wizards running back to back. Wait until the process gets completed.Uninstalling Microsoft Visual C++ Runtime Libraries
- Download a fresh updated copy of Microsoft Visual C++ Runtime Libraries from the Official Microsoft Support Webpage and then install them. This should fix your problem.
Solution 2: Clean Uninstall & Reinstall MS Teams
If installing the latest versions of Microsoft Visual C++ Runtime Libraries didn’t fix your problem then there is a strong possibility that some of the MS Teams system files are corrupted. The easy fix would be to completely uninstall MS Teams and reinstall the latest fresh copy. Follow the steps given below to do so:
- Close MS Teams by right-clicking the MS Teams icon in the taskbar and select Quit. This will end all the background ongoing processes related to MS Teams.
- Right-click on Start and select
Control Panel to open it.Opening Control Panel
- Select Uninstall a program under the Programs section. This will take you to the list of all installed programs on your PC.Opening Installed Programs List
- Select Microsoft Teams from the list of installed programs and click Uninstall. This will start uninstalling MS Teams. The procedure may take time so wait until it gets finished.Uninstalling Microsoft Teams
- Press Windows + R keys on your keyboard to open Run dialog box. Type %appdata% and click OK. This will take you to a hidden folder named AppData where user data is stored for different applications installed on your PC.Opening AppData Folder
- Open Microsoft
folder, right-click on Teams folder and select Delete.Deleting MS Teams Folder
- Close all windows and again press Windows + R keys on your keyboard to start Run. Type %Programdata% and click OK. This will take you to a hidden folder named ProgramData where program related settings or data is stored.Open ProgramData Folder
- Repeat step 6. Now you have finally uninstalled Microsoft Teams completely from your computer.
- Download a fresh updated copy of Microsoft Teams desktop setup from the Official Microsoft Teams Download Webpage and then install it. This should finally fix your problem.Downloading MS Teams [desktop] Setup
Read Next
- Microsoft Teams Users: 3×3 Grid View Is Nice, But A 5×5 View Is What We Need For…
- How to Fix the 'A JavaScript Error Occurred in the Main Process' Error in…
- [FIX] HughesNet Usage Meter JavaScript Error
- Fix: Could not Access Javascript / VBScript Run time for Custom Action [2738…
Kevin Arrows
- Network Engineer [LAN/WAN] |
Kevin is a dynamic and self-motivated information technology professional, with a Thorough knowledge of all facets pertaining to network infrastructure design, implementation and administration. Superior record of delivering simultaneous large-scale mission critical projects on time and under budget.