One of our production servers running DNN (DotNetNuke) recently stopped working after being rebooted. All requests now give the following error:
[COMException (0x8007000d): The data is invalid. (Exception from HRESULT: 0x8007000D)]
System.Runtime.InteropServices.Marshal.ThrowExceptionForHRInternal(Int32 errorCode, IntPtr errorInfo) +0
System.Web.Handlers.AssemblyResourceLoader.EnsureHandlerExistenceChecked() +340
System.Web.Handlers.AssemblyResourceLoader.IsValidWebResourceRequest(HttpContext context) +15
System.Web.Security.FormsAuthenticationModule.OnEnter(Object source, EventArgs eventArgs) +300
System.Web.SyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +139
System.Web.HttpApplication.ExecuteStepImpl(IExecutionStep step) +195
System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +88
The machine is running Windows Server 2012/IIS8.5/ASP.NET 4.5.
I've searched for the error and seen suggestions that the web.config may have malformed XML, so I checked and it's fine, and hasn't changed in over a year.
I've also seen suggestions that we install the IIS URL Rewrite Module. I tried that and still no luck, and the site has been working for years without it installed.
The full web.config (minus connection strings) is here: pastebin.com/GpqB5H0U.
Here's the error in event viewer:
Or as text: pastebin.com/paUvF0he
Since the problems seemed to be triggered by a reboot I reverted the server to a backup from a week earlier, and it worked great until the next time it was rebooted, and the error appeared again. I checked and there haven't been any windows updates or changes to group policy that would have affected it.
Any ideas would be greatly appreciated.

FormsAuthenticationModuleis complaining. How do you have that configured in your project? I'm guessing a systemwide Windows Update to .NET Framework broke an assumption in DNN (DNN is ancient, anyway). - DaiSameSitecookie patch Microsoft shipped to .NET Framework this year. - Dai