locked
Dynamic Data Website and HttpContext.Current.User.IsAuthenticated RRS feed

  • Question

  • User1146730029 posted

    I have a Dynamic Data website. In the RegisterRoutes() for Global.aspx, I need to ensure that the user is authenticated.

    This is not working - I get an 'Object Reference not set to an instance of an object' error.

    What am I doing wrong?

    (I have other Web Applications where I can access the User.IsAuthenticated through the Global.aspx Session_Start event with no problems)

    Wednesday, March 28, 2012 11:19 AM

All replies

  • User-330204900 posted

    Hi jagdipa, there is no reason why this should not work, have you tried this in a vanila Dynamic Data project/website?

    Thursday, March 29, 2012 5:22 AM
  • User3866881 posted

    I have a Dynamic Data website. In the RegisterRoutes() for Global.aspx, I need to ensure that the user is authenticated.

    This is not working - I get an 'Object Reference not set to an instance of an object' error.

    What am I doing wrong?

    Please re-create another proj and have a try with that。

    If this still fails,plz show us your codes。

    Reguards!

    Thursday, March 29, 2012 9:13 PM