none
SharePoint Server Publishing infrastructure - Sorry, you don't have access to this page RRS feed

  • Question

  • If I enable site feature on Any site  in any site collection on Sharepoint farm,   every one get lock out (include Farm admin, ect)  with error Sorry, you don't have access to this page.

    I have to  go to Web application -> User Policies Add: NT Authority\Authenticated Users, so that I can  log in to site, disable feature and everything start to work.

    On : Site Collection Administration -> Site Collection Features  -> SharePoint Server Publishing Infrastructure : is activated

    Infrastructure : I use  Host name site collection, all effected sites are located in the same web application.

    I think  problem is with “SharePoint Server Publishing Infrastructure”. Because if I enable  that feature on site collection, then o have problem choosing together  SharePoint Server Standard Site Collection features and SharePoint Server Enterprise Site Collection features

    If SharePoint Server Publishing Infrastructure is enabled, if a activate Standard Site Collection features , then choosing Server Enterprise Site Collection features, produce error : Sorry, something went wrong.

    But I can  enabled both features “Standard Site  & Server Enterprise” before enabling SharePoint Server Publishing Infrastructure.

    ULS logs, when I enable SharePoint Server Publishing Infrastructure :

    -

    From bottom up : Non-OAuth request. IsAuthenticated=True, UserIdentityName=0#.w|DOMAIN\user1, ClaimsCount=55

    -

    DelegateControl: Exception thrown while adding control 'Microsoft.SharePoint.Publishing.Navigation.PortalSiteMapDataSource': System.UnauthorizedAccessException: Access is denied. (Exception from HRESULT: 0x80070005 (E_ACCESSDENIED))   

     at Microsoft.SharePoint.Utilities.SPUtility.HandleAccessDenied(Exception ex)   

     at Microsoft.SharePoint.Library.SPRequest.GetMetadataForUrl(String bstrUrl, Int32 METADATAFLAGS, Guid& pgListId, Int32& plItemId, Int32& plType, Object& pvarFileOrFolder)   

     at Microsoft.SharePoint.SPWeb.GetList(String strUrl)   

     at Microsoft.SharePoint.Publishing.CacheManager..ctor(SPSite site)   

     at Microsoft.SharePoint.Publishing.CacheManager.GetManager(SPSite site, Boolean useContextSite, Boolean allowContextSiteOptimization, Boolean refreshIfNoContext)   

     at Microsoft.SharePoint.Publishing.CachedAreaLookup.EnsureLookup(Boolean errorsAsExceptions)   

     at Microsoft.SharePoint.Publishing.CachedAreaLookup.GetCachedAreaOrException()   

     at Microsoft.SharePoint.Publishing.Navigation.TaxonomyNavigationCache.GetCachedWebInfo(CachedAreaLookup cachedAreaLookup)   

     at Microsoft.SharePoint.Publishing.Navigation.TaxonomyNavigationCache.GetWebNavigationSettings(CachedAreaLookup cachedArea, CachedAreaLookup& parentCachedArea, Exception& loadError)   

     at Microsoft.SharePoint.Publishing.Navigation.TaxonomyNavigation.GetEffectiveProviderSettingsList(CachedAreaLookup cachedArea, Boolean includeInheritedSettings)   

     at Microsoft.SharePoint.Publishing.Navigation.TaxonomyNavigation.GetEffectiveProviderSettings[T](CachedAreaLookup cachedArea, String siteMapProviderName, Boolean includeInheritedSettings, CachedAreaLookup& cachedAreaWithSettings)   

     at Microsoft.SharePoint.Publishing.Navigation.TaxonomyNavigation.GetEffectiveProviderSettings[T](SPWeb web, String siteMapProviderName, Boolean includeInheritedSettings)   

     at Microsoft.SharePoint.Publishing.Navigation.SwitchableSiteMapProvider.GetCurrentWrappedProvider()   

     at Microsoft.SharePoint.Publishing.Navigation.SwitchableSiteMapProvider.get_RootNode()   

     at Microsoft.SharePoint.Publishing.Navigation.SwitchableDataSourceBehavior.AssignProperties(SiteMapProvider targetProvider)   

     at Microsoft.SharePoint.Publishing.Navigation.PortalSiteMapDataSource.OnInit(EventArgs e)   

     at System.Web.UI.Control.InitRecursive(Control namingContainer)   

     at System.Web.UI.Control.AddedControl(Control control, Int32 index)   

     at Microsoft.SharePoint.WebControls.DelegateControl.AddControlResilient(Control ctl)

    -

    System.IO.FileNotFoundException: The system cannot find the file specified. (Exception from HRESULT: 0x80070002), StackTrace:  

     at Microsoft.SharePoint.SPWeb.GetObjectForUrl(String strUrl, Guid& listId)   

     at Microsoft.SharePoint.Utilities.SPUtility.<>c__DisplayClass9.<FindObjectAccessed>b__8()   

     at Microsoft.SharePoint.SPSecurity.<>c__DisplayClass5.<RunWithElevatedPrivileges>b__3()   

     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.SharePoint.Utilities.SPUtility.FindObjectAccessed(SPWeb web, SPSite site, SPObjectType& objType, String& strObject, String& strListItemId)   

     at Microsoft.SharePoint.Utilities.SPUtility.RedirectToAccessDeniedPage(HttpContext context)   

     at Microsoft.SharePoint.Utilities.SPUtility.HandleAccessDenied(HttpContext context)   

     at Microsoft.SharePoint.Utilities.SPUtility.HandleAccessDenied(Exception ex)   

     at Microsoft.SharePoint.Library.SPRequest.GetMetadataForUrl(String bstrUrl, Int32 METADATAFLAGS, Guid& pgListId, Int32& plItemId, Int32& plType, Object& pvarFileOrFolder)   

     at Microsoft.SharePoint.SPWeb.GetList(String strUrl)   

     at Microsoft.SharePoint.Publishing.CacheManager..ctor(SPSite site)   

     at Microsoft.SharePoint.Publishing.CacheManager.GetManager(SPSite site, Boolean useContextSite, Boolean allowContextSiteOptimization, Boolean refreshIfNoContext)   

     at Microsoft.SharePoint.Publishing.CachedAreaLookup.EnsureLookup(Boolean errorsAsExceptions)   

     at Microsoft.SharePoint.Publishing.CachedAreaLookup.GetCachedAreaOrException()   

     at Microsoft.SharePoint.Publishing.Navigation.TaxonomyNavigationCache.GetCachedWebInfo(CachedAreaLookup cachedAreaLookup)   

     at Microsoft.SharePoint.Publishing.Navigation.TaxonomyNavigationCache.GetWebNavigationSettings(CachedAreaLookup cachedArea, CachedAreaLookup& parentCachedArea, Exception& loadError)   

     at Microsoft.SharePoint.Publishing.Navigation.TaxonomyNavigation.GetEffectiveProviderSettingsList(CachedAreaLookup cachedArea, Boolean includeInheritedSettings)   

     at Microsoft.SharePoint.Publishing.Navigation.TaxonomyNavigation.GetEffectiveProviderSettings[T](CachedAreaLookup cachedArea, String siteMapProviderName, Boolean includeInheritedSettings, CachedAreaLookup& cachedAreaWithSettings)   

     at Microsoft.SharePoint.Publishing.Navigation.TaxonomyNavigation.GetEffectiveProviderSettings[T](SPWeb web, String siteMapProviderName, Boolean includeInheritedSettings)   

     at Microsoft.SharePoint.Publishing.Navigation.SwitchableSiteMapProvider.GetCurrentWrappedProvider()   

     at Microsoft.SharePoint.Publishing.Navigation.SwitchableSiteMapProvider.get_RootNode()   

     at Microsoft.SharePoint.Publishing.Navigation.SwitchableDataSourceBehavior.AssignProperties(SiteMapProvider targetProvider)   

     at Microsoft.SharePoint.Publishing.Navigation.PortalSiteMapDataSource.OnInit(EventArgs e)   

     at System.Web.UI.Control.InitRecursive(Control namingContainer)   

     at System.Web.UI.Control.AddedControl(Control control, Int32 index)   

     at Microsoft.SharePoint.WebControls.DelegateControl.AddControlResilient(Control ctl)   

     at Microsoft.SharePoint.WebControls.DelegateControl.CreateChildControlsInternal()   

     at Microsoft.SharePoint.WebControls.DelegateControl.CreateChildControls()   

     at System.Web.UI.Control.EnsureChildControls()   

     at Microsoft.SharePoint.WebControls.DelegateControl.OnInit(EventArgs e)   

     at System.Web.UI.Control.InitRecursive(Control namingContainer)   

     at System.Web.UI.Control.InitRecursive(Control namingContainer)   

     at System.Web.UI.Control.InitRecursive(Control namingContainer)   

     at System.Web.UI.Control.InitRecursive(Control namingContainer)   

     at System.Web.UI.Control.InitRecursive(Control namingContainer)   

     at System.Web.UI.Control.InitRecursive(Control namingContainer)   

     at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)   

     at System.Web.UI.Page.ProcessRequest(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)   

     at System.Web.UI.Page.ProcessRequest()   

     at System.Web.UI.Page.ProcessRequest(HttpContext context)   

     at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()   

     at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)   

     at System.Web.HttpApplication.PipelineStepManager.ResumeSteps(Exception error)   

     at System.Web.HttpApplication.BeginProcessRequestNotification(HttpContext context, AsyncCallback cb)   

     at System.Web.HttpRuntime.ProcessRequestNotificationPrivate(IIS7WorkerRequest wr, HttpContext context)   

     at System.Web.Hosting.PipelineRuntime.ProcessRequestNotificationHelper(IntPtr rootedObjectsPointer, IntPtr nativeRequestContext, IntPtr moduleData, Int32 flags)   

     at System.Web.Hosting.PipelineRuntime.ProcessRequestNotification(IntPtr rootedObjectsPointer, IntPtr nativeRequestContext, IntPtr moduleData, Int32 flags)   

     at System.Web.Hosting.UnsafeIISMethods.MgdIndicateCompletion(IntPtr pHandler, RequestNotificationStatus& notificationStatus)   

     at System.Web.Hosting.UnsafeIISMethods.MgdIndicateCompletion(IntPtr pHandler, RequestNotificationStatus& notificationStatus)   

     at System.Web.Hosting.PipelineRuntime.ProcessRequestNotificationHelper(IntPtr rootedObjectsPointer, IntPtr nativeRequestContext, IntPtr moduleData, Int32 flags)   

     at System.Web.Hosting.PipelineRuntime.ProcessRequestNotification(IntPtr rootedObjectsPointer, IntPtr nativeRequestContext, IntPtr moduleData, Int32 flags)

    -

    SPRequest.GetMetadataForUrl: UserPrincipalName=, AppPrincipalName= ,bstrUrl=/_layouts/15/ManageFeatures.aspx ,METADATAFLAGS=59

    -

    Unknown SPRequest error occurred. More information: 0x80070002

    -

    Access Denied. Exception: Access is denied. (Exception from HRESULT: 0x80070005 (E_ACCESSDENIED)), StackTrace: 

     at Microsoft.SharePoint.Library.SPRequestInternalClass.GetMetadataForUrl(String bstrUrl, Int32 METADATAFLAGS, Guid& pgListId, Int32& plItemId, Int32& plType, Object& pvarFileOrFolder)   

     at Microsoft.SharePoint.Library.SPRequest.GetMetadataForUrl(String bstrUrl, Int32 METADATAFLAGS, Guid& pgListId, Int32& plItemId, Int32& plType, Object& pvarFileOrFolder).

    -

    System.UnauthorizedAccessException: Access is denied. (Exception from HRESULT: 0x80070005 (E_ACCESSDENIED)), StackTrace:  

     at Microsoft.SharePoint.SPWeb.GetList(String strUrl)   

     at Microsoft.SharePoint.Publishing.CacheManager..ctor(SPSite site)   

     at Microsoft.SharePoint.Publishing.CacheManager.GetManager(SPSite site, Boolean useContextSite, Boolean allowContextSiteOptimization, Boolean refreshIfNoContext)   

     at Microsoft.SharePoint.Publishing.CachedAreaLookup.EnsureLookup(Boolean errorsAsExceptions)   

     at Microsoft.SharePoint.Publishing.CachedAreaLookup.GetCachedAreaOrException()   

     at Microsoft.SharePoint.Publishing.Navigation.TaxonomyNavigationCache.GetCachedWebInfo(CachedAreaLookup cachedAreaLookup)   

     at Microsoft.SharePoint.Publishing.Navigation.TaxonomyNavigationCache.GetWebNavigationSettings(CachedAreaLookup cachedArea, CachedAreaLookup& parentCachedArea, Exception& loadError)   

     at Microsoft.SharePoint.Publishing.Navigation.TaxonomyNavigation.GetEffectiveProviderSettingsList(CachedAreaLookup cachedArea, Boolean includeInheritedSettings)   

     at Microsoft.SharePoint.Publishing.Navigation.TaxonomyNavigation.GetEffectiveProviderSettings[T](CachedAreaLookup cachedArea, String siteMapProviderName, Boolean includeInheritedSettings, CachedAreaLookup& cachedAreaWithSettings)   

     at Microsoft.SharePoint.Publishing.Navigation.TaxonomyNavigation.GetEffectiveProviderSettings[T](SPWeb web, String siteMapProviderName, Boolean includeInheritedSettings)   

     at Microsoft.SharePoint.Publishing.Navigation.SwitchableSiteMapProvider.GetCurrentWrappedProvider()   

     at Microsoft.SharePoint.Publishing.Navigation.SwitchableSiteMapProvider.get_RootNode()   

     at Microsoft.SharePoint.Publishing.Navigation.SwitchableDataSourceBehavior.AssignProperties(SiteMapProvider targetProvider)   

     at Microsoft.SharePoint.Publishing.Navigation.PortalSiteMapDataSource.OnInit(EventArgs e)   

     at System.Web.UI.Control.InitRecursive(Control namingContainer)   

     at System.Web.UI.Control.AddedControl(Control control, Int32 index)   

     at Microsoft.SharePoint.WebControls.DelegateControl.AddControlResilient(Control ctl)   

     at Microsoft.SharePoint.WebControls.DelegateControl.CreateChildControlsInternal()   

     at Microsoft.SharePoint.WebControls.DelegateControl.CreateChildControls()   

     at System.Web.UI.Control.EnsureChildControls()   

     at Microsoft.SharePoint.WebControls.DelegateControl.OnInit(EventArgs e)   

     at System.Web.UI.Control.InitRecursive(Control namingContainer)   

     at System.Web.UI.Control.InitRecursive(Control namingContainer)   

     at System.Web.UI.Control.InitRecursive(Control namingContainer)   

     at System.Web.UI.Control.InitRecursive(Control namingContainer)   

     at System.Web.UI.Control.InitRecursive(Control namingContainer)   

     at System.Web.UI.Control.InitRecursive(Control namingContainer)   

     at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)   

     at System.Web.UI.Page.ProcessRequest(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)   

     at System.Web.UI.Page.ProcessRequest()   

     at System.Web.UI.Page.ProcessRequest(HttpContext context)   

     at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()   

     at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)   

     at System.Web.HttpApplication.PipelineStepManager.ResumeSteps(Exception error)   

     at System.Web.HttpApplication.BeginProcessRequestNotification(HttpContext context, AsyncCallback cb)   

     at System.Web.HttpRuntime.ProcessRequestNotificationPrivate(IIS7WorkerRequest wr, HttpContext context)   

     at System.Web.Hosting.PipelineRuntime.ProcessRequestNotificationHelper(IntPtr rootedObjectsPointer, IntPtr nativeRequestContext, IntPtr moduleData, Int32 flags)   

     at System.Web.Hosting.PipelineRuntime.ProcessRequestNotification(IntPtr rootedObjectsPointer, IntPtr nativeRequestContext, IntPtr moduleData, Int32 flags)   

     at System.Web.Hosting.UnsafeIISMethods.MgdIndicateCompletion(IntPtr pHandler, RequestNotificationStatus& notificationStatus)   

     at System.Web.Hosting.UnsafeIISMethods.MgdIndicateCompletion(IntPtr pHandler, RequestNotificationStatus& notificationStatus)   

     at System.Web.Hosting.PipelineRuntime.ProcessRequestNotificationHelper(IntPtr rootedObjectsPointer, IntPtr nativeRequestContext, IntPtr moduleData, Int32 flags)   

     at System.Web.Hosting.PipelineRuntime.ProcessRequestNotification(IntPtr rootedObjectsPointer, IntPtr nativeRequestContext, IntPtr moduleData, Int32 flags)

    -

    SPRequest.GetMetadataForUrl: UserPrincipalName=i:0).w|s-1-5-21-1794000256-2036170096-312552118-17692, AppPrincipalName= ,bstrUrl=/Cache Profiles ,METADATAFLAGS=59

    -

    Feature Activation: Feature 'PublishingSite' (ID: 'f6924d36-2fa8-4f0b-b16d-06b7250180fa') was activated at URL https://intranet.domain.com.

    -

    -

    Calling 'FeatureActivated' method of SPFeatureReceiver for Feature 'PublishingSite' (ID: 'f6924d36-2fa8-4f0b-b16d-06b7250180fa').

    -

    Feature Activation: Activating Feature 'PublishingSite' (ID: 'f6924d36-2fa8-4f0b-b16d-06b7250180fa') at URL https://intranet.domain.com.

    -


    • Edited by MaliStane Friday, August 1, 2014 11:48 AM
    Friday, August 1, 2014 9:02 AM

All replies

  • Hi Mali,

    According to your description, my understanding is that users cannot access the SharePoint site if SharePoint Server Publishing Infrastructure is enabled.

    If I misunderstood please feel free to correct me.

    I recommend use PowerShell to activate the feature in SharePoint 2013 to see if the issue still occurs.

    http://technet.microsoft.com/en-us/library/ff607803(v=office.15).aspx

    Best regards.

    Thanks


    Victoria Xia
    TechNet Community Support

    Monday, August 4, 2014 8:11 AM
    Moderator
  • Same problem, i started with PowerShell

    Problem is  HSNC, because of the following scenario.

    I have server = Server.domain.com

    I have HNSC WebApp = Alfa.domain.com

    I have empty root SiteColection = Alfa.domain.com

    I have  HNSC = Server.domain.com

    WebApp should be set to server name.

    Monday, August 4, 2014 8:57 AM
  • Hi Mali,

    I recommend to create a new web application and a new host name site collection, then enable the SharePoint Server Publishing Infrastructure to see if the issue still occurs.

    The error occurred may be due to the corruption with the Web Application, so I recommend to delete and re-create the web application, and then restore the host name site collection in the new web application.

    Best regards.

    Thanks


    Victoria Xia
    TechNet Community Support

    Wednesday, August 6, 2014 1:09 AM
    Moderator
  • Do you have object cache accounts on the web application if any configured correctly?

    This post is my own opinion and does not necessarily reflect the opinion or view of Slalom.

    Wednesday, August 6, 2014 3:18 AM
  • These was my first HNSC. All other setups did was classic way with PB. I always deploy with scripts, so configuration is done correctly.

    I think that with HNSC, you do empty site collection and it HAS TO BE  server name, not something else.  If anyone can confirm that, it would be  grate, I did not find any article regarding that.  But in ANY configurations,  empty site collection is site collection with server name.

    Now everything works.

    Wednesday, August 6, 2014 6:08 AM
  • Hi!

    Sorry for reopen this old post but I'm experiencing a similar issue, but there is no way I can get access again until disable the feature via PS, were you able to solve this?

    Regards


    Eliel Aguilera Microsoft Student Partner - Venezuela
    Blog

    Friday, January 30, 2015 9:34 AM
  • I was unable to solve it.

    In the and, i have move to  path based  web application. I think »hope« that problem lies in the server name. Because  internal IT has setup server name    that was the same as  it was   root webapp and site collection.

    Friday, January 30, 2015 10:04 AM
  • Hi again, I found this entry as open yet, in my case the solution was to assign the user accounts for Super Reader and Super User (TechNet Instructions) and set the full read and full control permissions respectively in the Web Application -> User Policies.

    I hope this help some one in the future.


    Eliel Aguilera
    Blog


    • Edited by Eliel Aguilera Thursday, July 7, 2016 8:33 AM semantic fail
    Thursday, July 7, 2016 8:32 AM