Wednesday, April 25, 2012

Infopath Forms Exception after Windows Updates

Our production servers receive Windows update immediately and during one of the maintenance periods, the InfoPath forms on a SharePoint Site stopped working.
Looking at the ULS logs, I saw the below error:
System.IO.FileLoadException: Loading this assembly would produce a different grant set from other instances. (Exception from HRESULT: 0x80131401)    at Microsoft.Office.Server.Diagnostics.FirstChanceHandler.ExceptionFilter(Boolean fRethrowException, TryBlock tryBlock, FilterBlock filter, CatchBlock catchBlock, FinallyBlock finallyBlock)     at Microsoft.Office.InfoPath.Server.DocumentLifetime.ErrorPageRenderer.RunAndGetErrorRendererOnException(HttpContext context, EventLogStart eventLogStart, TryBlock tryblock, CatchBlock catchblock)     at Microsoft.Office.InfoPath.Server.Controls.XmlFormView.LoadDocumentAndPlayEventLog()     at Microsoft.Office.InfoPath.Server.Controls.XmlFormView.OnDataBindHelper()     at Microsoft.Office.InfoPath.Server.Controls.XmlFormView.OnDataBinding(EventArgs e)
Anytime the error “Loading this assembly would produce a different grant set from other instances” shows up, it means that the application pool needs to be recycled. It is almost like the app pool got loaded into memory during the updates.
So, I quickly recycled the application pool and it fixed the error.

No comments:

Post a Comment