A problem occurs when using Notepad

Anonymous
2024-02-04T14:27:38+00:00

My Windows 11 system has been in normal use for nearly two years, but today, I suddenly found that my txt file cannot be opened normally with Notepad. Once opened, an error message like the first picture below will appear. It Says I have a dll file error.

So I first ran the "sfc /scannow" command in the terminal and detected that some areas could not be repaired. Then I found out that those areas could be repaired by running the "dism /online /cleanup-image /restorehealth" command. Then I waited for a long time. , after repairing it, I ran "sfc /scannow" and there was no error message. Then I tried to open Notepad, but the above error still appeared. Then I was very confused. Is it a problem with the software itself? So I ran the "Get-AppxPackage Microsoft.WindowsJournal | Remove-AppxPackage" command to uninstall the Notepad software, and then re-downloaded it from the Microsoft Store. After the download was completed, the above error message still appeared. Then I downloaded the dll checking tool and tried to check whether there was a problem with the dll. I found that there was a problem with the following library.

Then I repaired the above software again and found that it still didn't work.

So I tried uninstalling and reinstalling, but it still didn’t work.

I tried downloading everything I might need, as shown below, but it still didn't work and the error still occurred.

So I tried to use the latest feature of Windows 11 "Reinstall" (the one below)

After reinstalling, I excitedly opened Notepad, but an error still occurred, the same error as above.

I'm a little sad because I've spent a day trying to figure this out.

After that, I took a closer look at his path, which is the file "C:\Program Files\WindowsApps\Microsoft.VCLibs.140.00.UWPDesktop_14.0.33519.0_x64__8wekyb3d8bbwe\MSVCP140.dll". I think I deleted him directly, but the system prompted me that I didn't have permission. (And there seems to be a problem with the input board of this community. I can't paste some content into the text box with Ctrl+V. I don't know why. I can copy and paste normally)

Me I'm very confused. I don't know why this problem occurs? At the same time, the "Photos" software on my computer (which comes with Windows 11) cannot be opened normally. As soon as I open it, the photo box will pop up, which is all white, just like below

Then there was a problem with my edge browser. It couldn't open certain PDF files normally. Those files were blank after opening. I don't know why. I can open and display them normally with Google Chrome.

By the way, I suspect that the reason for all this is because I accidentally deleted some files in the C drive the day before yesterday. Because my C drive has started to turn red, I used Lenovo’s own cleaning tool to delete the files in the C drive. Some large text files that don't look important, and some video files that don't look important, and here's what my computer looks like today. Oh my God, I could still use it yesterday!😭😭😭

Well, a lot of questions came up today, thank God for adding some fun to my life!

Windows for home | Windows 11 | Performance and system failures

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

26 answers

Sort by: Most helpful
  1. Anonymous
    2024-02-04T16:01:37+00:00

    SFC can't fix the VCLibs package.

    Download this appx file and run it.

    Click Reinstall/Install.

    File Info:

    Filename: Microsoft.VCLibs.140.00.UWPDesktop_14.0.33519.0_x64__8wekyb3d8bbwe.Appx
    Signing date:	12:59 AM 1/30/2024
    Publisher:	Microsoft Corporation
    MD5:	9C46F30BBB5CEFE45F46035151526F23
    SHA1:	4B4F77D5088EE177252E36789493409411D2E222
    SHA256:	66FBB74914EA84492E56D09E0A0F313E8FCF20F8DAE43DA70D141A4BFD9EA0AF
    VT link:	https://www.virustotal.com/gui/file/66fbb74914ea84492e56d09e0a0f313e8fcf20f8dae43da70d141a4bfd9ea0af/detection
    
    1 person found this answer helpful.
    0 comments No comments
  2. Anonymous
    2024-02-04T18:11:49+00:00

    Hello, thank you very much for your answer, but when I tried to click and run "Microsoft.VCLibs.140.00.UWPDesktop_14.0.33519.0_x64__8wekyb3d8bbwe.Appx", a pop-up prompt appeared:

    It means "app not started".

    I then tried to install using terminal, and when I started the installation, nothing happened.

    Then when I clicked Notepad, it still continued to report errors, the photo software still could not be opened, and nothing changed

    The following is when I tried to install the appx software in the terminal Prompts that appear

    You see, it doesn't change anything and doesn't prompt me if the installation was successful. Of course it didn't work either.

    But thank you very much for your answer!

    0 comments No comments
  3. Anonymous
    2024-02-05T03:18:14+00:00

    That's strange. Can you try removing the package completely using PowerShell and reinstalling the .appx?

    From admin PowerShell:

    • remove-appxpackage -Package Microsoft.VCLibs.140.00.UWPDesktop_14.0.33519.0_x64__8wekyb3d8bbwe -AllUsers

    And then, reinstall it using Add-AppxPackage.

    0 comments No comments
  4. Deleted

    This answer has been deleted due to a violation of our Code of Conduct. The answer was manually reported or identified through automated detection before action was taken. Please refer to our Code of Conduct for more information.


    Comments have been turned off. Learn more

  5. Anonymous
    2024-02-07T06:11:26+00:00

    Still doesn't work. After I followed your method again, there was still no change.Still getting the same error as above.Also, I don’t know why, but some files are damaged and cannot be repaired. I have repaired them before. At that time, it was prompted that they were completely repaired, but now it is prompted that they cannot be repaired.

    0 comments No comments