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

HomeHomeUsing DNN Platf...Using DNN Platf...Administration ...Administration ...Help: Check and Replace User DB RelationshipsHelp: Check and Replace User DB Relationships
Previous
 
Next
New Post
5/21/2015 10:55 AM
 
James, did you check the presense of references (e.g. in SQL Server management studio?)

Cheers from Germany,
Sebastian Leupold

dnnWerk - The DotNetNuke Experts   German Spoken DotNetNuke User Group

Speed up your DNN Websites with TurboDNN
 
New Post
5/22/2015 3:41 AM
 
Hi Sebastian,

Basically I've been trying to get the email functionality to work on new user registration. With reg type 'Public', everything works fine - email sent to registering user and to moderator. Once this is changed to 'Verified', no email is sent and an exception is generated:

Module load exception

StackTrace:



InnerMessage:Object reference not set to an instance of an object.

InnerStackTrace:
at DotNetNuke.Entities.Users.UserInfo.GetProperty(String propertyName, String format, CultureInfo formatProvider, UserInfo accessingUser, Scope currentScope, Boolean& propertyNotFound)
at DotNetNuke.Services.Mail.Mail.SendMail(UserInfo user, MessageType msgType, PortalSettings settings)
at DotNetNuke.Entities.Modules.UserModuleBase.CompleteUserCreation(UserCreateStatus createStatus, UserInfo newUser, Boolean notify, Boolean register)
at DotNetNuke.Modules.Admin.Users.Register.CreateUser()

Going through the code, I think the error is caused in UserInfo.cs, in GetProperty, somewhere around these lines:

case "verificationcode":
if (internScope < Scope.SystemMessages)
{
propertyNotFound = true;
return PropertyAccess.ContentLocked;
}
var ps = new PortalSecurity();
var code = ps.EncryptString(PortalID + "-" + UserID, Config.GetDecryptionkey());
return code.Replace("+", ".").Replace("/", "-").Replace("=", "_");

I have checked that there is a MachineKey entry in the config file. I have also checked that the host email is set and is valid and I've been wading through the DB trying to find what the issue could be without success.

The user does get created and is set with authorisation false. If he is authed by an admin, an email does get sent and everything works correctly. I presume with verified registration a user account is probably partially created and then completed when the user clicks the authorisation link or is authorised by an admin. The only difference I've seen so far between a public registered user and a verified type registration is that the VanityURL field in DNN_UserPortals is NULL in the case of a verified type registration.

We're running version 07.04.00(353) and this was an upgrade from a previous version.
 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Administration ...Administration ...Help: Check and Replace User DB RelationshipsHelp: Check and Replace User DB Relationships


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