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 ?