Error while trying to synchronize Windows Server Update Services (WSUS) Server with Microsoft Update (MU)

Unable to generate a temporary class: You see the following error while trying to synchronize WSUS Server with MU & synchronization fails at 99%.


 


Complete error message is as follows :>>>>>>>>>


 


System.InvalidOperationException: Unable to generate a temporary class (result=1).error CS2001: Source file ‘C:\WINDOWS\TEMP\m9yekbox.0.cs’ could not be founderror CS2008: No inputs specified


 


   at Microsoft.UpdateServices.Internal.ClassFactory.CallStaticMethod(Type type, String methodName, Object[] args)


   at Microsoft.UpdateServices.Internal.BaseApi.Subscription.GetSynchronizationHistory(DateTime fromDate, DateTime toDate)


   at Microsoft.UpdateServices.Internal.BaseApi.Subscription.GetLastSynchronizationInfo()


   at Administration.Manage.Subscriptions.SubscriptionProxy.GetSynchronizationStatus()


   at Administration.Reporting.CurrentStatus.CurrentStatusProxy.GetHomeStatusClientFunction(String xPostXml)


   at Administration.Reporting.ReportingXPost.Page_Load(Object sender, EventArgs e)


 


   at Microsoft.UpdateServices.Internal.ClassFactory.CallStaticMethod(Type type, String methodName, Object[] args)


at Microsoft.UpdateServices.Internal.BaseApi.Subscription.GetSynchronizationHistory(DateTime fromDate, DateTime toDate)


at Microsoft.UpdateServices.Internal.BaseApi.Subscription.GetLastSynchronizationInfo()


at Administration.Manage.Subscriptions.SubscriptionProxy.GetSynchronizationStatus()


   at Administration.Reporting.CurrentStatus.CurrentStatusProxy.GetHomeStatusClientFunction(String xPostXml)


   at Administration.Reporting.ReportingXPost.Page_Load(Object sender, EventArgs e)


 


This is due to lack of permission for NTAUTHORITY\NETWORK SERVICE account on the TEMP folder. To resolve this issue, assign NETWORK SERVICE the following permissions on C:\Windows\Temp;


 


List Folder / Read Data


Delete

5 thoughts on “Error while trying to synchronize Windows Server Update Services (WSUS) Server with Microsoft Update (MU)

  1. Worked great, I don’t know why this happend all of a sudden, it WAS working, then stopped. The permissions change fixed the problem!

Leave a Reply

Your email address will not be published. Required fields are marked *