2016-10-10 5 views
1

Ich verwende Sitecore 8.1, .net mvc 4.5.2. Der folgende Fehler wird angezeigt, wenn ich auf die Site zugreife.Sitecore 8.1- Typname konnte nicht aufgelöst werden: Sitecore.Analytics.Data.ContactRepository, Sitecore.Analytics

Hier ist meine Einstellung bei sitecode.analytics.config:

<contactRepository type="Sitecore.Analytics.Data.ContactRepository, Sitecore.Analytics" singleInstance="true" /> 

Gibt es fehlt etwas? Wie kann ich den Fehler umgehen?

Dank

konnte Typname nicht auflösen: Sitecore.Analytics.Data.ContactRepository, Sitecore.Analytics (Methode: Sitecore.Configuration.Factory.CreateFromTypeName (XmlNode configNode, String [] Parameter, Boolean assert)) .

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.Exception: Could not resolve type name: Sitecore.Analytics.Data.ContactRepository, Sitecore.Analytics (method: Sitecore.Configuration.Factory.CreateFromTypeName(XmlNode configNode, String[] parameters, Boolean assert)). 

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: 


[Exception: Could not resolve type name: Sitecore.Analytics.Data.ContactRepository, Sitecore.Analytics (method: Sitecore.Configuration.Factory.CreateFromTypeName(XmlNode configNode, String[] parameters, Boolean assert)).] 
    Sitecore.Diagnostics.Error.Raise(String error, String method) +108 
    Sitecore.Configuration.Factory.CreateType(XmlNode configNode, String[] parameters, Boolean assert) +230 
    Sitecore.Configuration.Factory.CreateFromTypeName(XmlNode configNode, String[] parameters, Boolean assert) +41 
    Sitecore.Configuration.Factory.CreateObject(XmlNode configNode, String[] parameters, Boolean assert, IFactoryHelper helper) +100 
    Sitecore.Configuration.Factory.CreateObject(String configPath, String[] parameters, Boolean assert) +451 
    Sitecore.Configuration.Factory.CreateFromReference(XmlNode configNode, String[] parameters, Boolean assert) +91 
    Sitecore.Configuration.Factory.CreateObject(XmlNode configNode, String[] parameters, Boolean assert, IFactoryHelper helper) +81 
    Sitecore.Configuration.Factory.GetInnerObject(XmlNode paramNode, String[] parameters, Boolean assert) +82 
    Sitecore.Configuration.Factory.AssignProperties(XmlNode configNode, String[] parameters, Object obj, Boolean assert, Boolean deferred, IFactoryHelper helper) +416 
    Sitecore.Configuration.Factory.CreateObject(XmlNode configNode, String[] parameters, Boolean assert, IFactoryHelper helper) +198 
    Sitecore.Configuration.Factory.CreateObject(String configPath, String[] parameters, Boolean assert) +451 
    Sitecore.Configuration.Factory.CreateObject(String configPath, Boolean assert) +38 
    Sitecore.Analytics.Pipelines.Loader.InitializeAutomation.Process(PipelineArgs args) +50 
    (Object , Object[]) +56 
    Sitecore.Pipelines.PipelineMethod.Invoke(Object[] parameters) +36 
    Sitecore.Pipelines.CorePipeline.Run(PipelineArgs args) +365 
    Sitecore.Pipelines.CorePipeline.Run(String pipelineName, PipelineArgs args, String pipelineDomain, Boolean failIfNotExists) +158 
    Sitecore.Nexus.Web.HttpModule.Application_Start() +165 
    Sitecore.Nexus.Web.HttpModule.Init(HttpApplication app) +498 
    System.Web.HttpApplication.RegisterEventSubscriptionsWithIIS(IntPtr appContext, HttpContext context, MethodInfo[] handlers) +534 
    System.Web.HttpApplication.InitSpecial(HttpApplicationState state, MethodInfo[] handlers, IntPtr appContext, HttpContext context) +172 
    System.Web.HttpApplicationFactory.GetSpecialApplicationInstance(IntPtr appContext, HttpContext context) +352 
    System.Web.Hosting.PipelineRuntime.InitializeApplication(IntPtr appContext) +296 

[HttpException (0x80004005): Could not resolve type name: Sitecore.Analytics.Data.ContactRepository, Sitecore.Analytics (method: Sitecore.Configuration.Factory.CreateFromTypeName(XmlNode configNode, String[] parameters, Boolean assert)).] 
    System.Web.HttpRuntime.FirstRequestInit(HttpContext context) +9947444 
    System.Web.HttpRuntime.EnsureFirstRequestInit(HttpContext context) +101 
    System.Web.HttpRuntime.ProcessRequestNotificationPrivate(IIS7WorkerRequest wr, HttpContext context) +261 
+0

Können Sie bitte die Einstellung Ihrer Analytics-Konfigurationsdatei angeben. –

Antwort

1

Ich habe versucht, eine neue Sitecore 8.1-Instanz zu erstellen und dann kopieren und fügen Sie die Config und Dll (beginnt mit "Sitecode.Analysys") in das Projekt. Es funktioniert

0

Es sieht aus wie Sitecore.Analytics.Data DLL-Datei nicht in Ihrem bin Ordner ist.

Stellen Sie sicher, dass alle Sitecore DLL-Dateien in Ihrer Website bin Ordner einschließlich Sitecore.Analytics.Data sind.

+1

Stellen Sie auch sicher, dass es die richtige Version der DLL ist. – Gatogordo

+0

@Gatogordo guter Punkt! –

+0

Ich konnte die Datei Sitecore.Analytics.Data.dll nicht finden. Der Typ "Sitecore.Analytics.Data.ContactRepository" sollte in Sitecore.Analytics.dll enthalten sein, wie ich es durch den Objektbrowser finden kann –

Verwandte Themen