No access to Site Settings

If you have questions about using mojoPortal, you can post them here.

You may want to first review our site administration documentation to see if your question is answered there.

This thread is closed to new posts. You must sign in to post in the forums.
10/15/2015 8:03:47 AM
Gravatar
Total Posts 28

No access to Site Settings

I've had some corruption problems with my site and have had to re-upload most of the files in the root (including user & web configs)

The site is now operational again and seems to be working OK except that I can't get access to Site Settings. The system log is:

 

2015-10-15 13:49:56,706 ERROR 31.54.126.2 - en-GB - /Admin/SiteSettings.aspx - mojoPortal.Web.Global - 31.54.126.2 /Admin/SiteSettings.aspx Referrer(http://www.andyfrankland.co.uk/Admin/AdminMenu.aspx) useragent Mozilla/5.0 (Windows NT 10.0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/45.0.2454.101 Safari/537.36 
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)  

 

I have deleted cookies on the local machine, no change. 

Any pointers to what may be wrong?

 

Regards

Andy

 

10/15/2015 8:08:17 AM
Gravatar
Total Posts 18439

Re: No access to Site Settings

if you are using encrypted password machinekey is used in the encryption and therefore if the machinekey is changed it can no longer decrypt and login would fail.

machinkey is in web.config so you need to restore the previous machinekey from your old web.config.

10/15/2015 8:21:04 AM
Gravatar
Total Posts 28

Re: No access to Site Settings

Joe

Thanks for the rapid reply.

I am not using encrypted passwords at the moment and The login is good for everything except Site Settings

 

Andy

10/15/2015 8:24:03 AM
Gravatar
Total Posts 18439

Re: No access to Site Settings

Ok,the error is because you are storing the smtp settings in site settings and it uses encryption to encrypt those settings in the database and the encryption uses the machinekey.

See the link in my previous post, it has instructions near the bottom of the page for clearing the smtp settings so you can get past the error and then re-create the settings.

10/15/2015 8:38:12 AM
Gravatar
Total Posts 28

Re: No access to Site Settings

Joe

Many thanks  -  liquid appreciation despatched.

Andy

10/15/2015 8:39:24 AM
Gravatar
Total Posts 18439

Re: No access to Site Settings

Thanks for the beer! Much appreciated.

Cheers,

Joe

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