locked
Should prompt for authentication but PortalSiteMapProvider error on custom layouts page RRS feed

  • Question

  • Hi,

    I have a SharePoint 2007 site that has both Windows and Forms-Based authentication and has anonymous access enabled for the web application in order to alllow users to reach a small public "host header" site collection before logging into the extranet site (created at a exclusive managed path location: /internal).

    We deployed a custom workflow with a custom approval page in the layouts folder (e.g. _layouts/workflow/approval.aspx).  When an item needs to be approved for the public site, an email is sent to the approvers with a link to the task page:

    http://myserver.com/internal/_layouts/workflow/ApprovalForm.aspx?List=12bbfbae-452b-476f-96e6-a2cfbce8342d&id=1

    If a user is logged in (Windows or Forms) and clicks the link, they arrive at the task page just fine.

    If not, rather than prompting the user for authentication, the log files show that the PortalSite MapProvider throws an error that it cannot fetch the current node because it cannot find the item:

    PortalSiteMapProvider was unable to fetch current node, request URL: /_layouts/workflow/ApprovalForm.aspx, message: No item exists at http://myserver.com/_layouts/workflow/ApprovalForm.aspx?List=12bbfbae-452b-476f-96e6-a2cfbce8342d&id=1  It may have been deleted or renamed by another user., stack trace:    at Microsoft.SharePoint.SPContext.get_Item()     at Microsoft.SharePoint.SPContext.get_ListItem()     at Microsoft.SharePoint.Publishing.Navigation.PortalSiteMapProvider.get_CurrentNode() 

    This only happens in our production system.  The same scenario works just fine in two virtual dev environments, but those are single server installations.

    Any ideas why the user is not prompted to log in from this custom _layouts location?

    thanks,

    mfharvey

    Thursday, February 2, 2012 2:33 PM

Answers

  • For anyone else who runs into this, we solved it with a simple IISReset.  When stumped, I need to remember the 3 "R's" - refresh, reset, reboot :-).

     

     

    • Marked as answer by mfharvey Friday, February 3, 2012 3:31 PM
    Friday, February 3, 2012 3:31 PM