WSUS Sync Failing (Unexpected Error)

by getdeclue on December 19, 2012

The sync error I was receiving on the WSUS server:

TypeInitializationException: The type initializer for ‘Microsoft.UpdateServices.ServerSyncWebServices.ServerSync.ServerSyncProxy’ threw an exception. —> System.Net.WebException: The underlying connection was closed: An unexpected error occurred on a send.
at Microsoft.UpdateServices.Internal.ClassFactory.CreateInstance(Type type, Object[] args)
at Microsoft.UpdateServices.ServerSync.ServerSyncLib.GetWebServiceProxyInternal(UpdateServerConfiguration serverConfig, WebServiceCommunicationHelper webServiceHelper, Boolean useCompressionProxy)
at Microsoft.UpdateServices.ServerSync.ServerSyncLib.GetWebServiceCompressionProxy(UpdateServerConfiguration serverConfig, WebServiceCommunicationHelper webServiceHelper)
at Microsoft.UpdateServices.ServerSync.CatalogSyncAgentCore.RetrieveSubscriptionData()
at Microsoft.UpdateServices.ServerSync.CatalogSyncAgentCore.ExecuteSyncProtocol(Boolean allowRedirect)

Some things I tried to fix this:

Restart the server

After trying a wsus cleanup the sync was still failing
Here is an update that Microsoft recommends:
http://support.microsoft.com/kb/2734608

Setps that ultimately fixed the sync issue:

“C:\Program Files\Update Services\Tools\wsusutil.exe” usecustomwebsite true

“C:\Program Files\Update Services\Tools\wsusutil.exe” configuressl servername.domain

Restart the following three services in the following order: Update Services, BITS, IIS Admin Service.

Sync started working after following these steps.

Solution was found on Microsoft Answers.

 

{ 4 comments }

Laurie April 1, 2013 at 7:10 am

I had the exact same issue on my server. It was a hit or miss if it would synch and I restarted the server several different times but no luck. All I did to fix it was to restart the services you had mentioned in that exact order and I was able to synch after I did that. Thanks for the info!

Carlos April 17, 2013 at 2:45 am

Thanks for this, helped to fix the sync issues I was having here, saved me a great deal of time. It’s great when you can actually find reliable, straight to the point information that fixes the issue. Again, thanks very much!

Diego July 9, 2014 at 1:02 pm

Thanks for this post is a solution help to fix the sync! Great job! Thanks !!!!

Tina September 30, 2016 at 10:22 am

Still works today. Needed to do after verifying IIS settings and resetting incorrect Content folder settings.

Previous post:

Next post: