Small width layout Medium width layout Maximum width layout Small text Medium text Large text
     Search
Downloads Downloads Directory Directory Forums Forums Forge Forge Blogs Blogs        Marketplace Marketplace Careers Program Careers
Community › Forums Register  |  

$4.95 Windows Hosting at Webhost4life.com
  Ads  
r2i.ntegrated
 


  Sponsors  

Meet Our Sponsors

Merak Mail Server
WebSecureStores -- ASP.NET & DotNetNuke Hosting Solutions
FCKeditor Project
Salaro -- Skins and more
OnyakTech
CrystalTech Web Hosting™
 


DotNetNuke Forums
 
  Forum  General DotNetN...  Extend It! ( Pr...  add users programmatically
Previous Previous
 
Next Next
New Post 9/6/2007 7:48 AM
User is offline safouane
1 posts
10th Ranked


add users programmatically 

Hello everybody

Il developed a winform application wich retrieve new users from a text file and add them to dnn.

to do that, I used DotNetNuke.Entities.Users.UserController.CreateUser(ref DotNetNuke.Entities.Users.UserInfo).

But when I tried to set user properties (user.Username='tot'), a TypeInitializationException is thrown !

I used App.config file to configure the application :

 <?xml version="1.0" encoding="utf-8" ?>configuration>connectionStrings>add name="AspNetServices" connectionString="Data Source=(local);Initial Catalog=oncd;Integrated Security=True"/>connectionStrings>system.web>machineKey

 

validationKey="C9DDFB582CF237A35993552D8B96B830A255D835"

 

decryptionKey="91EB0665E29F48E0F61BD47EFB830CD8ADE3F9ABECFA5304"

 

decryption="3DES"

 

<

validation="SHA1"/>membership

 

defaultProvider="AspNetSqlMembershipProvider"

 

<

<

<

userIsOnlineTimeWindow="15">providers>clear/>add name="AspNetSqlMembershipProvider"

 

type="System.Web.Security.SqlMembershipProvider"

 

connectionStringName="AspNetServices"

 

enablePasswordRetrieval="true"

 

enablePasswordReset="true"

 

requiresQuestionAndAnswer="false"

 

minRequiredPasswordLength="7"

 

minRequiredNonalphanumericCharacters="0"

 

requiresUniqueEmail="false"

 

passwordformat="Encrypted"

 

applicationName="DotNetNuke"

 

</

</

 

</

</

description="Stores and retrieves membership data from the local Microsoft SQL Server database" />providers>membership>system.web>configuration>

<

<

<

</

<

<

 
Previous Previous
 
Next Next
  Forum  General DotNetN...  Extend It! ( Pr...  add users programmatically
 


Forum Policy

These Discussion Forums are dedicated to the discussion of the DotNetNuke Web Application Framework.

For the benefit of the community and to protect the integrity of the project, 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.

 


SteadyRain
Founded in 1999, SteadyRain has extensive experience delivering Internet technology strategies and solutions for a diverse client base, ranging from Fortune 500 firms to successful start-ups.
www.steadyrain.com
AfterImage Internet Consulting and SEO Services
AfterImage provides search engine optimization (SEO), Internet consulting and hosting services for the Windows platform (IIS, ASP, SQL Server).
www.afterimage.nl/
Alki Homes - Seattle, WA
Exemplary service for your Seattle Real Estate needs. It's what you deserve from your Realtor®!
www.alkihomes.com

DotNetNuke Corporation   Terms Of Use  Privacy Statement
DotNetNuke®, DNN®, and the DotNetNuke logo are trademarks of DotNetNuke Corporation
Hosted by MaximumASP