Error installing micorsoft teams

Eoin McKenna 0 Reputation points
2025-02-20T18:10:45.8266667+00:00

I am trying to install teams on a new windows 11 laptop

I am getting the error message below

"Unhandled exception: System.BadImageFormatException: Could not load file or assembly 'PresentationCore, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The file or directory is corrupted and unreadable. (Exception from HRESULT: 0x80070570)

File name: 'PresentationCore, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35'

at Squirrel.Update.Program.executeCommandLine(String[] args)

at Squirrel.Update.Program.main(String[] args)"

Microsoft Teams Development
Microsoft Teams Development
Microsoft Teams: A Microsoft customizable chat-based workspace.Development: The process of researching, productizing, and refining new or existing technologies.
3,579 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Sharon Zhao-MSFT 25,126 Reputation points Microsoft Vendor
    2025-02-21T02:52:32.3533333+00:00

    Hi @Eoin McKenna,

    Welcome to Q&A!

    Based on the error message you shared, the file PresentationCore.dll is the one with invalid image.

    To fix this issue, you could follow the suggestions as below:

    1.Restart your computer firstly.

    2.Check your recycle bin to see if the PresentationCore file is mistakenly deleted. If it does, please restore it. And attempt to install.

    3.If the above suggestion doesn't work, please check if there is any notification for Windows update. If has, it is required to complete the update above all and then have a another attempt for the installation.

    4.If the steps 3 has no luck as well, please Open an elevated command prompt and run the following commands in order to repair the corrupted file:

    DISM.exe /Online /Cleanup-image /Restorehealth

    sfc /scannow

    Please note that do not close the Command Prompt window until the verification id 100% complete.

    If this issue persists, please kindly share more details and information with us. 


    If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".

     

    Note: Please follow the steps in our documentation](https://aka.ms/msftqanotifications)"https://aka.ms/msftqanotifications)") to enable e-mail notifications if you want to receive the related email notification for this thread.


    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.