Share via

BadImageFormatException

Anonymous
2022-02-20T06:20:16+00:00

I got this cmd error issue "Exception calling "Load" with "1" argument(s): "Could not load file or assembly '1259008 bytes loaded from Anonymously

Hosted DynamicMethods Assembly, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies. An

attempt was made to load a program with an incorrect format."

At line:1 char:1

  • [System.Reflection.Assembly]::Load((Get-ItemProperty HKCU:\Software\d ...
  • 
        + CategoryInfo          : NotSpecified: (:) [], MethodInvocationException 
    
        + FullyQualifiedErrorId : BadImageFormatException" when I finished Windows update yesterday.
    
Windows for home | Windows 11 | Windows update

Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.

0 comments No comments

3 answers

Sort by: Most helpful
  1. Anonymous
    2022-02-20T20:53:57+00:00

    Hi KrazeFault90 -

    Thanks for the response and I do apologize on the delayed on mine

    Is this a one time issue on your windows computer or does it show every time you play a game or watch a video.

    Kindly run a system file checker to verify the integrity of windows system files on your computer making sure that there are no corrupted files on your windows.

    Perform SFC Scan and Repair Windows Image

    -This process will perform scan for any corrupted system files or integrity violation and will attempt to repair it along with the Windows Image.

    1. Open command prompt with administrator access
    2. Type each command below and wait until scan is completed.

    SFC /scannow

    DISM /Online /Cleanup-Image /CheckHealth

    DISM /Online /Cleanup-Image /ScanHealth

    DISM /Online /Cleanup-Image /RestoreHealth

    Quick note: While the command is running, it's expected to see the process stuck at 20 or 40 percent. After a few minutes, the process will complete successfully.

    Once you complete the steps, the Deployment Image Servicing and Management tool will connect to the Windows Update servers to download and replace any damaged files in the local image for Windows 10 as necessary.

    1. Close the command prompt.

    After running the scan on your windows computer, kindly try to perform a clean boot on your windows computer to disable any non-Microsoft services running on the background of your windows computer to ensure that they are not causing or contributing to the issue.

    Perform Clean Boot

    • This process will eliminate 3rd party application running in the background of your computer along with services that are not needed to run windows. If there's any conflicting 3rd party application that causes the issue on your computer, this process will stop it.
    1. Open the run box by pressing the Windows Key + R and type msconfig
    2. System Configuration Utility box will open and by default you are on general tab.
    3. On the General tab, click the selective startup and make sure that load system service and load startup items both have checked mark.
    4. Click on services tab
    5. Put a check mark on Hide All Microsoft Services > This is a very important part as if you miss to click on this, computer might not boot properly or permanently and will end up on clean installation.
    6. Once Hide all Microsoft Services have checked mark on it, click on Disable All
    7. Click on the Startup Tab and click open task manager. This will open another window which contains all your startup applications on the administrator account.
    8. Disable all application that you're not using. You can simply just click on them and select disable.
    9. Click OK , Apply and close the configuration utility

    Restart the computer normally and check if the same issue appears

    Regards,

    Kevin B.

    Was this answer helpful?

    0 comments No comments
  2. Anonymous
    2022-02-20T07:01:53+00:00

    I properly updated it but as soon as it finished I got that error on my system when I was playing a game or watching clips from YouTube. And this was the Update Stack Package - (Version 922.210.811.0).

    Was this answer helpful?

    0 comments No comments
  3. Anonymous
    2022-02-20T06:54:00+00:00

    Hi KrazeFault90 -

    I'm Kevin B., I do apologize for the inconvenience that you're experiencing right now, let me help you sort things out.

    Are all updates got installed properly before getting the error message?

    If not, kindly follow the steps below and check if it helps

    Run the Windows Updates troubleshooter to identify and the tool will attempt to fix the issue

    Windows Update Troubleshooter

    https://support.microsoft.com/en-us/windows/win...

    If the above method did not fix the issue, kindly follow the steps on the link below to manually fix the issue

    Troubleshoot problems updating Windows

    https://support.microsoft.com/en-us/windows/tro...

    Hope this will help and have a bless day!

    Thanks.

    Kevin B.

    Independent advisor

    Was this answer helpful?

    0 comments No comments