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,580 questions
{count} votes

2 answers

Sort by: Most helpful
  1. Sharon Zhao-MSFT 25,201 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

  2. Eoin McKenna 0 Reputation points
    2025-02-22T15:45:42.4533333+00:00

    Hi Thanks for the reply

    I restarted the laptop and ran a SFC and DISM but I got the errors below

    Microsoft Windows [Version 10.0.22631.4890]

    (c) Microsoft Corporation. All rights reserved.

    C:\Windows\System32>sfc /scannow

    Beginning system scan. This process will take some time.

    Beginning verification phase of system scan.

    Verification 17% complete.

    Windows Resource Protection could not perform the requested operation.

    C:\Windows\System32>DISM.exe /Online /cleanup-image /Restorehealth

    Deployment Image Servicing and Management tool

    Version: 10.0.22621.2792

    Image Version: 10.0.22631.4890

    [== 3.8% ]

    Error: 1392

    The file or directory is corrupted and unreadable.

    The DISM log file can be found at C:\Windows\Logs\DISM\dism.log

    C:\Windows\System32>

    Their is a "PresentationCore.dll" is in the system32 folder and the SysWOW64 folder

    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.