May 26 2020 06:40 AM - edited Jun 04 2020 03:40 PM
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 https://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.<InvokeProcessAsync>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.<InvokeProcessAsync>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.<<invokePostInsta ll>b__2>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.
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. :)
Nov 16 2020 11:54 PM
@Aji_ If everything has been tried then try these basic steps.
1. Start application without admin rights - Right-click on the app and choose properties, click on the compatibility tab and uncheck the box of "run as administrator"
2. Restore your computer - If nothing works, restore your computer to the previous date when it was working fine. Open RUN box and type rstrui.exe and click ok.
Feb 09 2021 11:34 AM
Solution
1) Open Control Panel > Uninstall a program
2) Locate latest Microsoft Visual C++ (64bit) and click on Change (If you're using 64 bit version of Teams, maybe you need x86)
3) Click on Repair
4) Enter your Admin credentials to perform repair
5) Once repaired Launch Teams app to make sure it works
Mar 07 2021 10:22 PM
@d112296a this seems to have fixed it for me, thanks!
Mar 08 2021 12:15 AM
Mar 10 2021 10:02 AM
Mar 25 2021 03:16 AM
@d112296a This also worked for me thank you
Oct 19 2021 06:51 AM
@d112296a thanks 1500 (Marvel)
Dec 23 2022 01:44 PM
I just wanted to say thank you and confirm the repair of Visual C++ worked for me as well, after trying every other common solution. This needs to be marked as a right answer, because all the other answers didn't work for me until I found this and I almost gave up. So thank you!
Nov 04 2023 10:18 AM
Feb 09 2021 11:34 AM
Solution
1) Open Control Panel > Uninstall a program
2) Locate latest Microsoft Visual C++ (64bit) and click on Change (If you're using 64 bit version of Teams, maybe you need x86)
3) Click on Repair
4) Enter your Admin credentials to perform repair
5) Once repaired Launch Teams app to make sure it works