We were receiving this error on the home page of root site collection of our SharePoint test farm and also on some inner site collections.
Server Error in '/' Application.
--------------------------------------------------------------------------------
Exception from HRESULT: 0x80041050
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.Runtime.InteropServices.COMException: Exception from HRESULT: 0x80041050
I had no clues as to why this happens because googling returned many results and confused me more. It turned out that the issue was related to Forefront for SharePoint. I had installed ForeFront for SharePoint evaluation and that had scanned and marked some pages as virus. I couldn't get Forefront to work properly and uninstalled it. May be this caused some jobs to get stuck or something; I'm not sure why ForeFront marks SharePoint masterpages as virus.
If ForeFront is still installed, we'll have to remove these pages from scanned results. Navigate to Forefront Admin console:
1.Please disable scanning on a correctly flagged pages as a virus in Forefront.
2.Open Forefront Admin console.
3.Go to filtering.
4.Click on File.
5.Add a new item as *.aspx select “Detect only”
6.Make the filter enable and click save.
7.Remove your pages from the pages library located at”View all Site Content”->Pages.
8.Add your Custom.aspx pages back into the pages library
I had already uninstalled Forefront, so I had to do this the hard way :) editing from backend:
1. Ran the sql command “select * from AllDocs where (VirusStatus>0) and (VirusStatus IS NOT NULL)”
2. It returned results. I backuped the database and performed “Update AllDocs set VirusStatus= null where (VirusStatus>0) and (VirusStatus IS NOT NULL)” on this database
3. I repeated these steps on all content databases
Note: If you update SharePoint tables using SQL query, the support might become void. I did this since this was our testing environment.
Comments