Recently Viewed...
DNN Modules
SnowCovered Top Sellers

Edit documents directly on your server. The premier document management solution for DotNetNuke (DNN). Index contents of documents. Share documents across your portal and avoid duplicates. Revised and flexible UI. Extensible architecture.

'Relationship Building' and 'Communication' are two essential nuts and bolts for a business to prosper. This module allows you to bridge both of these and easily generate continuous awareness of your web site, products and services. Your prospects and customers will greatly appreciate this featur

Live Content uses Web 2.0 approach to provide a Rich User Interface and streamlines content presentation by overlaying content on current page. Overlay images, videos, audio, text/html content, flash, dotnetnuke modules, and external content. Experience the demo...

The Catalyst skins are professionally designed, coded and packaged by a team of DotNetNuke experts. The skins are available in 12 great colours. This skin is easily customisable with our unique DrNuke EasyMod technology. Try our demo!

In this day and age, knowing as much detailed information as possible about your customer, prospect or web site user is essential. Thankfully, the new 'Dynamics Forms' module from Data Springs, makes it easier than ever to segment your data collection efforts.

Ultra Video Gallery is a brother product of Ultra Media Gallery, UVG allows you to add videos in various format and automatically convert them to flv format, you also can add videos from embed code and play them in our integrated flash video player.

Ultra Media Gallery is the most popular photo gallery and media gallery solution for DotNetNuke, UMG offers 10 different flash player to browse your gallery with completely different user interface experience.

Capture your users attention, enrich your site with multimedia flash, and create and opt in distribution list for your DNN site. These are just a few of the many features the Data Springs Module Collection can provide you.

Version 5 of the perennial best-selling tool for creating data-based solutions in DNN without custom programming. This version focuses on greater flexibility, expandability, and ease-of-use.

ALL NEW ! - Minimalist includes skin packs in 12 great colors. Each color has Flat, Gradient and Glass versions. Feature rich XML Flash header, perfect for just about any purpose. 9 Different menu options in each skin pack; 3 horizontal menus, 3 vertical menus and 3 all-new Twin level menus . . .

    |   Register   |   zondag 23 november 2008   
Data Springs Product Forums...
Subject: "Object reference not set to an instance of an object"
Prev Next
You are not authorized to post a reply.

Author Messages
Martijn
Posts:4
skipping stones
skipping stones

08-08-2008 1:33  

Hi there,

 

I've been testing some features of Dynamic Registration. In short I'd like to create a registration proces that allows user A (after registration) to register users B, C and D.

 

So what have I done so far?

 

- Created the initial registration page for user A.
This page contains a field for the e-mail address and 2 fields with misc. info I'd like to collect (text fields connected to DNN custom fields). I've setup DR to use the e-mail address as username and generate a password on the fly.
Users are automatically logged in after registration.
They are assigned a security role which allows them to reach the page that should be used to register user B, C and D.

 

* note: I've setup this page in the Datasprings testsite. Not sure if this site should send out e-mails after registration but if so, I didn't recieve any. Perhaps I overlooked a option in the DR backend.

 

- So next, I've created a page that's only visible to users that have the right security role. The page only contains a field for the e-mail address. It should allow logged in user A to fill in the e-mail address for (for example) user B, who then gets his login and password e-mailed to him.

 

Now, when user A uses this page to register user B, he submits the form and gets an error saying "Object reference not set to an instance of an object".

 

I might have an idea what causes this error but I'm not sure how to solve it:
It looks like the module thinks it's there to have user A update it's profile instead of registrering new users. For example, when user A views the page, the e-mail address for user A is already filled in. Also, the button to submit the form sais "Update profile" instead of "Register".

 

I'm completely new to DNN/ASP/.NET/MS-based solutions and I'm not sure if the error is related to this situation. If they are not related I hope to find solutions for both seperate problems here

 

Thanks in advance,
- Martijn

Chad
Posts:2227
river guide
river guide

08-08-2008 12:06  

Martijn,

Hi. Yes well the module does work a little differently that what you have setup here. A few things.

1. Each instance of Dynamic Registration MUST have a few fields associated with it before it will work, these are identified under DNN Core Integration and are username, password, and confirm password. If you have auto create UserID turned on these fields will be turned off initially, and if you also check the boxes under DNN Core Integration, Advanced Integration Options, you can hide these as 'Hide username for registration updates' and 'hide password for registration updates'. Either way, these fields MUST be linked and reference for the module to work properly.

2. The registration page is assuming if the user is signed in that they want to update their subscription, and doesn't know that this is a new user registration because the user is signed in. In order for the module to be in 'Add mode' the user must have rights to add users as a signed in user and they must access the URL properly. For this to be setup properly:

a. Under Module Configuration, Security, specify the security that the user has access to Manage Users. This will give that user security rights to both add and manage users (unfortunatly there is no security distinction right now between manage/update so this might be a problem for you).

b. Under 'Manage Users' within the menu you will notice a 'Plus Sign'. IF you click this link you will be taken to the page as if a user is going to be added. This is the URL the user would need to be redirected to in order to add a new user to the module even if they are not signed in as a new user.


Hope this clears up some questions you have, my first guess would be that you do not have any fields linked to username, password, and confirm password and these fields are required for the registration module to function properly.

-Chad

Martijn
Posts:4
skipping stones
skipping stones

08-12-2008 12:48  
Hi Chad,

Thanks for clearing up the part about updating/adding users, I'll try as soon as I have the chance.

Concerning the mandatory fields for username and password: they where present in the form but I didn't list them, sorry for the confusion.
I did however link "password" & "confirm password" to the same field to make sure they always match although they're hidden. Perhaps this caused the error.

I'll try to set up a new test soon ;-)

Thanks,
- Martijn
Chad
Posts:2227
river guide
river guide

08-12-2008 4:34  
Hi. Yes if they are hidden just make sure to use the 'Hide Password fields for registration update' under DNN Core Integration and don't hide them on the field level themselves.

-Chad
You are not authorized to post a reply.
Forums > Product Discussion - DotNetNuke Modules > Dynamic Registration > "Object reference not set to an instance of an object"



ActiveForums 3.7

Copyright 2005 - 2008 by Data Springs, Inc.
Terms Of Use | Privacy Statement