Forum Discussion
Aji_
May 26, 2020Copper Contributor
Windows - A JavaScript error occurred in the main process
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.
- 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. 🙂
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
- TheBalerionCopper Contributor
Hello everyone
I got the same error every time i turn on my pc.
I already tried installing and repairing Microsoft Visual C++ but it didn't fixed the problem. - davidovanikolCopper Contributor
Hello, is this discussion still active? I’m experiencing a similar issue when turn on my computer. I’ve followed some of the advice mentioned in this thread, but nothing has worked so far. Does anyone have any additional tips?
- d112296aCopper Contributor
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
- Fbio_HenriqueCopper ContributorBoa tarde.
Senhores,
Para mim também foi a unica forma de ajuste foi esta, depois de tentar de todas as formas.
1) Abra Painel de Controle > Desinstalar um programa
2) Localize o Microsoft Visual C++ (64 bits) mais recente e clique em Alterar (se você estiver usando a versão de 64 bits do Teams, talvez precise de x86)
3) Clique em Reparar
4) Insira suas credenciais de administrador para realizar o reparo
5) Depois de reparado, inicie o aplicativo Teams para ter certeza de que funciona
OBRIGADO!!!! - MechaPumpkinCopper Contributor
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!
- sebraufCopper Contributor
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.