forms authentication issue
I have a sharepoint 2007 site that utilizes Forms Authentication, I have all right pieces set up and the database configured with users, but when I try to goto the site, I get the following error:This control only works in the context of a SharePoint site. SPContext.GetContext failed to return an SPContext for the current request context. at Microsoft.SharePoint.Utilities.RightsSensitiveVisibilityHelper.UserHasRights(PermissionContext permissionContext, SPBasePermissions permissions, PermissionMode permissionMode, SPContext context, SPWeb contextWeb, SPList contextList) at Microsoft.SharePoint.Utilities.RightsSensitiveVisibilityHelper.ShouldBeVisible(PermissionContext permissionContext, SPBasePermissions permissions, PermissionMode permissionMode, PageModes pageModes, AuthenticationRestrictions authenticationRestrictions, SPContext renderContext, SPList contextList) at Microsoft.SharePoint.WebControls.SPSecurityTrimmedControl.get_ShouldRender() at Microsoft.SharePoint.WebControls.SPSecurityTrimmedControl.get_Visible() at System.Web.UI.Control.PreRenderRecursiveInternal() at System.Web.UI.Control.PreRenderRecursiveInternal() at System.Web.UI.Control.PreRenderRecursiveInternal() at System.Web.UI.Control.PreRenderRecursiveInternal() at System.Web.UI.Control.PreRenderRecursiveInternal() at System.Web.UI.Control.PreRenderRecursiveInternal() at System.Web.UI.Control.PreRenderRecursiveInternal() at System.Web.UI.Control.PreRenderRecursiveInternal() at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) I need some help deciphering the error message as I have no idea what it means. Any help would be appreciated.thanks
February 10th, 2010 2:19am

Hi,I can't say for sure that this is your problem, but how have you implemented your login page? If you have a login page that contains an SPSecurityTrimmedControl (or your login page is using a Master Page that has this control), then this will probably cause the error.The login page does not run within the context of a SharePoint site, hence the message "This control only works in the context of a SharePoint site".Anyway, I hope this gives you something to work with.Paul.
Free Windows Admin Tool Kit Click here and download it now
February 10th, 2010 2:25am

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics