Dieses Blog durchsuchen

Donnerstag, 18. Juni 2015

SBOS Sitecore Business Optimization Services started in DACH region

For those who missed the webinar. Sitecore DACH started the SBOS services in the DACH region. I am very happy about that. Session from Christopher Nash are my highlight on Sitecore events.




Check out some cool slides from this webinar.









Mittwoch, 10. Juni 2015

Sitecore: An instance of Sitecore.Data.Items.Item was null. Additional information: Failed to find the root item "/".

This one was my vault. I tried to get rid for the viewstate to gain speed. So I disabled Viewstate for the whole website and sitecore backend via web.config.

The better solution is to do it in Codebehinf or in the ASCX files.

In ASCX files:


<%@ Control Language="C#" EnableViewState="false" AutoEventWireup="true" CodeBehind="WebService.ascx.cs"  Inherits="ICR..WebServices.WebService" %>


In code behind :

Do it like this:

protected void Page_Init(object sender, EventArgs e)

        {

            this.EnableViewState = false;       

        }




Server Error in '/' Application.

An instance of Sitecore.Data.Items.Item was null. Additional information: Failed to find the root item "/".

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: An instance of Sitecore.Data.Items.Item was null. Additional information: Failed to find the root item "/".

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: An instance of Sitecore.Data.Items.Item was null. Additional information: Failed to find the root item "/".]
   Sitecore.Web.UI.HtmlControls.DataContext.GetState(Item& root, Item& folder, Item[]& selected) +1404
   Sitecore.Web.UI.HtmlControls.DataContext.GetRoot() +39
   Sitecore.Shell.Applications.ContentManager.ContentEditorForm.OnLoad(EventArgs e) +1553

[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.RuntimeMethodInfo.UnsafeInvokeInternal(Object obj, Object[] parameters, Object[] arguments) +92
   System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture) +155
   Sitecore.Reflection.ReflectionUtil.CallMethod(Type type, Object obj, String methodName, Boolean includeNonPublic, Boolean includeInherited, Boolean includeStatic, Object[] parameters) +141
   Sitecore.Web.UI.Sheer.ClientPage.OnLoad(EventArgs e) +395
   Sitecore.Shell.Web.UI.SecurePage.OnLoad(EventArgs e) +25
   System.Web.UI.Control.LoadRecursive() +54
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +772



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

Dienstag, 9. Juni 2015

Sitecore: Package generation failed Root element is missing

Recently I had this error on a new, fresh environment while dealing with packages:

"Package generation failed Root element is missing"

Solution:


Give access rights to temp folder. Or lets say allow IIS user to write in there. This solved it for me.


Error:

Package generation failed Root element is missing



Dienstag, 2. Juni 2015

Sitecore 7: Exception of type ‘Lucene.Net.Index.MergePolicy+MergeException’ was thrown.

Intro

Recently I got this  error, Exception of type ‘Lucene.Net.Index.MergePolicy+MergeException’ was thrown, in our log files. This was a Sitecore 7 site, rev. 140905.

First try and error punsh was to delete the files in the indexes folder ("sitecore_master_index") and rebuilding the index. Suprisingly the issue went away. Rebuiling usefull on a dev machine...

Here the error log entry:

Lucene Merge Thread #0 14:54:38 ERROR Unhandled exception detected. The ASP.NET worker process will be terminated. 
Exception: Lucene.Net.Index.MergePolicy+MergeException
Message: Exception of type 'Lucene.Net.Index.MergePolicy+MergeException' was thrown.
Source: Lucene.Net
   at Lucene.Net.Index.ConcurrentMergeScheduler.HandleMergeException(Exception exc)
   at Lucene.Net.Index.ConcurrentMergeScheduler.MergeThread.Run()
   at System.Threading.ThreadHelper.ThreadStart_Context(Object state)
   at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
   at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
   at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
   at System.Threading.ThreadHelper.ThreadStart()