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  |  

  Need Help?  
Professional technical support for DotNetNuke is available from DotNetNuke Corporation.
 


  Ads  
Aspose - The .NET & Java component publisher
 


  Sponsors  

Meet Our Sponsors

MaximumASP
SourceGear - Tools for Developers
.: CounterSoft :.
telerik
ExactTarget email software solutions
Merak Mail Server
 


DotNetNuke Forums
 
  Forum  General DotNetN...  Extend It! ( Pr...  Create User from another site
Previous Previous
 
Next Next
New Post 9/1/2007 6:29 AM
User is offline mpoulak
2 posts
10th Ranked


Create User from another site 

Hi!

I'm new in dnn and I want to create a class that creates a new user in dnn from an external site, i mean that i want to throw the new user in the dnn database.
I use the code from the dnn that do this and when my site is in the dnn folders there is no problem.
But when i create an external site the code doesn' t run.

For example I use this code :

        Dim objUserInfo As UserInfo
        objUserInfo = UserController.GetUserByName(PoId, UserNam, False)

and the debugger throws me initiallizer exception.

Has anyone have an idea what may be  the problem.

I note that in the external site i haven' t put global.asax file and in the web.config the only thing i have put is the connectionstring for the database (that works fine). I have search to this files but i haven' t find something that i can get.

Thanks!

 
New Post 9/2/2007 6:40 AM
User is offline Wes Tatters
400 posts
8th Ranked


Re: Create User from another site 

Umm the code you are trying to use is part of the DNN FRAMEWORK.

You cant just cut and paste this code into a site that is not a dnn site.  
All the underlying DNN classes and context simply are not available in the external site.

Westa

 

 

 
New Post 9/2/2007 7:20 AM
User is offline mpoulak
2 posts
10th Ranked


Re: Create User from another site 

Yes, i know that there are no available the classes, so i put them (the dll files) in the bin folder of the external site. There is no problem to find the classes.

 
Previous Previous
 
Next Next
  Forum  General DotNetN...  Extend It! ( Pr...  Create User from another site
 


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.

 


DotNetNuke® in Sweden
All service of DotNetNuke® in Sweden.
Olsmar Konsult
Overlook Technology
Website Development, DotNetNuke Consulting, Module Development, Portal Management
OverlookTechnology.com
DeutschNetNuke = DotNetNuke in German
DeutschNetNuke provides all DotNetNuke related services in German (and English).
www.DeutschNetNuke.de

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