Thursday, February 09, 2012   Click here to search  
Welcome: Register | Login
You Are Here » Forums
 
Orlando DotNetNuke® Users Group (ODUG) Forums
 
 
HomeHomeGeneralGeneralHow To, Tips & ...How To, Tips & ...HOW TO: Programatically Create A New User in DotNetNuke®HOW TO: Programatically Create A New User in DotNetNuke®
Previous
 
Next
New Post
3/5/2009 1:35 PM
 

Hi Will

Oh, this is fantastic, I was searching for something like this for days.

I need to do a Registration Form that can save the info in another table plus the Users table, I think that with this code I can do this, what do you think? I need it to have more fields than the common Registration form of DNN.

So I'm realy new in DNN, and in ASP to, but I think, this is going to help me very much.

The best way to bild a Module is with de DNN Module Template?

 

Thenks and Regards

Javier

 
New Post
3/8/2009 2:03 PM
 

If all you need to do is to save more profile information, there is no need to create a new module, or store information into another table.  You can do this very easily by simply going to Admin > User Accounts > Manage Profile Properties.  The UI for adding and managing existing and new profile properties should be self-explanatory.

Give it a try, and let us know how it goes.

 
New Post
4/15/2010 3:54 PM
 

I can see that this is an old thread, but the topic is dead-on.

i am working with DNN Community 4.9.5. As soon as I call InitialiseProfile(0), I get an error.

"The type initializer for 'DotNetNuke.Entities.Profile.ProfileController' threw an exception."

The InnerException reads:

"System.TypeInitializationException: The type initializer for 'DotNetNuke.Data.DataProvider' threw an exception. ---> System.NullReferenceException: Object reference not set to an instance of an object.

at DotNetNuke.Framework.Reflection.CreateObject(String ObjectProviderType, String ObjectProviderName, String ObjectNamespace, String ObjectAssemblyName, Boolean UseCache) in C:\Inetpub\wwwroot\495\Library\Components\Framework\Reflection.vb:line 172

at DotNetNuke.Framework.Reflection.CreateObject(String ObjectProviderType, String ObjectNamespace, String ObjectAssemblyName) in C:\Inetpub\wwwroot\495\Library\Components\Framework\Reflection.vb:line 94

at DotNetNuke.Data.DataProvider.CreateProvider() in C:\Inetpub\wwwroot\495\Library\Components\Providers\Data\DataProvider.vb:line 44

at DotNetNuke.Data.DataProvider..cctor() in C:\Inetpub\wwwroot\495\Library\Components\Providers\Data\DataProvider.vb:line 39

--- End of inner exception stack trace ---

at DotNetNuke.Data.DataProvider.Instance()

at DotNetNuke.Entities.Profile.ProfileController..cctor() in C:\Inetpub\wwwroot\495\Library\Components\Users\Profile\ProfileController.vb:line 48"

Can you suggest where to look?
Thanks.

 
New Post
4/16/2010 10:10 AM
 

This is a clear indication that reflection is not properly taking place. This can generally happen in two places, depending on the provider. First, make sure that the web.config has the correct type address in the provider line. Typically, the correct address will look something like this:

MyCompany.Providers.Membership, MyCompany.Membership

The first part before the comma is the namespace and class name. Then there is a required comman and space. Finally, it ends with the name of the DLL file without the extension.

Then, in your classes, there is similar information hard-coded into your concrete provider class that you need to update as well.

 
New Post
4/16/2010 12:15 PM
 

Hi Will.

Thanks for the reply.

I was able to solve the problem. Basically, I was trying to create a separate VS website and add just enough DNN references to do the import. As I am pretty new to DNN, I definitely was not getting it right. So, I went over my development environment to see if I coud even build the DNN website cleanly - and I had problems. One weird one being that the compiler kept saying that I needed a newer version of the CountryListBox than 4.9.5 ships with. I just plugged the version number into the Assembly Info and rebuilt it.

I created my import as a User Control and then created a page using a skin which had my user control in it; and it worked.

Question:
What is the right way to build a sadnbox environment for DNN? If I try to run a local copy of the DNN website code in the Vs debugger, and the connection string points to a production environment, I seem to end up in the production environment - and I inherit all of the MS problems associated with trying to mess with a website on a remote share.

I was able to debug my import by attaching to the process on the server.

Thanks again.

 
Previous
 
Next
HomeHomeGeneralGeneralHow To, Tips & ...How To, Tips & ...HOW TO: Programatically Create A New User in DotNetNuke®HOW TO: Programatically Create A New User in DotNetNuke®


 
     
 
Forum Policy
 
 

These Forums are dedicated to the discussion of the Orlando DotNetNukeUG Users Group surrounding the kindred usage of DotNetNuke Web Application Framework.

For the benefit of the community and to protect the integrity of the UG, 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 DotNetNuke.
2. Discussion or promotion of DotNetNuke product releases under a different brand name are strictly prohibited.
3. No Flaming or Trolling.
4. No Profanity, Racism, or Prejudice.
5. Site Moderators have the final word on approving/removing a thread or post or comment.
6. English language posting only, please.

 
     
Terms Of Use | Privacy Statement
© 2008-2011 Orlando DotNetNuke® Users Group (ODUG)
DotNetNuke® Powered! v5.6.3.45
DotNetNuke® Powered! v05.01.00
Skin designed by Will Strohl
Website hosted by Applied Innovations
Orlando DotNetNuke® Users Group
DotNetNuke® is a registered trademark of the DotNetNuke® Corporation