Exception opening Analytics Dashboard SF 5.4
My Sitefinity Analytics dashboard has been running fine for over a month now. As of 6/5/2013, my Analytics Dashboard is throwing the following exception:
/*-- Begin Exception Message --*/
[Async_ExceptionOccurred]
Arguments:
Debugging resource strings are unavailable. Often the key and arguments provide sufficient information to diagnose the problem. See go.microsoft.com/.../
at System.ComponentModel.AsyncCompletedEventArgs.RaiseExceptionIfNecessary()
at Telerik.Sitefinity.Analytics.UI.Infrastructure.DashboardService.RetrieveAnalyticsDataCompletedEventArgs.get_Result()
at Telerik.Sitefinity.Analytics.UI.Infrastructure.Services.WcfAnalyticsDataService.RetrieveAnalyticsDataCompleted(Object sender, RetrieveAnalyticsDataCompletedEventArgs e)
at Telerik.Sitefinity.Analytics.UI.Infrastructure.DashboardService.DashboardDataClient.OnRetrieveAnalyticsDataCompleted(Object state)
/*-- End Exception Message --*/
I'm running SF 5.4.4020. This is happening on both my dev server and production. I deleted my AnalyticsConfiguration.config and DashboardPermisions.config (and related .bak files), and re-entered my GA settings with no luck. My Telerik.Sitefinity.Analytics.Server.GoogleAnalyticsPlugin.dll is version 5.4.4020.
I've read similar posts and the knowledge article on this subject, and have been unable to resolve this issue. I'm wondering if Google changed their API again and broke things. I also did a quick test in Sitefinity 6.0.4200 that resulted in the same exception.
Same here in 5.4.4010.... was working earlier this week.
Hello,
Thank your for using Sitefinity.
Google has recently changed their API again which caused a break in the current analytics functionality (this is different than the change they made last year). The development team is currently working hard on producing a hotfix that will resolve this issue. Our current ETA is early next week.
We appreciate your patience while this matter is handled. The hotfix will be announced with a forum post or blog post.
We're having the same issue. Any news on that fix?
I see they've addressed this in SF 6.0 with a hotfix.
www.sitefinity.com/.../sitefinity-6-0-sp1-hotfix-1-released
I don't see any new hotfixes for 5.4, so it looks like fixing analytics will require moving to the latest version of Sitefinity.
Hello,
The fix for pre-6.0 versions of Sitefinity is still being worked on. It should be delivered in the next week or two.
Regards,Hi,
As this is a tipical error we are having during all our different projects and any version of them, I propose if its possible to make in some separate .dll the analytics module on the project. Why? because if we have it sepate of the rest of the project you could give as the new release and we do not need to upgrade all the project, the upgrades are not easy always and needs a lot of revision hours to check all what was working is still working without problems.
Let us know if this could be possible in future versions.
Hi,
We are, right now, working on a pluggable fix for all older versions.
Thank you for your patience.
Any update on this fix?
I'm surprised you fixed it for the new version but not the most likely versions in production!
Hello everyone ,
You can apply the hotfix to older (pre-6.0) Sitefinity versions (we've tested this approach with Sitefinity versions 5.2, 5.3, 5.4) as well, by following these steps:
1. Add Global.asax file to your project, and inside implement the following code:
protected
void
Application_Start(
object
sender, EventArgs e)
Bootstrapper.Initializing += Bootstrapper_Initializing;
void
Bootstrapper_Initializing(
object
sender, Telerik.Sitefinity.Data.ExecutingEventArgs e)
SubscribeForAppDomainAssemblyResolve();
private
static
void
SubscribeForAppDomainAssemblyResolve()
AppDomain.CurrentDomain.AssemblyResolve += CurrentDomainAssemblyResolve;
private
static
System.Reflection.Assembly CurrentDomainAssemblyResolve(
object
sender, ResolveEventArgs args)
var requestedAssemblyName =
new
AssemblyName(args.Name);
if
(requestedAssemblyName.Name.StartsWith(
"Telerik.Sitefinity"
))
Assembly[] currentlyLoadedAssemblies = AppDomain.CurrentDomain.GetAssemblies();
var resolvedAssembly = currentlyLoadedAssemblies.FirstOrDefault(a => (
new
AssemblyName(a.FullName)).Name == requestedAssemblyName.Name);
return
resolvedAssembly;
return
null
;
<
configuration
>
<
runtime
>
<
assemblyBinding
xmlns
=
"urn:schemas-microsoft-com:asm.v1"
>
<
dependentAssembly
>
<
assemblyIdentity
name
=
"Telerik.Sitefinity.Analytics.Server.Core"
publicKeyToken
=
"null"
culture
=
"neutral"
/>
<
bindingRedirect
oldVersion
=
"5.4.4040.0"
newVersion
=
"6.0.4210.0"
/>
</
dependentAssembly
>
</
assemblyBinding
>
</
runtime
>
</
configuration
>
oldVersion
above should be your current Sitefinity version.1. 3. Replace the Telerik.Sitefinity.Analytics.Server.Core dll in your project's /bin folder with the one attached to this post
4. Build, restart the website, and navigate to the Sitefinity backnd. You should be able to go to Marketing -> Analytics and see the dashboard
If you are using VB, find the sample below:
Sub
Application_Start(
ByVal
sender
As
Object
,
ByVal
e
As
EventArgs)
' Code that runs on application startup
AddHandler
Bootstrapper.Initialized,
AddressOf
Bootstrapper_Initializing
End
Sub
Private
Sub
Bootstrapper_Initializing(sender
As
Object
, e
As
Telerik.Sitefinity.Data.ExecutedEventArgs)
SubscribeForAppDomainAssemblyResolve()
End
Sub
Private
Shared
Sub
SubscribeForAppDomainAssemblyResolve()
AddHandler
AppDomain.CurrentDomain.AssemblyResolve,
AddressOf
CurrentDomainAssemblyResolve
End
Sub
Private
Shared
Function
CurrentDomainAssemblyResolve(sender
As
Object
, args
As
ResolveEventArgs)
As
System.Reflection.
Assembly
Dim
requestedAssemblyName =
New
AssemblyName(args.Name)
If
requestedAssemblyName.Name.StartsWith(
"Telerik.Sitefinity"
)
Then
Dim
currentlyLoadedAssemblies
As
Assembly
() = AppDomain.CurrentDomain.GetAssemblies()
Dim
resolvedAssembly = currentlyLoadedAssemblies.FirstOrDefault(
Function
(a) (
New
AssemblyName(a.FullName)).Name = requestedAssemblyName.Name)
Return
resolvedAssembly
End
If
Return
Nothing
End
Function
Now I have an exception that says Google credentials incorrect or corrupt.
I delete the analytics file, or click 'Discard settings and ...' and refresh the page.
On First Time Setup the list of administrators shows up with no users to click which means you can't click next!
The version we're using is 5.4.4000.0
Was this quick fix thoroughly tested?
Hello,
Try the following: Go to Users, open the default administrator user, click save and try to configure the Analytics module again, please.
Regards,Followed the upgrade instructions and is working well on SF 5.4.4020. Thanks!
Doing that fixed the list of admins which I select but then the next step won't accept our Analytics account.
Error: The login credentials provided are not linked with any Google Analytics accounts.
Troubleshoot: Tried logging into analytics with the same account - working
Tried the same account again in SF - failed with the same message
still not working??
Hi Jacques,
Can you please try out the steps outlined in our Troubleshooting Sitefintiy Analytics KnowledgeBase article, and let us know if the issues still persist?
Regards,
Boyan Barnev
Telerik
I upgraded to 3 websites to Sitefinity 6.0.4200 and all three sites fail to display Sitefinity Analytics. The error is like those above: corrupt configuration. Redoing the configuration doesn't help.
Any suggestions?
Rich
One of the Sitefinity websites that I upgraded to v6.0.4200 does not display a list of administrators. Per the suggestion above 'edit and save the admin account', when I do that it will not save. Looking into the log file (see below), it is claiming an invalid provider type.
Any suggestions?
Thanks,
Rich
Timestamp: 6/20/2013 5:43:29 PMMessage: HandlingInstanceID: d924b1b3-ef64-4ac1-b20f-74bd792472ff
An exception of type 'System.ArgumentException' occurred and was caught.
------------------------------------------------------------------------
06/20/2013 13:43:29
Type : System.ArgumentException, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
Message : Invalid type specified Telerik.Sitefinity.Security.Data.MembershipDataProvider
Source : Telerik.Sitefinity
Help link :
ParamName :
Data : System.Collections.ListDictionaryInternal
TargetSite : TProviderBase InstantiateProvider(Telerik.Sitefinity.Configuration.IDataProviderSettings, System.Type, Telerik.Sitefinity.Abstractions.ExceptionPolicyName, Telerik.Sitefinity.Data.ManagerBase`1[TProviderBase])
Stack Trace : at Telerik.Sitefinity.Data.ManagerBase`1.InstantiateProvider(IDataProviderSettings providerSettings, Type providerType, ExceptionPolicyName policy, ManagerBase`1 manager)Additional Info:MachineName : VARWEB
TimeStamp : 6/20/2013 5:43:29 PM
FullName : Telerik.Sitefinity.Utilities, Version=6.0.4200.0, Culture=neutral, PublicKeyToken=b28c218413bdf563
AppDomainName : /LM/W3SVC/2/ROOT-1-130162098832475747
ThreadIdentity : winslorj
WindowsIdentity : NT AUTHORITY\NETWORK SERVICE
Requested URL : www.rwinsphoto.com/.../
Category: ErrorLogPriority: 0EventId: 90030Severity: ErrorTitle:Enterprise Library Exception HandlingMachine: VARWEBApp Domain: /LM/W3SVC/2/ROOT-1-130162098832475747ProcessId: 3912Process Name: c:\windows\system32\inetsrv\w3wp.exeThread Name: Win32 ThreadId:8016Extended Properties:
----------------------------------------
----------------------------------------
Timestamp: 6/20/2013 5:43:29 PMMessage: HandlingInstanceID: ce74822a-aa1b-4703-a615-32c027d914ed
An exception of type 'System.ArgumentException' occurred and was caught.
------------------------------------------------------------------------
06/20/2013 13:43:29
Type : System.ArgumentException, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
Message : Invalid type specified Telerik.Sitefinity.Security.Data.MembershipDataProvider
Source : Telerik.Sitefinity
Help link :
ParamName :
Data : System.Collections.ListDictionaryInternal
TargetSite : TProviderBase InstantiateProvider(Telerik.Sitefinity.Configuration.IDataProviderSettings, System.Type, Telerik.Sitefinity.Abstractions.ExceptionPolicyName, Telerik.Sitefinity.Data.ManagerBase`1[TProviderBase])
Stack Trace : at DynamicModule.ns.Wrapped_OpenAccessRoleProvider_0399e6435a6740eb9f6742e28494f8e5.GetUsersInRole(Guid roleId, String filterExpression, String sortExpression, Int32 skip, Int32 take)
at Telerik.Sitefinity.Security.RoleManager.GetUsersInRole(Guid roleId, String filterExpression, String sortExpression, Int32 skip, Int32 take)
at Telerik.Sitefinity.Security.RoleManager.GetUsersInRole(Guid roleId)
at Telerik.Sitefinity.Security.Web.Services.Users.IsUserTheLastAdmin(Guid userId)
at Telerik.Sitefinity.Security.Web.Services.Users.DeleteUserInternal(Guid userId, String providerName)
at Telerik.Sitefinity.Security.Web.Services.Users.DeleteUser(String userId, String provider)
at SyncInvokeDeleteUser(Object , Object[] , Object[] )
at System.ServiceModel.Dispatcher.SyncMethodInvoker.Invoke(Object instance, Object[] inputs, Object[]& outputs)
at System.ServiceModel.Dispatcher.DispatchOperationRuntime.InvokeBegin(MessageRpc& rpc)
at System.ServiceModel.Dispatcher.ImmutableDispatchRuntime.ProcessMessage5(MessageRpc& rpc)
at System.ServiceModel.Dispatcher.ImmutableDispatchRuntime.ProcessMessage31(MessageRpc& rpc)
at System.ServiceModel.Dispatcher.MessageRpc.Process(Boolean isOperationContextSet)Additional Info:MachineName : VARWEB
TimeStamp : 6/20/2013 5:43:29 PM
FullName : Telerik.Sitefinity.Utilities, Version=6.0.4200.0, Culture=neutral, PublicKeyToken=b28c218413bdf563
AppDomainName : /LM/W3SVC/2/ROOT-1-130162098832475747
ThreadIdentity :
WindowsIdentity : NT AUTHORITY\NETWORK SERVICE
Requested URL : www.rwinsphoto.com/.../
Category: ErrorLogPriority: 0EventId: 90000Severity: ErrorTitle:Enterprise Library Exception HandlingMachine: VARWEBApp Domain: /LM/W3SVC/2/ROOT-1-130162098832475747ProcessId: 3912Process Name: c:\windows\system32\inetsrv\w3wp.exeThread Name: Win32 ThreadId:8016Extended Properties:
----------------------------------------
----------------------------------------
Timestamp: 6/20/2013 5:43:51 PMMessage: HandlingInstanceID: ca5664e2-0657-4b9f-bc56-ff89f05ecf19
An exception of type 'System.ArgumentException' occurred and was caught.
------------------------------------------------------------------------
06/20/2013 13:43:51
Type : System.ArgumentException, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
Message : Invalid type specified Telerik.Sitefinity.Security.Data.MembershipDataProvider
Source : Telerik.Sitefinity
Help link :
ParamName :
Data : System.Collections.ListDictionaryInternal
TargetSite : TProviderBase InstantiateProvider(Telerik.Sitefinity.Configuration.IDataProviderSettings, System.Type, Telerik.Sitefinity.Abstractions.ExceptionPolicyName, Telerik.Sitefinity.Data.ManagerBase`1[TProviderBase])
Stack Trace : at Telerik.Sitefinity.Data.ManagerBase`1.InstantiateProvider(IDataProviderSettings providerSettings, Type providerType, ExceptionPolicyName policy, ManagerBase`1 manager)Additional Info:MachineName : VARWEB
TimeStamp : 6/20/2013 5:43:51 PM
FullName : Telerik.Sitefinity.Utilities, Version=6.0.4200.0, Culture=neutral, PublicKeyToken=b28c218413bdf563
AppDomainName : /LM/W3SVC/2/ROOT-1-130162098832475747
ThreadIdentity : winslorj
WindowsIdentity : NT AUTHORITY\NETWORK SERVICE
Requested URL : www.rwinsphoto.com/.../
Category: ErrorLogPriority: 0EventId: 90030Severity: ErrorTitle:Enterprise Library Exception HandlingMachine: VARWEBApp Domain: /LM/W3SVC/2/ROOT-1-130162098832475747ProcessId: 3912Process Name: c:\windows\system32\inetsrv\w3wp.exeThread Name: Win32 ThreadId:8016Extended Properties:
----------------------------------------
----------------------------------------
Timestamp: 6/20/2013 5:43:51 PMMessage: HandlingInstanceID: e4572359-e778-4443-8138-79d4c017a43c
An exception of type 'Telerik.Sitefinity.Utilities.MS.ServiceModel.Web.WebProtocolException' occurred and was caught.
---------------------------------------------------------------------------------------------------------------------
06/20/2013 13:43:51
Type : Telerik.Sitefinity.Utilities.MS.ServiceModel.Web.WebProtocolException, Telerik.Sitefinity.Utilities, Version=6.0.4200.0, Culture=neutral, PublicKeyToken=b28c218413bdf563
Message : ERROR: Item could not be saved.
Source : Telerik.Sitefinity
Help link :
StatusCode : InternalServerError
StatusDescription : ERROR: Item could not be saved.
IsDetailXhtml : True
Data : System.Collections.ListDictionaryInternal
TargetSite : Telerik.Sitefinity.Security.Web.Services.WcfMembershipUser SaveUserInternal(Telerik.Sitefinity.Security.Web.Services.WcfMembershipUser, System.Guid, System.String, Boolean, Boolean)
detailWriterInstance : Telerik.Sitefinity.Utilities.MS.ServiceModel.Web.WebProtocolException+StringDetailWriter
Stack Trace : at Telerik.Sitefinity.Security.Web.Services.Users.SaveUserInternal(WcfMembershipUser user, Guid userId, String providerName, Boolean update, Boolean updateRoles)
at Telerik.Sitefinity.Security.Web.Services.Users.UpdateUser(WcfMembershipUser user, String userId, String provider)
at SyncInvokeUpdateUser(Object , Object[] , Object[] )
at System.ServiceModel.Dispatcher.SyncMethodInvoker.Invoke(Object instance, Object[] inputs, Object[]& outputs)
at System.ServiceModel.Dispatcher.DispatchOperationRuntime.InvokeBegin(MessageRpc& rpc)
at System.ServiceModel.Dispatcher.ImmutableDispatchRuntime.ProcessMessage5(MessageRpc& rpc)
at System.ServiceModel.Dispatcher.ImmutableDispatchRuntime.ProcessMessage31(MessageRpc& rpc)
at System.ServiceModel.Dispatcher.MessageRpc.Process(Boolean isOperationContextSet)Additional Info:MachineName : VARWEB
TimeStamp : 6/20/2013 5:43:51 PM
FullName : Telerik.Sitefinity.Utilities, Version=6.0.4200.0, Culture=neutral, PublicKeyToken=b28c218413bdf563
AppDomainName : /LM/W3SVC/2/ROOT-1-130162098832475747
ThreadIdentity :
WindowsIdentity : NT AUTHORITY\NETWORK SERVICE
Requested URL : www.rwinsphoto.com/.../
Category: ErrorLogPriority: 0EventId: 90000Severity: ErrorTitle:Enterprise Library Exception HandlingMachine: VARWEBApp Domain: /LM/W3SVC/2/ROOT-1-130162098832475747ProcessId: 3912Process Name: c:\windows\system32\inetsrv\w3wp.exeThread Name: Win32 ThreadId:8016Extended Properties:
----------------------------------------
Hi Boyan,
I've tried those troubleshooting steps in the link you provided and I'm still getting the same result.
"The login credentials provided are not linked with any Google Analytics accounts".
What's the next steps?
Hello everyone,
Unfortunately we have not been able to reproduce the problem locally yet. Would it be possible to open a support ticket where we can get a copy of your project and inspect the problem locally?
Thank you in advance for your kind cooperation.
Regards,
Boyan Barnev
Telerik