This is the place to report bugs and get support. When posting in this forum, please always provide as much detail as possible.
Please do not report problems with a custom build or custom code in this forum. If you are producing your own build from the source code and have problems or questions, ask in the developer forum, do not report it as a bug.
When posting in this forum, please try to provide as many relevant details as possible. Particularly the following:
Hi Joe,
I am trying to configure mp so that the admin is sent an e-mail when new users register. I've set the following in user.config:
<add key="NotifyAdminsOnNewUserRegistration" value="true" />
However when a new user registers and clicks "Create Account", I get the following stack trace:
Server Error in '/' Application. Could not find specified column in results Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.IndexOutOfRangeException: Could not find specified column in results
Source Error:
An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.
Stack Trace:
[IndexOutOfRangeException: Could not find specified column in results] MySql.Data.MySqlClient.MySqlDataReader.GetOrdinal(String name) +192 MySql.Data.MySqlClient.MySqlDataReader.get_Item(String name) +15 mojoPortal.Business.SiteUser.GetRoleMembers(Int32 roleId) +317 mojoPortal.Web.NotifyAdminUserRegisteredHandler.UserRegisteredHandler(Object sender, UserRegisteredEventArgs e) +182 mojoPortal.Business.UserRegistreredEventHandler.Invoke(Object sender, UserRegisteredEventArgs e) +0 mojoPortal.Web.UI.Pages.Register.OnUserRegistered(UserRegisteredEventArgs e) +28 mojoPortal.Web.UI.Pages.Register.RegisterUser_CreatedUser(Object sender, EventArgs e) +421 System.Web.UI.WebControls.CreateUserWizard.OnCreatedUser(EventArgs e) +111 System.Web.UI.WebControls.CreateUserWizard.AttemptCreateUser() +354 System.Web.UI.WebControls.CreateUserWizard.OnNextButtonClick(WizardNavigationEventArgs e) +102 System.Web.UI.WebControls.Wizard.OnBubbleEvent(Object source, EventArgs e) +418 System.Web.UI.WebControls.CreateUserWizard.OnBubbleEvent(Object source, EventArgs e) +161 System.Web.UI.WebControls.WizardChildTable.OnBubbleEvent(Object source, EventArgs args) +19 System.Web.UI.Control.RaiseBubbleEvent(Object source, EventArgs args) +37 System.Web.UI.WebControls.Button.OnCommand(CommandEventArgs e) +118 System.Web.UI.WebControls.Button.RaisePostBackEvent(String eventArgument) +166 System.Web.UI.WebControls.Button.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument) +10 System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) +13 System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) +36 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1565
Version Information: Microsoft .NET Framework Version:2.0.50727.3053; ASP.NET Version:2.0.50727.3053
Any ideas? Thanks,
Leah
What version of mojoPortal? I'm pretty sure this is fixed in the current release.
Best,
Joe
2.2.7.7... I'll give the upgrade a go tomorrow (have been putting it off while I work on my current build). for info it also occurred in 2.2.7.6..
anyway you'll hear from me soon enough if it's stil a problem in the latest release
ps happy thanksgiving!
Just to let you know that I upgraded and haven't had this error in v2.2.7.9 - the notify admins is working as expected now. (there is a small typo though, in the e-mail: it says "a new user has registered on you site" as opposed to "your site". me, a pendant? ;P )
woops, and there goes my own typo. I meant to call myself a pedant, not a piece of jewellery!!
You can fix this in the file Web/Data/MessageTemplates/en-US-NotifyAdminofNewUserRegistrationMessage.config
I'm fixing my copy now so it will be corrected in the next release.