I am using DNN 6.5.1.
I want to leverage the DotNetNuke Entities controllers to retrieve data from the DNN database. If I use these classes in a DNN module everything works fine. However I want to use the Entities controllers in a WCF service. The code below illustrates how I am trying to login using my admin user.
C# Code
UserLoginStatus userLoginStatus = new UserLoginStatus();
UserController.UserLogin(0, "admin_user", "admin_password", string.Empty, string.Empty, "127.0.0.1",
ref userLoginStatus, false);
Executing my service contract method with these two lines of code via the WCF Test Client always returns NullReferenceException.
I have also attempted this using a Windows Console Application with the same result.
I think it is related to the web.config file which I created using the standard DNN web.config with the system.serviceModel section added.
We are looking to purchase the Enterprise Edition and solving problems like this are critical to our decision making. I will be very grateful for any pointers on how to use the DNN Entity Controllers outside of a DNN module.
Mike...