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

HomeHomeDevelopment and...Development and...DNN Platform (o...DNN Platform (o...DNN SDKDNN SDK
Previous
 
Next
New Post
4/1/2009 6:56 PM
 

VishalG wrote
 

Before, I was creating a stand-alone web service in my DNN solution (rather than extending the WebService class in DNN).   I thought maybe that was the reason it was not working, so I tried extending the WebService class instead, but for the same results.

I was also NOT setting the PortalID property on the user because I didn't know how to get to the PortalID in my CreateUser method.  Then I came across the DNN core CreateUser method provided with the standard web services that come with the IWeb module install.  This method was using the IWebCredentials property to get the portal ID to assign it to the new user (which is the only difference in my code and the core DNN code).  Now, the problem is that it is complaining about IWebUserCredentials property being unreferenced.  In other words, the IWebUserCredentials is NOTHING.  

IWeb  is actually not part of the Core. It is just a module that Ian and I created. So you have to have teh IWeb module installed for IWebUserCredentials to be avaliable.

This article might clear some things up:

Creating Secure DotNetNuke ASP.NET AJAX Web Services



Michael Washington
http://ADefWebserver.com
www.ADefHelpDesk.com
A Free Open Source DotNetNuke Help Desk Module
 
New Post
4/3/2009 2:50 PM
 

Thanks for your response, Michael.

I actually used the IWebCredentials after I installed the IWeb module.  There is a "CreateUser" web method that ships out with the standard IWeb module web services,  and even that is not working because of the IWebCredentials being NOTHING.

Following is what's thrown when I try to run the CreateUser method using the standard web services ...

 

System.NullReferenceException: Object reference not set to an instance of an object.   
 at DotNetNuke.Modules.IWeb.IWebAuthendication..ctor(IWebAuthendicationHeader IWebCredentials)    
at DotNetNuke.Modules.IWeb.WebService.CreateUser
(String NewUsername, String FirstName, String LastName, String DisplayName, String email, String Newpassword)
 
New Post
4/3/2009 3:47 PM
 

VishalG wrote
 

I actually used the IWebCredentials after I installed the IWeb module.  There is a "CreateUser" web method that ships out with the standard IWeb module web services,  and even that is not working because of the IWebCredentials being NOTHING.

When you install the IWeb module and you click on the link to download and install the IWeb connector Client,

 

the IWeb connector Client has a method to create a user.

IWebscreenshot2.jpg

The only time this wont work is if your password or url is wrong.



Michael Washington
http://ADefWebserver.com
www.ADefHelpDesk.com
A Free Open Source DotNetNuke Help Desk Module
 
Previous
 
Next
HomeHomeDevelopment and...Development and...DNN Platform (o...DNN Platform (o...DNN SDKDNN SDK


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