Learn More





Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeUsing DNN Platf...Using DNN Platf...Administration ...Administration ...DNN method outsite DNN applicationDNN method outsite DNN application
New Post
1/28/2016 4:48 AM

Hello Sir/Mam,

I have created WCF service, which is outside of my DNN Web Site.This Service works for create a new user in DNN and it have some parameters which is mandatory for create a new user in DNN.when i run this service it gives me null reference error. When i checked this i found FirstName and LastName is null here i tried with hard coded firstname,lastname as well but the same issue i found.

 Is it possible to execute DNN method like create user etc using DNN dll outside DNN application (Separate application)? If yes please help me how to configure that.


Thank You.


Sourabh S. Malani


New Post
1/28/2016 11:23 AM
Everything is possible but...

I would suggest you adopt the DNN Services Framework and WebAPI rather than WCF. By working with the templates and tutorials available you should learn more easily about how to work with the DNN Entities within your API and have the added benefits of being able to secure your service by Module or Role. I imagine there is a case scenario where an external WCF service might be the only viable solution but unless you are sure that is the best option I might reconsider my approach. If you work with the WebAPI within your DNN instance you could expose the DNN Entities via inheritance and make life much easier.

HomeHomeUsing DNN Platf...Using DNN Platf...Administration ...Administration ...DNN method outsite DNN applicationDNN method outsite DNN application

These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

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

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. 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.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
Try Evoq
For Free
Start Free Trial
a Demo
See Evoq Live
Need More Information?