after upgrade to 2.4.0.3 now have site setting error

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.
6/30/2014 12:54:46 PM
Gravatar
Total Posts 199

after upgrade to 2.4.0.3 now have site setting error

I upgraded to 2.4.0.3 and whenever I click on site settings in the admin area I get the following error in the log and the site settings area is not accessible.  Is there a fix for this?

 

2014-06-30 13:50:41,319 ERROR IPADDRESS - en-US - /Admin/SiteSettings.aspx - mojoPortal.Web.Global - IPADDRESS /Admin/SiteSettings.aspx Referrer(http://www.domain.com/Admin/AdminMenu.aspx) useragent Mozilla/5.0 (Windows NT 6.3; WOW64; rv:30.0) Gecko/20100101 Firefox/30.0
System.Web.HttpException (0x80004005): Unable to validate data.
   at System.Web.Configuration.MachineKeySection.EncryptOrDecryptData(Boolean fEncrypt, Byte[] buf, Byte[] modifier, Int32 start, Int32 length, Boolean useValidationSymAlgo, Boolean useLegacyMode, IVType ivType, Boolean signData)
   at System.Web.Security.MembershipAdapter.EncryptOrDecryptData(Boolean encrypt, Byte[] buffer, Boolean useLegacyMode)
   at System.Web.Security.MembershipProvider.DecryptPassword(Byte[] encodedPassword)
   at mojoPortal.Web.mojoMembershipProvider.UnencodePassword(String pass, MembershipPasswordFormat passwordFormat)
   at mojoPortal.Web.AdminUI.SiteSettingsPage.PopulateMailSettings()
   at mojoPortal.Web.AdminUI.SiteSettingsPage.PopulateControls()
   at mojoPortal.Web.mojoBasePage.OnLoad(EventArgs e)
   at System.Web.UI.Control.LoadRecursive()
   at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
 

6/30/2014 1:12:31 PM
Gravatar
Total Posts 18439

Re: after upgrade to 2.4.0.3 now have site setting error

When you install mojoPortal you are supposed to use a custom machine key but after that it cannot change or errors like this will happen, so on upgrades you need to get the machine key from your old web.config file and restore it to the new Web.config file. Actually recent versions of mojoPortal will automatically generate a custom machine key on initial setup but then you must keep it and restore it after upgrades.

The error you are getting is because the machine key changed and your smtp settings were encrypted in the database using the old machine key and now since the machine key changed it is failing to decrypt and this error happens. If you restore the previous machine key it should solve it, else you have to clear out the old encrypted settings and then reset them so they get encrypted with the new machine key as in this thread.

Hope that helps,

Joe

6/30/2014 1:34:18 PM
Gravatar
Total Posts 199

Re: after upgrade to 2.4.0.3 now have site setting error

Joe, thank you that worked perfect.

can you please remove my ip and domain from the first post in this thread because I would prefer not to have that public and I posted too fast forgetting to remove?

thanks as always

6/30/2014 1:38:00 PM
Gravatar
Total Posts 18439

Re: after upgrade to 2.4.0.3 now have site setting error

you should still be able to edit that post for a short time, you should see a pencil icon

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