sfc can't repair some of the files

After I ran sfc /scannow, I got this message "Windows Resource Protection found corrupt files but was unable to fix some of them. Details are included in the CBS.Log windir\Logs\CBS\CBS.log." I wrote the sfc related entries in cbs.log  to sfcdetails.txt using "findstr /c:"[SR]" %windir%\logs\cbs\cbs.log  >sfcdetails.txt", I found problematic entry in sfcdetails.txt
"2015-02-04 22:01:22, Info                  CSI    0000092c [SR]    Cannot repair member file [l:40{20}]"System.resources.dll" of    System.resources, Version = 4.0.9600.16384, pA =    PROCESSOR_ARCHITECTURE_MSIL (8), Culture = [l:10{5}]"zh-cn",    VersionScope neutral, PublicKeyToken = {l:8 b:b77a5c561934e089}, Type    neutral, TypeName neutral, PublicKey neutral in the store, file is  missing ", 
I suspect it is related to .NET Framework . I tracked down 6 directories which I believe were system.resources.dll related under c:\windows\winsxs

there's  a system.resources.dll under every of these 6 directories.I open the first directory ,and found that size of the system.resources.dll is suspicious, I suspect it was corrupt. So I deleted the file ,and also I deleted the 4th directory which I believe might be relevant because the number in the name of the directory is somewhat consistent with the system.resources.dll  version number provided by  sfcdetails.txt . After that I ran DISM /Online /Cleanup-Image /RestoreHealth  , the file and directory I deleted was recovered successfully, then I ran sfc /scannow ,now there're two problematic entries in sfcdetails.txt :

2015-02-08 20:29:05, Info                  CSI    0000123f [SR] Cannot repair member file [l:40{20}]"System.resources.dll" of System.resources, Version = 4.0.9600.16384, pA = PROCESSOR_ARCHITECTURE_MSIL (8), Culture = [l:10{5}]"zh-cn", VersionScope neutral, PublicKeyToken = {l:8 b:b77a5c561934e089}, Type neutral, TypeName neutral, PublicKey neutral in the store, file is missing
2015-02-08 20:29:05, Info                  CSI    00001242 [SR] Cannot repair member file [l:40{20}]"System.resources.dll" of System.resources, Version = 4.0.9600.16404, pA = PROCESSOR_ARCHITECTURE_MSIL (8), Culture = [l:10{5}]"zh-cn", VersionScope neutral, PublicKeyToken = {l:8 b:b77a5c561934e089}, Type neutral, TypeName neutral, PublicKey neutral in the store, file cannot be decompressed

The first problem persists ,and now there's this second problematic entry ,what does it tell?


February 6th, 2015 4:11pm

LF

Sorry but I do not understand.  You CBS log suggests the problem has been fixed.

All files and registry keys listed in this transaction have been successfully repaired

Free Windows Admin Tool Kit Click here and download it now
February 6th, 2015 4:16pm

LF

Sorry but I do not understand.  You CBS log suggests the problem has been fixed.

All files and registry keys listed in this transaction have been successfully repaired

February 6th, 2015 6:24pm

LF

Then it says

, TypeName neutral, PublicKey neutral in the store, file is    missing

2015-02-04 22:01:22, Info                  CSI    0000092d    [SR] Repair complete

2015-02-04 22:01:22, Info           CSI      0000092e [SR] Committing transaction

2015-02-04 22:01:22, Info           CSI    00000933 [SR] Verify and Repair Transaction completed. All    files and registry keys listed in this transaction have been  successfully repaired

Free Windows Admin Tool Kit Click here and download it now
February 6th, 2015 6:36pm

LF

Then it says

, TypeName neutral, PublicKey neutral in the store, file is    missing

2015-02-04 22:01:22, Info                  CSI    0000092d    [SR] Repair complete

2015-02-04 22:01:22, Info           CSI      0000092e [SR] Committing transaction

2015-02-04 22:01:22, Info           CSI    00000933 [SR] Verify and Repair Transaction completed. All    files and registry keys listed in this transaction have been  successfully repaired

February 6th, 2015 7:15pm

How did you install Windows? DVD? USB?
Free Windows Admin Tool Kit Click here and download it now
February 6th, 2015 7:16pm

Hi

You can use DISM on Windows 8.1

https://technet.microsoft.com/en-us/library/hh824869.aspx

Try this: DISM /Online /Cleanup-Image /RestoreHealth

February 6th, 2015 7:25pm

Hi

You can use DISM on Windows 8.1

https://technet.microsoft.com/en-us/library/hh824869.aspx

Try this: DISM /Online /Cleanup-Image /RestoreHealth

Yes ,i've done that ,still the same ,"Windows Resource Protection found corrupt files but was unable to fix some of them. Details are included in the CBS.Log windir\Logs\CBS\CBS.log."
Free Windows Admin Tool Kit Click here and download it now
February 6th, 2015 7:39pm

How did you install Windows? DVD? USB?
USB , but what difference does it make?
February 6th, 2015 7:42pm

How did you install Windows? DVD? USB?

USB , but what difference does it make?

I was going to ask if you had configured your PC to boot from either the USB or DVD and run a repair. If sfc cannot repair a missing file, then a Windows repair may be able to pull it from the USB and replace it. Have you tried that?
Free Windows Admin Tool Kit Click here and download it now
February 6th, 2015 7:59pm

Try this then, but you have to use the installation media

Dism /Online /Cleanup-Image /RestoreHealth /source:wim:D:\sources\install.wim:1 /limitaccess

Replace the drive letter according to your computer

This command will use the local source, and not use the Windows Update

February 6th, 2015 9:19pm

How did you install Windows? DVD? USB?

USB , but what difference does it make?


I was going to ask if you had configured your PC to boot from either the USB or DVD and run a repair. If sfc cannot repair a missing file, then a Windows repair may be able to pull it from the USB and replace it. Have you tried that?

Yes, I've tried booting from the flash disk ,and clicked repair windows,and then went to command prompt ,ran sfc/scannow ,but it didn't work, I got the message like  "windows resource protection cannot perform the requested operation"
Free Windows Admin Tool Kit Click here and download it now
February 7th, 2015 5:49am

Try this then, but you have to use the installation media

Dism /Online /Cleanup-Image /RestoreHealth /source:wim:D:\sources\install.wim:1 /limitaccess

Replace the drive letter according to your computer

This command will use the local source, and not use the Windows Update

Yes , I've tried that , nothing changed . but the odd ting is that even if  the flash disk is not connected to my computer, I can still run the command with no error, and finally I got "the restore operation completed successfully.the component store corruption was repaired", it seems like I don't  need the image to do the repair. in another word  it make no difference what drive letter i use
  • Edited by lonelyfishcn Saturday, February 07, 2015 3:19 AM
February 7th, 2015 5:50am

Dism /Online /Cleanup-Image /RestoreHealth /source:wim:D:\sources\install.wim:1 /limitaccess


That's being optimistic about the functionality.  However, now that it has failed in both cases you could go back to the CBS.log and find out what it says.  Usually there is a clue there about where it was expecting to find the module and more importantly why it would be there.  Then you use that information to find a download, e.g. an .msu file which you unpack and then that is what you point DISM at for its "source".  Or just do stuff the old way and hack it back to normal now that you know what is wrong.   <eg>

Good luck

Free Windows Admin Tool Kit Click here and download it now
February 7th, 2015 10:15pm

Dism /Online /Cleanup-Image /RestoreHealth /source:wim:D:\sources\install.wim:1 /limitaccess


That's being optimistic about the functionality.  However, now that it has failed in both cases you could go back to the CBS.log and find out what it says.  Usually there is a clue there about where it was expecting to find the module and more importantly why it would be there.  Then you use that information to find a download, e.g. an .msu file which you unpack and then that is what you point DISM at for its "source".  Or just do stuff the old way and hack it back to normal now that you know what is wrong.   <eg>

Goo

February 8th, 2015 6:12am

"2015-02-04 22:01:22, Info                  CSI    0000092c [SR]    Cannot repair member file [l:40{20}]"System.resources.dll" of    System.resources, Version = 4.0.9600.16384, pA =   

Try using the hints I gave.  Does DISM indicate there is a problem with that module too?  If so, the context given when it is unable to repair it will help you figure out what update that you need to download and unpack.

Otherwise, now that you have a module to check on by yourself you could use this PowerShell pipeline to see if there are any problems indicated that way.

PS C:\> ls -Re -Fi System.Resources.dll | sort LastWriteTime | ft Length, FullName -AutoSize
Now that I have done that myself it looks like it is for an old version of Silverlight.  So unless you really need it, why not just uninstall Silverlight until you get your system working again normally?

 

Good luck

Free Windows Admin Tool Kit Click here and download it now
February 8th, 2015 7:41am

There's a new problem now. According to the information provided by sfcdetails.txt , I suspect it is related to .NET Framework . I tracked down 6 directories which I believe were system.resources.dll related under c:\windows\winsxs

there's  a system.resources.dll under every of these 6 directories.I open the first directory ,and found that size of the system.resources.dll is suspicious, I suspect it was corrupt. So I deleted the file ,and also I deleted the 4th directory which I believe might be relevant because the number in the name of the directory is somewhat consistent with the system.resources.dll  version number provided by  sfcdetails.txt . After that I ran DISM /Online /Cleanup-Image /RestoreHealth again , the file and directory I deleted was recovered successfully, then I ran sfc /scannow ,now there're two problematic entries in sfcdetails.txt :

2015-02-08 20:29:05, Info                  CSI    0000123f [SR] Cannot repair member file [l:40{20}]"System.resources.dll" of System.resources, Version = 4.0.9600.16384, pA = PROCESSOR_ARCHITECTURE_MSIL (8), Culture = [l:10{5}]"zh-cn", VersionScope neutral, PublicKeyToken = {l:8 b:b77a5c561934e089}, Type neutral, TypeName neutral, PublicKey neutral in the store, file is missing
2015-02-08 20:29:05, Info                  CSI    00001242 [SR] Cannot repair member file [l:40{20}]"System.resources.dll" of System.resources, Version = 4.0.9600.16404, pA = PROCESSOR_ARCHITECTURE_MSIL (8), Culture = [l:10{5}]"zh-cn", VersionScope neutral, PublicKeyToken = {l:8 b:b77a5c561934e089}, Type neutral, TypeName neutral, PublicKey neutral in the store, file cannot be decompressed

The first problem persists ,and now there's this second problematic entry ,what does it tell?




February 8th, 2015 9:15am

suspect it is related to .NET Framework

Or Silverlight.  Have you considered uninstalling that?

found that size of the system.resources.dll is suspicious, I suspect it was corrupt. So I deleted the file ,and also I deleted the 4th directory which I believe might be relevant because the number in the name of the directory is somewhat consistent with the system.resources.dll  version number provided by  sfcdetails.txt .

That's I was referring to as hacking.  In fact, I suspect you just deleted some cached files which had been compressed and now have even less consistency in your WinSxS than you had before.  So now, SFC which relies on consistency in the WinSxS and attempts to make repairs from it, is now further hindered by its inconsistency.

Did you try the PowerShell pipeline I showed?  Do you have another otherwise identical system that you could do the same command on, to show you what is wrong by comparing the two outputs?

Free Windows Admin Tool Kit Click here and download it now
February 8th, 2015 9:46am

Silverlight is not installed , and I've tried PowerShell pipeline ,nothing happen except that it copied one more  system.resources.dll to c:\windows\system32.

I only deleted one file which I  believe was corrupt, and Dism successfully recovered it, It's not supposed to be a probem.

February 8th, 2015 11:02am

tried PowerShell pipeline ,nothing happen except that it copied one more  system.resources.dll to c:\windows\system32

The pipeline I gave does nothing but find and list modules.  I don't know if you should have an instance of that module in System32.  FWIW all of mine are being shown under Microsoft Silverlight.
Free Windows Admin Tool Kit Click here and download it now
February 9th, 2015 12:18am

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics