Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

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 ...Using the DNN Framework in a separate Web ServiceUsing the DNN Framework in a separate Web Service
Previous
 
Next
New Post
3/18/2009 5:55 AM
 

We have a rather complex set-up with our DNN membership being in a separate profile database.

I have been asked to create a web service in order to synchronise our databases and I want to use the DNN Framework to simply retrieve, update and delete users and roles.

I have added a references to the DotNetNuke.dll and the DotNetNuke.Membership.Dataprovider.dll in the web service and I have also added connection strings and AppSettings in my web service web.config file that match a DNN installation.

However whenever I try to retrieve a user using the following code (with a valid PortalID & username):

Dim dnnUserInfo As DotNetNuke.Entities.Users.UserInfo = UserController.GetUserByName(pvUserInfo.PortalID, pvUserInfo.UserName)

I get the following error:

{"The type initializer for 'DotNetNuke.Entities.Users.UserController' threw an exception."}
    System.TypeInitializationException: {"The type initializer for 'DotNetNuke.Entities.Users.UserController' threw an exception."}
    Data: {System.Collections.ListDictionaryInternal}
    HelpLink: Nothing
    InnerException: {"The type initializer for 'DotNetNuke.Security.Membership.MembershipProvider' threw an exception."}
    Message: "The type initializer for 'DotNetNuke.Entities.Users.UserController' threw an exception."
    Source: "DotNetNuke"
    StackTrace: "   at DotNetNuke.Entities.Users.UserController.GetUserByName(Int32 portalId, String username)    at DNNPortalWebService.DNNPortal.UpdateUser(Int32 i) in D:\HRGPortal\Web Services\DNNPortalWebService\DNNPortal.asmx.vb:line 31"
    TargetSite: {System.Reflection.RuntimeMethodInfo}

So am I doing something fundamentally wrong?

Or can I not use the DNN framework outside of a DNN installation?

 

 


Blue & White hooped blood runs through my veins!
 
New Post
3/20/2009 8:21 AM
 

*** POP ***

Has anyone ever tried this?

Surely I can't be the first person who has wanted to use the DNN Framework outside of the normal website am I?


Blue & White hooped blood runs through my veins!
 
New Post
3/20/2009 8:27 AM
 

Please see: IWeb

 



Michael Washington
http://ADefWebserver.com
www.ADefHelpDesk.com
A Free Open Source DotNetNuke Help Desk Module
 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Administration ...Administration ...Using the DNN Framework in a separate Web ServiceUsing the DNN Framework in a separate Web Service


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.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out