I came across this issue yesterday when trying to work out why an InfoPath form that I had published wasn’t working.
The Site Collection that I deployed the form to had been configured for Anonymous access. When trying to open the form in the browser it failed to load –
After some delving into the ULS logs I found these exception messages –
Unknown SPRequest error occurred. More information: 0×80070005
05/31/2011 20:36:31.41 w3wp.exe (0x14D4) 0x119C Forms Server Forms Services Deployment 7ti0 Medium Access is denied. (Exception from HRESULT: 0×80070005 (E_ACCESSDENIED))
05/31/2011 20:36:31.44 w3wp.exe (0x14D4) 0x119C Windows SharePoint Services General 8e2s Medium Unknown SPRequest error occurred. More information: 0×80070005
05/31/2011 20:36:31.44 w3wp.exe (0x14D4) 0x119C Forms Server Forms Services Runtime 82fp Warning Exception occurred during request processing. (User: , Form Name: , IP: , Request: http://mywebsite/_layouts/formserver.aspx?XsnLocation=/InfoPath Forms/Form.xsn&OpenIn=Browser, Form ID: , Type: InvalidOperationException, Exception Message: Operation is not valid due to the current state of the object.) at Microsoft.SharePoint.WebControls.SPControl.SPWebEnsureSPControl(HttpContext context) at Microsoft.SharePoint.WebControls.SPControl.GetContextWeb(HttpContext context) at Microsoft.SharePoint.Utilities.SPUtility.RedirectToAccessDeniedPage(HttpContext context) at Microsoft.SharePoint.Utilities.SPUtility.HandleAccessDenied(Exception ex) at Microsoft.SharePoint.SPGlobal.HandleUnauthorizedAccessException(UnauthorizedAccessException ex)
It seemed the cause of the error was permissions related – this made sense as we were trying to load the form as an anonymous user.
Eventually after quite a lot of searching around I came across this blog post by Jon Talbot which describes the fix – thanks Jon! (http://blog.metrostarsystems.com/2009/06/04/anonymously-submit-infopath-form-to-sharepoint-library/). Basically the permissions of the forms library need modifying before anonymous users can open the form in the browser.
I thought I would post this here as it took me a while to find the above post and hopefully this will see it getting some more hits!