How to retrieve DNN user infos from a child application ?

Last post 06-10-2005 9:00 AM by Arnaud. 1 replies.

Sort Posts:

  • How to retrieve DNN user infos from a child application ?

    06-08-2005, 9:35 AM
    • Member
      10 point Member
    • Arnaud
    • Member since 06-08-2005, 9:15 AM
    • Posts 2
    I have a web service in a subfolder in the DNN structure which can be reached from outside DNN.
    In a web method of this web service, I would like that part of code to run :

    Imports DotNetNuke.Entities.Users

    Dim objUsers As UserController = New UserController
    Dim objUser As UserInfo = objUsers.GetUserByUsername(0, "doe")


    The problem is in the "GetUserByUsername" function : I get a null object reference (DataProvider.Instance()) at that line :

    dr = DataProvider.Instance().GetUserByUsername(PortalID, Username)

    How can I have the DNN sqlDataProvider beeing instanciated in my application ?

    Any Ideas ?

  • Re: How to retrieve DNN user infos from a child application ?

    06-10-2005, 9:00 AM
    • Member
      10 point Member
    • Arnaud
    • Member since 06-08-2005, 9:15 AM
    • Posts 2

    Solved.

    It works when I browse the web service in another subfolder instead of the web service project subfolder.

Page 1 of 1 (2 items)