yes, the administratorRoleId and RegisteredRoleId refer back to the correct records in the roles table with the matching portalid.
Here's the stack trace for the error message I'm getting in the event log:
2014-08-16 11:22:11,047 [P3NW8SHG357][Thread:72][ERROR] DotNetNuke.Services.Exceptions.Exceptions - System.ArgumentOutOfRangeException: Specified argument was out of the range of valid values.
Parameter name: index
at System.Web.UI.ControlCollection.get_Item(Int32 index)
at DotNetNuke.UI.Containers.Container.GetPortalModuleBase(UserControl control)
2014-08-16 11:22:11,062 [P3NW8SHG357][Thread:72][FATAL] DotNetNuke.Framework.PageBase - An error has occurred while loading page.
System.NullReferenceException: Object reference not set to an instance of an object.
at DotNetNuke.Security.Permissions.PermissionProvider.IsDeniedTabPermission(TabInfo tab, String permissionKey)
at DotNetNuke.Security.Permissions.PermissionProvider.HasModuleAccess(SecurityAccessLevel accessLevel, String permissionKey, ModuleInfo moduleConfiguration)
at DotNetNuke.UI.Modules.ModuleInstanceContext.get_IsEditable()
at DotNetNuke.Entities.Modules.PortalModuleBase.get_IsEditable()
at AllDnn.More.More.Page_Load(Object sender, EventArgs e)
at System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e)
at System.Web.UI.Control. (EventArgs e)
at System.Web.UI.Control.LoadRecursive()
at System.Web.UI.Control.LoadRecursive()
at System.Web.UI.Control.LoadRecursive()
at System.Web.UI.Control.LoadRecursive()
at System.Web.UI.Control.LoadRecursive()
at System.Web.UI.Control.LoadRecursive()
at System.Web.UI.Control.LoadRecursive()
at System.Web.UI.Control.LoadRecursive()
at System.Web.UI.Control.LoadRecursive()
at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
2014-08-16 11:22:11,078 [P3NW8SHG357][Thread:72][ERROR] DotNetNuke.Services.Exceptions.Exceptions - ~/Default.aspx?tabid=248&error=terminate
System.NullReferenceException: Object reference not set to an instance of an object.
at DotNetNuke.Security.Permissions.PermissionProvider.IsDeniedTabPermission(TabInfo tab, String permissionKey)
at DotNetNuke.Security.Permissions.PermissionProvider.HasModuleAccess(SecurityAccessLevel accessLevel, String permissionKey, ModuleInfo moduleConfiguration)
at DotNetNuke.UI.Modules.ModuleInstanceContext.get_IsEditable()
at DotNetNuke.Entities.Modules.PortalModuleBase.get_IsEditable()
at AllDnn.More.More.Page_Load(Object sender, EventArgs e)
at System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e)
at System.Web.UI.Control. (EventArgs e)
at System.Web.UI.Control.LoadRecursive()
at System.Web.UI.Control.LoadRecursive()
at System.Web.UI.Control.LoadRecursive()
at System.Web.UI.Control.LoadRecursive()
at System.Web.UI.Control.LoadRecursive()
at System.Web.UI.Control.LoadRecursive()
at System.Web.UI.Control.LoadRecursive()
at System.Web.UI.Control.LoadRecursive()
at System.Web.UI.Control.LoadRecursive()
at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
2014-08-16 11:22:11,078 [P3NW8SHG357][Thread:72][ERROR] DotNetNuke.Services.Exceptions.Exceptions - DotNetNuke.Services.Exceptions.PageLoadException: Object reference not set to an instance of an object. ---> System.NullReferenceException: Object reference not set to an instance of an object.
at DotNetNuke.Security.Permissions.PermissionProvider.IsDeniedTabPermission(TabInfo tab, String permissionKey)
at DotNetNuke.Security.Permissions.PermissionProvider.HasModuleAccess(SecurityAccessLevel accessLevel, String permissionKey, ModuleInfo moduleConfiguration)
at DotNetNuke.UI.Modules.ModuleInstanceContext.get_IsEditable()
at DotNetNuke.Entities.Modules.PortalModuleBase.get_IsEditable()
at AllDnn.More.More.Page_Load(Object sender, EventArgs e)
at System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e)
at System.Web.UI.Control. (EventArgs e)
at System.Web.UI.Control.LoadRecursive()
at System.Web.UI.Control.LoadRecursive()
at System.Web.UI.Control.LoadRecursive()
at System.Web.UI.Control.LoadRecursive()
at System.Web.UI.Control.LoadRecursive()
at System.Web.UI.Control.LoadRecursive()
at System.Web.UI.Control.LoadRecursive()
at System.Web.UI.Control.LoadRecursive()
at System.Web.UI.Control.LoadRecursive()
at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
--- End of inner exception stack trace ---