So here is the full error when adding a user in the eventlog:
ModuleId: 1066
ModuleDefId: 15
FriendlyName: Add New User
ModuleControlSource: Admin/Users/ManageUsers.ascx
AssemblyVersion: 04.09.00
Method: DotNetNuke.Entities.Users.UserInfo.GetProperty
Message: DotNetNuke.Services.Exceptions.ModuleLoadException: Object reference not set to an instance of an object. ---> System.NullReferenceException: Object reference not set to an instance of an object. at DotNetNuke.Entities.Users.UserInfo.GetProperty(String strPropertyName, String strformat, CultureInfo formatProvider, UserInfo AccessingUser, Scope CurrentScope, Boolean& PropertyNotFound) at DotNetNuke.Services.Tokens.BaseCustomTokenReplace.replacedTokenValue(String strObjectName, String strPropertyName, String strformat) at DotNetNuke.Services.Tokens.BaseTokenReplace.ReplaceTokens(String strSourceText) at DotNetNuke.Services.Localization.Localization.GetSystemMessage(String strLanguage, PortalSettings objPortal, String MessageName, UserInfo objUser, String ResourceFile, ArrayList Custom, String CustomCaption, Int32 AccessingUserID) 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.ManageUsers.UserCreateCompleted(Object sender, UserCreatedEventArgs e) --- End of inner exception stack trace ---
Funny thing is that even though when you delete a user and it says "Error deleting User" the event log shows that the user was deleted fine. Also, I noticed that I had said that it was deleting the user only from dbo.Users...that is not the case...the user is actually deleted properly from those 3 tables, if not more of them, but still throws that error. My primary issue is the exception on adding a user and getting the above error, I could even live with the "Error deleting user" error. It seems that the exception is thrown when the profile properties are pulled to send the "New registration e-mail". I thought maybe this was an error caused by the e-mail server, but I have other domains working fine and also if I go and send a test e-mail through Host settings, that works fine.