DNN Forums

Ask questions about your website to get help learning DNN and help resolve issues.

Error after logging in

Sort:
You are not authorized to post a reply.





New Around Here





    Our DNN site is version 9.1.1.  When we create a new login, if they enter the correct username and password, the following error is generated if they are an administrator.  When we make them a SuperUser, they are logged in as expected.  This only happens in Portal 0.  We have 25 portals in the installation, and they work fine.

    AbsoluteURL:/Default.aspx

    DefaultDataProvider:DotNetNuke.Data.SqlDataProvider, DotNetNuke

    ExceptionGUID:8c9d6a0e-bddd-4632-bf8c-7d2d9fecfd3b

    AssemblyVersion:

    PortalId:-1

    UserId:-1

    TabId:-1

    RawUrl:

    Referrer:

    UserAgent:

    ExceptionHash:uIjmmv9QDiYPT4AEja34hF7/814=

    Message:Object reference not set to an instance of an object.

    StackTrace:

    
     

     

    InnerMessage:Object reference not set to an instance of an object.

    InnerStackTrace:

    at DotNetNuke.Entities.Users.UserProfile.GetPropertyValue(String propName) at DotNetNuke.Entities.Users.UserProfile.get_PreferredTimeZone() at Dnn.PersonaBar.Library.Containers.PersonaBarContainer.GetConfigration(PortalSettings portalSettings) at ASP.desktopmodules_admin_dnn_personabar_usercontrols_personabarcontainer_ascx.__RenderPersonaBarPanel(HtmlTextWriter __w, Control parameterContainer) at System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) at System.Web.UI.WebControls.WebControl.RenderContents(HtmlTextWriter writer) at System.Web.UI.WebControls.WebControl.Render(HtmlTextWriter writer) at System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter) at System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) at System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter) at System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) at System.Web.UI.HtmlControls.HtmlForm.RenderChildren(HtmlTextWriter writer) at System.Web.UI.HtmlControls.HtmlContainerControl.Render(HtmlTextWriter writer) at System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter) at System.Web.UI.HtmlControls.HtmlForm.RenderControl(HtmlTextWriter writer) at System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) at System.Web.UI.HtmlControls.HtmlContainerControl.Render(HtmlTextWriter writer) at System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter) at System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) at DotNetNuke.Framework.PageBase.Render(HtmlTextWriter writer) at DotNetNuke.Framework.DefaultPage.Render(HtmlTextWriter writer) at System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter) at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)

     

    Source:

    FileName:

    FileLineNumber:0

    FileColumnNumber:0

    Method:

    Server Name: 

     

    When we try an view their profile, we get this:

     

    Error: ViewProfile is currently unavailable. DotNetNuke.Services.Exceptions.ModuleLoadException: Object reference not set to an instance of an object. ---> System.NullReferenceException: Object reference not set to an instance of an object. at DotNetNuke.Entities.Users.ProfilePropertyAccess.DisplayDataType(ProfilePropertyDefinition definition) at DotNetNuke.Modules.Admin.ViewProfile.ViewProfile.OnLoad(EventArgs e) --- End of inner exception stack trace ---






    Veteran Member





      It is not exactly the same as you are experiencing but https://github.com/dnnsof...Platform/issues/2413 is also addressing 'redirect after login' issue. The code that should be fixing it (https://github.com/dnnsof....Platform/pull/2275) was in relation to multi lingual and fixed in 9.4. If you were to upgrade, I'd bump to 9.4.1.
      As you are on 9.1, please beware that a lot of code has been deprecated. It is still very doable in most cases but take the right steps.
      Tjep's digital agencyRegards,
      Tycho de Waard

      Tjep's digital agency
      We just love DNN
      https://www.tjeps.com





      Advanced Member





        is there a workaround I can use?





        Advanced Member





          Did you ever solve this problem or find a workaround?






          New Around Here





            Just had this with DNN 9.9.0 which seems to give an error when creating a new user (error message displayed) but then still creates the user.

            Scenario: Imported a project. Added a new user, which displayed an error message but did actually create a user. Added Administrator role to user. Tried to login as user but Server 500 error and admin log displays error mentioned by Tom Wolfe. The site did have a redirect tabid set after login but think this is a red herring.

            Workaround : Error was due to preferred timezone for user. Went to profile admin and set preferred timezone to list timeZone and then set a valid timezone for user. This allowed the user to login but even though they were administrator they didn't have edit permissions (pen) or missing half on the persona menu items. So added Registered user role in through the database in userrole table for that user and portal and then everything works fine.
            You are not authorized to post a reply.

            These Forums are dedicated to the discussion of DNN Platform.

            For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

            1. If you have (suspected) security issues, please DO NOT post them in the forums but instead follow the official DNN security policy
            2. No Advertising. This includes the promotion of commercial and non-commercial products or services which are not directly related to DNN.
            3. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
            4. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
            5. No Flaming or Trolling.
            6. No Profanity, Racism, or Prejudice.
            7. Site Moderators have the final word on approving / removing a thread or post or comment.
            8. English language posting only, please.

            Would you like to help us?

            Awesome! Simply post in the forums using the link below and we'll get you started.

            Get Involved