Jump to content

Could not repair and/or reproject corrupted file "Web.config" in ClientWebServices folder (WSUS)


Recommended Posts

Guest /u/jwckauman
Posted

I was doing some routine maintenance on my WSUS server and discovered corrupt files when running System File Checker (SFC). Looking through my CBS.log file, it looks like there is one "web.config" file in "C:\Program Files\Update Services\WebServices\ClientWebService\" whose hash doesn't match what is in the store and both the original and store file versions are corrupt to boot. Here's the details

 

[iCODE]Hashes for file member 'Web.config' do not match Cannot repair member file 'Web.config' of UpdateServices-Webservices-Client version 10.0.20348.1 arch amd64 nonSxS in the store hash mismatch This component was referenced by 'Microsoft-Windows-UpdateServices-CoreServices-Package~31bf3856ad364e35~amd64~~10.0.20348.51.UpdateServices-Services' Could not reproject corrupted file C:\Program Files\Update Services\WebServices\ClientWebService\Web.config source file in store is also corrupted [/iCODE]

 

I've run both "SFC /SCANNOW" and "DISM /Online /Cleanup-Image /RestoreHealth" multiple times but they have not been able to repair the corruption. With DISM, I get the usual error message stating it can't find source files to repair the corrupted file(s) with.

 

[iCODE]Error: 0x800f081f. The source files could not be found. [/iCODE]

 

I checked my server information, and I have Windows Server 2022 Datacenter, version 2009 (21H2). I downloaded the latest Server 2022 ISO, mounted it, and checked the versions on the ISO.

 

I downloaded the latest Server 2022 Datacenter ISO, mounted it, and got the list of images within the ISO. It included Server 2022 Datacenter (Desktop Experience) with it being #4 in the Image Index. With that info, I ran

 

[iCODE]DISM /online /cleanup-image /restorehealth /source:WIM:F:\sources\install.wim:4 /limitaccess [/iCODE]

 

and it worked!

 

[iCODE][==========================100.0%==========================] The restore operation completed successfully. [/iCODE]

 

Then I ran "sfc /scannow" again and this time it worked as well!

 

[iCODE]Windows Resource Protection found corrupt files and successfully repaired them. [/iCODE]

 

I am amazed all this worked. I was posting here to ask a question, but wanted to leave this here to say "this is how I fixed it!". Let me know if you have any questions!

 

submitted by /u/jwckauman

[link] [comments]

 

Continue reading...

  • Replies 0
  • Created
  • Last Reply

Popular Days

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


×
×
  • Create New...