Exchange 2010 OWA – Can’t Delete Messages

Out of nowhere today I rebooted my Exchange server (that has been up and running for several years without problems) then users could no longer delete their messages – they would just receive an unfriendly message stating that “An unexpected error occurred and your request could not be handled”. The event log showed the following error every couple of seconds:

Event 3, System.ServiceModel 3.0.0.0

WebHost failed to process a request.
 Sender Information: System.ServiceModel.ServiceHostingEnvironment+HostingManager/20974680
 Exception: System.ServiceModel.ServiceActivationException: The service '/EWS/Exchange.asmx' cannot be activated due to an exception during compilation.  The exception message is: The type initializer for 'Microsoft.Exchange.Services.Wcf.MessageInspectorManager' threw an exception.. ---> System.TypeInitializationException: The type initializer for 'Microsoft.Exchange.Services.Wcf.MessageInspectorManager' threw an exception. ---> System.InvalidOperationException: Unable to generate a temporary class (result=1).
 Continue reading "Exchange 2010 OWA – Can’t Delete Messages"