Good morning everyone,
I created a custom page layout with a custom content type. This page layout hosts an XmlFormViewer control which of course hosts an Infopath form.
Forms are being deployed to a dedicated document library as content types. Everything is working quite smoothly. Except for the fact that as soon as I update my form in infopath and publish it to sharepoint again (update content type) I cannot view it in my browser anymore. Access denied and therefore a redirect to the login page occures. This only happens in my web application's extended zone for forms authentication. And here comes the tricky part.. If I access the form using the windows zone it works. And once I did that it also works in the anonymous (=forms) zone. Weird, right? Are there any security mechanisms in place I should be aware of? How do you typically update a form content type on your farm?
A runtime exception was detected. Details follow.
Message: Access is denied. (Exception from HRESULT: 0x80070005 (E_ACCESSDENIED))
Techinal Details:
System.UnauthorizedAccessException: Access is denied. (Exception from HRESULT: 0x80070005 (E_ACCESSDENIED))
at Microsoft.SharePoint.Utilities.SPUtility.HandleAccessDenied(Exception ex)
at Microsoft.SharePoint.SPGlobal.HandleUnauthorizedAccessException(UnauthorizedAccessException ex)
at Microsoft.SharePoint.Library.SPRequest.GetFileAsByteArray(String bstrUrl, String bstrWebRelativeUrl, Boolean bHonorLevel, Byte iLevel, OpenBinaryFlags grfob)
at Microsoft.SharePoint.SPFile.GetFileContent(SPOpenBinaryOptions openOptions)
at Microsoft.SharePoint.SPFile.OpenBinary(SPOpenBinaryOptions openOptions)
at Microsoft.SharePoint.SPFile.OpenBinary()
at Microsoft.Office.InfoPath.Server.Administration.NonAdminSolution.ComputeActivationFlag(SPFile originalFile)
at Microsoft.Office.InfoPath.Server.Administration.NonAdminSolution.IsActivationFlagValid(SPFile originalFile)
at Microsoft.Office.InfoPath.Server.Administration.NonAdminSolution.AutoCreateConvertedFile(SPSite revertedSite, SPFile originalFile)
at Microsoft.Office.InfoPath.Server.Administration.NonAdminSolution.<>c__DisplayClass17.<IsActivated>b__15(SPSite revertedSite, SPFile convertedFile)
at Microsoft.Office.InfoPath.Server.Administration.NonAdminSolution.<>c__DisplayClassc.<GetConvertedFile>b__b(SPSite revertedSite)
at Microsoft.Office.InfoPath.Server.Administration.NonAdminSolution.<>c__DisplayClass10.<AccessSiteUnderSystemAccount>b__e()
at Microsoft.SharePoint.SPSecurity.CodeToRunElevatedWrapper(Object state)
at Microsoft.SharePoint.SPSecurity.<>c__DisplayClass4.<RunWithElevatedPrivileges>b__2()
at Microsoft.SharePoint.Utilities.SecurityContext.RunAsProcess(CodeToRunElevated secureCode)
at Microsoft.SharePoint.SPSecurity.RunWithElevatedPrivileges(WaitCallback secureCode, Object param)
at Microsoft.SharePoint.SPSecurity.RunWithElevatedPrivileges(CodeToRunElevated secureCode)
at Microsoft.Office.InfoPath.Server.Administration.NonAdminSolution.AccessSiteUnderSystemAccount(SPSite site, VisitSite siteHandler)
at Microsoft.Office.InfoPath.Server.Administration.NonAdminSolution.GetConvertedFile(SPSite contextSite, SPFile originalFile, VisitFile revertedFileHandler)
at Microsoft.Office.InfoPath.Server.Administration.NonAdminSolution.IsActivated(SPSite contextSite, SPFile originalFile)
at Microsoft.Office.InfoPath.Server.DocumentLifetime.FormInvocation.<>c__DisplayClass8.<TryCreateSolutionMetaInformationForActivatedSolution>b__7()
at Microsoft.Office.InfoPath.Server.SolutionLifetime.SolutionCache.EnsureObjectInCache[T](HttpContext context, SolutionIdentity solutionId, String cacheId, ValidateCacheObject`1 validateCacheObject, CreateCacheObject`1 createCachedObject, AddToCache`1 cacheObject)
at Microsoft.Office.InfoPath.Server.SolutionLifetime.SolutionCache.EnsureSolutionMetaInformationInCache(HttpContext context, SolutionIdentity solutionId, DateTime timeLastModified, CreateCacheObject`1 createCachedObject)
at Microsoft.Office.InfoPath.Server.DocumentLifetime.FormInvocation.TryCreateSolutionMetaInformationForActivatedSolution(SPSite contextSite, Uri absoluteSolutionUri, SolutionMetaInformation& solutionMetaInformation, InfoPathException& error)
at Microsoft.Office.InfoPath.Server.DocumentLifetime.FormInvocation.TryCreateSolutionMetaInformationByUrl(SPSite contextSite, String xsnLocation, SolutionMetaInformation& solutionMetaInformation, String& absoluteSolutionLocation, InfoPathException& error)
at Microsoft.Office.InfoPath.Server.DocumentLifetime.FormInvocation.TryFetchMetaInformation(SPSite contextSite, String xmlLocation, String xsnLocation, String saveLocation, InfoPathXmlDocument document, DocumentMetaInformation& documentMetaInformation, SolutionMetaInformation& solutionMetaInformation, String& absoluteSolutionLocation, InfoPathException& error)
at Microsoft.Office.InfoPath.Server.Controls.XmlFormView.StartNewEditingSession()
at Microsoft.Office.InfoPath.Server.Controls.XmlFormView.EnsureDocument(EventLogStart eventLogStart)
at Microsoft.Office.InfoPath.Server.Controls.XmlFormView.<>c__DisplayClass3.<LoadDocumentAndPlayEventLog>b__1()
at Microsoft.Office.Server.Diagnostics.FirstChanceHandler.ExceptionFilter(Boolean fRethrowException, TryBlock tryBlock, FilterBlock filter, CatchBlock catchBlock, FinallyBlock finallyBlock)
For more information, see Help and Support Center at http://go.microsoft.com/fwlink/events.asp.