Server Error in '/' Application.

'analytics' connection string is not defined

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.InvalidOperationException: 'analytics' connection string is not defined

Source Error:

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

Stack Trace:


[InvalidOperationException: 'analytics' connection string is not defined]
   Sitecore.Diagnostics.Assert.ResultNotNull(T result, String message) +85
   Sitecore.Analytics.Data.DataAccess.DataAdapters.Sql.SqlServer.SqlServerDataAdapterProvider..ctor() +33

[TargetInvocationException: Exception has been thrown by the target of an invocation.]
   System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor) +0
   System.Reflection.RuntimeConstructorInfo.Invoke(BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture) +289
   Sitecore.Reflection.ReflectionUtil.CreateObject(Type type, Object[] parameters) +107
   Sitecore.Configuration.Factory.CreateFromTypeName(XmlNode configNode, String[] parameters, Boolean assert) +91
   Sitecore.Configuration.Factory.CreateObject(XmlNode configNode, String[] parameters, Boolean assert, IFactoryHelper helper) +128
   Sitecore.Configuration.Factory.GetProviders(List`1 nodes) +359
   Sitecore.Configuration.Factory.GetProviders(String rootPath, TProvider& defaultProvider) +331
   Sitecore.Configuration.ProviderHelper`2.ReadProviders() +75
   Sitecore.Configuration.ProviderHelper`2.get_Provider() +89
   Sitecore.Analytics.Data.DataAccess.DataAdapters.DataAdapterManager.LoadVisitor(VisitorDataSet dataSet, VisitorLoadOptions visitorLoadOptions) +59
   (Object , Object[] ) +74
   Sitecore.Pipelines.CorePipeline.Run(PipelineArgs args) +184
   Sitecore.Analytics.Data.DataAccess.DataSets.VisitorDataSet.Load(VisitorLoadOptions visitorLoadOptions) +74
   Sitecore.Analytics.Data.DataAccess.DataSets.VisitsRow.GetPage(Int32 pageNumber) +235
   Sitecore.Analytics.Data.DataAccess.DataSets.VisitsRow.GetOrCreateCurrentPage() +31
   SitecoreClient.Page.NotFound.OnPreRender(EventArgs e) +868
   System.Web.UI.Control.PreRenderRecursiveInternal() +162
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +6875


Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.7.4081.0