Microsoft Teams opens then closes. Just goes in that loop when attempting to open.

Brass Contributor

Have a user where Microsoft Teams starts to open then closes. I've reinstalled it and still nothing. In the past, if i'm quick enough, im able to rightclick the teams taskbar icon to "sign out" before it closes which worked once - but not for this instance. 

14 Replies

Figured it out. Had to delete all the teams entries in the Windows Credential Manager. After that when I did the quick "Sign Out" this time, it stayed up and was able to successfully login.

This worked for me too but I also had to sign out of my account in Office 365. I removed almost everything from Credential Manager but still could not get Teams out of the crash loop until logging off from Outlook.

Noteable errors here:
on Sep 02 2019 12:37:55 GMT-0500 (Central Daylight Time) <15112> -- info -- Current guest tenants:
Mon Sep 02 2019 12:37:55 GMT-0500 (Central Daylight Time) <15112> -- error -- AUTH: Unable to get UPN from storage
Mon Sep 02 2019 12:37:55 GMT-0500 (Central Daylight Time) <15112> -- event -- name: unable_to_get_upn_storage, eventpdclevel: 3,
Mon Sep 02 2019 12:37:55 GMT-0500 (Central Daylight Time) <15112> -- error -- ADAL: IE emulation not enabled from ECS flag.
Mon Sep 02 2019 12:37:55 GMT-0500 (Central Daylight Time) <15112> -- event -- name: ieMode_disabled., eventpdclevel: 2,
Mon Sep 02 2019 12:37:55 GMT-0500 (Central Daylight Time) <15112> -- info -- Creating SSO context diag:1
Mon Sep 02 2019 12:37:55 GMT-0500 (Central Daylight Time) <15112> -- info -- Let's get you up and running... diag:0
Mon Sep 02 2019 12:37:55 GMT-0500 (Central Daylight Time) <15112> -- info -- adalsso:statusChanged to: Let's get you up and running...
Mon Sep 02 2019 12:37:55 GMT-0500 (Central Daylight Time) <15112> -- event -- status: success, scenario: 79ab9b9b-abb2-4ad4-8f69-ffd875f627aa, scenarioName: desktop_unregister_adal_version, name: desktop_unregister_adal_version, step: start, sequence: 0, delta: 0, scenarioDelta: 0, elapsed: 1804, stepDelta: 0, eventpdclevel: 2, Scenario.Name: desktop_unregister_adal_version, Scenario.Step: start, Scenario.Status: success,
Mon Sep 02 2019 12:37:55 GMT-0500 (Central Daylight Time) <15112> -- error -- ADAL: Failed to unregister ADAL version with error: Message: [RegistryWin] Unable to open registry key: HKEY_CURRENT_USER\Software\Microsoft\Office\Teams failed: The operation completed successfully.
Mon Sep 02 2019 12:37:55 GMT-0500 (Central Daylight Time) <15112> -- event -- status: failure, scenario: 79ab9b9b-abb2-4ad4-8f69-ffd875f627aa, scenarioName: desktop_unregister_adal_version, name: desktop_unregister_adal_version, step: stop, sequence: 1, delta: 1, scenarioDelta: 1, elapsed: 1805, stepDelta: 1, eventpdclevel: 2, Scenario.Name: desktop_unregister_adal_version, Scenario.Step: stop, Scenario.Status: failure,
Mon Sep 02 2019 12:37:55 GMT-0500 (Central Daylight Time) <15112> -- info -- ADAL: WAM enabled via ECS: undefined, OS version above RS2: true, EnableAdal2: false, isDomainNameEnabledForWam: false
Mon Sep 02 2019 12:37:55 GMT-0500 (Central Daylight Time) <15112> -- info -- ADAL: Tenant Id:
Mon Sep 02 2019 12:37:55 GMT-0500 (Central Daylight Time) <15112> -- info -- ADAL: Getting context for:msteams_adalsso_adal_context
Mon Sep 02 2019 12:37:55 GMT-0500 (Central Daylight Time) <15112> -- info -- ADAL: Tenant Id:
Mon Sep 02 2019 12:37:55 GMT-0500 (Central Daylight Time) <15112> -- warning -- No saved context found to resume from.
Mon Sep 02 2019 12:37:55 GMT-0500 (Central Daylight Time) <15112> -- warning -- No saved context found. Creating a new context.
Mon Sep 02 2019 12:37:55 GMT-0500 (Central Daylight Time) <15112> -- info -- Logout forceprompt: fpStorage null prevForcePrompt nullshouldForcePrompt null
Mon Sep 02 2019 12:37:55 GMT-0500 (Central Daylight Time) <15112> -- info -- Signing in requires username diag:1
Mon Sep 02 2019 12:37:55 GMT-0500 (Central Daylight Time) <15112> -- info -- Auth Authority:https://login.microsoftonline.com/common
Mon Sep 02 2019 12:37:55 GMT-0500 (Central Daylight Time) <15112> -- info -- Acquiring token... diag:1
Mon Sep 02 2019 12:37:55 GMT-0500 (Central Daylight Time) <15112> -- info -- Authenticating resource - https://api.spaces.skype.com... diag:1
Mon Sep 02 2019 12:37:55 GMT-0500 (Central Daylight Time) <15112> -- info -- SSO: Authenticating resource - https://api.spaces.skype.com... correlationId: f1767c57-753d-4691-88db-191ac2bc8f17
Mon Sep 02 2019 12:37:55 GMT-0500 (Central Daylight Time) <15112> -- info -- Hang tight! We’re getting you connected. diag:0
Mon Sep 02 2019 12:37:55 GMT-0500 (Central Daylight Time) <15112> -- info -- adalsso:statusChanged to: Hang tight! We’re getting you connected.
Mon Sep 02 2019 12:37:55 GMT-0500 (Central Daylight Time) <15112> -- warning -- SSO: ssoerr - (status) Unable to get errCode. Err:Error: ADAL error: 0xCAA10001
Mon Sep 02 2019 12:37:55 GMT-0500 (Central Daylight Time) <15112> -- event -- Microsoft_ADAL_api_id: 13, Microsoft_ADAL_correlationId: f1767c57-753d-4691-88db-191ac2bc8f17, Microsoft_ADAL_response_rtime: 1, Microsoft_ADAL_api_error_code: caa10001, eventpdclevel: 2,
Mon Sep 02 2019 12:37:55 GMT-0500 (Central Daylight Time) <15112> -- warning -- SSO: ssoerr - (status) Unable to get errCode. Err:Error: ADAL error: 0xCAA10001
Mon Sep 02 2019 12:37:55 GMT-0500 (Central Daylight Time) <15112> -- info -- SSO: SSO requires credential. Status: caa10001. Attempting windows auth.
Mon Sep 02 2019 12:37:55 GMT-0500 (Central Daylight Time) <15112> -- info -- SSO requires credential. Status: caa10001. Attempting windows auth. diag:1

@William Lampert I´ve had the same behavior on a customer, he tried to resolve reinstalling, we´ve removed the user settings from School and work accounts, from credential manager, even checked on the same machine under other profile/user, it worked. but this user couldn´t start the app, keeps crashing. i´ve been looking for a Safe mode to run MSTeams, but i didn´t found it. downloaded the S.A.R.A. and checked the DNS Records required for Skype/Teams, but them are fine. i´ve looked onto Event viewer too but nothing weird or evidences the happening.

 

Kind regards,

 

Ing. Fabian Alberto Campo

From Bogota, Colombia.

@William LampertSolved by formatting my hard drive and completely reinstalling all my software, because once a Microsoft product gets bad that's the only real solution you can apply.

I had the same issue , just one one of my desktops. Uninstalled with revo uninstaller , deleting every association with Microsoft teams . I then used Ccleaner "easy clean tab" , then on the registry "scan for issues" tab & fix selected issues . Rebooted & reinstalled teams. This worked for me.  @William Lampert 

I'm having the exact same problem. So the ONLY solution is to wipe my OS and re-install all my software? That seems rather drastic for what is clearly a Microsoft Team problem that apparently hasn't been resolved??

I'd rather NOT use MS Teams than wipe a perfectly good PC and spend weeks re-installing Visual Studio and the 1000's of other mission critical applications I use that ARE working perfectly fine ... it's just that MS Teams with the problem, not my OS.

@RobAinscough 

 

The issue for me, was the initialisation of The Windows Camera Frame Server being manually disabled in the registry, as this causes some users to experience their webcams turning off and on again. disabling this service seems to interrupt the Teams application from starting properly. 

 

I have re-enabled this and Teams now remain open and usable. 

 

I have deleted the manual D-Word Entry (EnableFrameServerMode = 0) in both:

Computer\HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows Media Foundation\Platform

Computer\HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\Microsoft\Windows Media Foundation\Platform

 

Let me know if this fixes for you. 

@brendansmallco Unfortunately those registry settings do not exist in either for me.  I also tried starting the service "Windows Camera Frame Server" and that made no difference.  

 

No errors in OS Event log ... 

 

This is all I see for a second or two and then it goes, no errors, nothing.

 

https://drive.google.com/open?id=1U3_NeCgra6M_yYVAN2RzgQ86rbGaXx4U 

 

I have a job interview tomorrow and they use teams, unfortunately looks like I may not be able to participate.

 

Microsoft's technology at it's finest as usual...

@RobAinscough 

 

Hey Rob, Sorry my fix doesn't apply to you. 

Have you been able to grab the teams logs from:

%appdata%\Microsoft\Teams\logs.txt

This might help shed some light on the problem. If you need to PM me a link to the logs so I can help, let me know. 

-R

Brendan

@William Lampert 

Try to delete folder under following path:

C:\Users\username\AppData\Roaming\Microsoft

 

I am having the same issue. Downloaded app on my iPhone 12. Closes as soon as it opens.

 

So frustrating. I would never use anything Microsoft makes were it not out of necessity. 

 

Please advise

This is what has worked for me:

  • Uninstall Teams.

  • Delete ALL folders under %localappdata%\Microsoft\Teams\, rather than just some of them, as indicated in most of the other solutions I found online.

  • Also delete the HKEY_CURRENT_USER\Software\Microsoft\Office\Teams\PreventInstallationFromMsi registry value (always save a backup of the registry key before editing!!!).

  • Reinstall Teams.

(https://answers.microsoft.com/en-us/msteams/forum/all/there-was-a-glitch-and-we-are-recovering/9ffa0...)