Site Analytics Pro 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.
12/7/2010 3:10:09 PM
Gravatar
Total Posts 26

Site Analytics Pro Error

Hi Joe

I purchased the in site analytics pro and after setting it up everything worked fine, but its now erroring out, it looks from the error its probably resulting from me changing the machine key as advised by the new security advisor. Are you able to shed any light on this?

Thanks

Hurricane (error below)

2010-12-08 09:58:18,828 ERROR mojoPortal.Web.Global - 60.234.228.247-en-US - /Analytics/Default.aspx
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.SiteUtils.Decrypt(String encrypted)
at sts.Analytics.UI.AnalyticSettings.LoadSettings(SiteSettings siteSettings)
at sts.Analytics.UI.AnalyticSettings..ctor()
at sts.Analytics.UI.AnalyticsHome.LoadSettings()
at sts.Analytics.UI.AnalyticsHome.Page_Load(Object sender, EventArgs e)
at System.Web.UI.Control.OnLoad(EventArgs e)
at System.Web.UI.Control.LoadRecursive()
at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
 

12/7/2010 3:21:41 PM
Gravatar
Total Posts 18439

Re: Site Analytics Pro Error

Hi Hurricane,

Yes we encrypt the credentials for google analytics using the same encryption as is used for passwords, so after changing the key it cannot decrypt it. You can fix it by first clearing the values from the db like this:

UPDATE mp_SiteSettingsEx
SET KeyValue = ''
WHERE KeyName = 'GoogleAnalyticsEmail'

UPDATE mp_SiteSettingsEx
SET KeyValue = ''
WHERE KeyName = 'GoogleAnalyticsPassword'

If there is more than one site you should add AND SiteID = x to the where clause of each statement, replacing x with your site id.

then touch Web.config to clear the cache, then re-configure your analytics account settings so it will encrypt them with the new machine key.

Hope it helps,

Joe

 

12/7/2010 3:55:54 PM
Gravatar
Total Posts 26

Re: Site Analytics Pro Error

Hey Jo that did the trick thanks, looks great, whole system is awesome actually, gotta buy the form wizard pro now.

Hurricane

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