Unable to register to site

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.
4/17/2011 6:13:42 AM
Gravatar
Total Posts 10
Marco Minerva [MCPD]

Unable to register to site

Hi all!

I have a trouble after upgrading mojoPortal from version 2.3.6.4 to 2.3.6.5 using the SQLite provider. The setup has correctly updated the configuration, and everything seems to work fine, except the "Create new user wizard". When I try to create a new user, after clicking the "Create Account" button, I obtain the following error:

Invalid Character in Base64 string.

[FormatException: Carattere non valido in una stringa Base 64.]
   System.Convert.FromBase64String(String s) +0
   mojoPortal.Web.mojoMembershipProvider.UnencodePassword(String pass, MembershipPasswordFormat passwordFormat) +34
   mojoPortal.Web.SiteUtils.Decrypt(String encrypted) +38
   mojoPortal.Web.SiteUtils.GetSmtpSettings() +188
   mojoPortal.Web.mojoMembershipProvider.CreateUser(String userName, String password, String email, String passwordQuestion, String passwordAnswer, Boolean isApproved, Object providerUserKey, MembershipCreateStatus& status) +925
   System.Web.UI.WebControls.CreateUserWizard.AttemptCreateUser() +288
   System.Web.UI.WebControls.CreateUserWizard.OnNextButtonClick(WizardNavigationEventArgs e) +103
   System.Web.UI.WebControls.Wizard.OnBubbleEvent(Object source, EventArgs e) +374
   System.Web.UI.WebControls.CreateUserWizard.OnBubbleEvent(Object source, EventArgs e) +126
   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) +89
   System.Web.UI.WebControls.Button.RaisePostBackEvent(String eventArgument) +158
   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) +2847
 

Despite this error, the user is correctly created. Note that the site is configured to store passwords in clear text in DB and I have inserted my old "machineKey validationKey" tag in the new web.config file.

Can anyone help me to understand and solve this problem?

4/17/2011 6:22:40 AM
Gravatar
Total Posts 18439

Re: Unable to register to site

You need to copy the machine key from your old Web.config file and replace the machine key in the new Web.config file with your old machine key. Whenever you upgrade you need to keep the same machine key.

Hope it helps,

Joe

4/17/2011 6:58:44 AM
Gravatar
Total Posts 10
Marco Minerva [MCPD]

Re: Unable to register to site

Hi!

I have copied the old machineKey in the new web.config, but the problem remains.

4/17/2011 7:09:25 AM
Gravatar
Total Posts 18439

Re: Unable to register to site

You may need to set this to true in user.config then touch Web.config to make it reload settings.

<add key="UseLegacyCryptoHelper" value="true" />

but this is not related to a version upgrade from 2.3.6.4 to 2.3.6.5, maybe if you changed to using a user.config file and you were previously only using Web.config, it might bring this as a new problem.

Hope it helps,

Joe

4/17/2011 7:28:12 AM
Gravatar
Total Posts 10
Marco Minerva [MCPD]

Re: Unable to register to site

Thank you, the problem was related to UseLegacyCryptoHelper... Now it works perfectly!

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