Stack trace when notify admins of new users

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.

This is the place to report bugs and get support

When posting in this forum, please try to provide as many relevant details as possible. Particularly the following:

  • What operating system were you running when the bug appeared?
  • What database platform is your site using?
  • What version of mojoPortal are you running?
  • What version of .NET do you use?
  • What steps are necessary to reproduce the issue? Compare expected results vs actual results.
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.
This thread is closed to new posts. You must sign in to post in the forums.
11/27/2008 2:00:42 AM
Gravatar
Total Posts 88

Stack trace when notify admins of new users

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

11/27/2008 9:58:02 AM
Gravatar
Total Posts 18439

Re: Stack trace when notify admins of new users

What version of mojoPortal? I'm pretty sure this is fixed in the current release.

Best,

Joe

11/27/2008 10:27:48 AM
Gravatar
Total Posts 88

Re: Stack trace when notify admins of new users

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!

11/28/2008 5:06:58 AM
Gravatar
Total Posts 88

Re: Stack trace when notify admins of new users

Hi Joe,

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 )

Leah

11/28/2008 5:07:38 AM
Gravatar
Total Posts 88

Re: Stack trace when notify admins of new users

woops, and there goes my own typo. I meant to call myself a pedant, not a piece of jewellery!!

11/28/2008 5:10:36 AM
Gravatar
Total Posts 18439

Re: Stack trace when notify admins of new users

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.

Best,

Joe

You must sign in to post in the forums. This thread is closed to new posts.