Try our conversational search powered by Generative AI!

Unhandled exception global or shared blocks

Vote:
 

Hi , Is there anyone had this error before.

This is fired on the global/shared blocks. When you try to edit it in Edit Mode this exception is fired in to log file. of course this does not tell so much what causes the problem. when this error occurs epi sever crashes. saying that you need to log out and in again in order to proceed with other thing.

 

2014-03-14 09:59:05,200 ERROR [45] EPiServer.Global.Global_Error - 1.2.5 Unhandled exception in ASP.NET
System.NullReferenceException: Object reference not set to an instance of an object.
at EPiServer.Cms.Shell.IContentExtensions.IsRootNode(IContent content)
at EPiServer.Cms.Shell.UI.Rest.Models.Transforms.ContentDataStoreModelTransform.GetAccessRights(IContent content)
at EPiServer.Cms.Shell.UI.Rest.Models.Transforms.ContentDataStoreModelTransform.<>c__DisplayClass2.<GetExistingLanguageBranches>b__1(CultureInfo l)
at System.Linq.Enumerable.WhereSelectListIterator`2.MoveNext()
at Newtonsoft.Json.Serialization.JsonSerializerInternalWriter.SerializeList(JsonWriter writer, IEnumerable values, JsonArrayContract contract, JsonProperty member, JsonContainerContract collectionContract, JsonProperty containerProperty)
at Newtonsoft.Json.Serialization.JsonSerializerInternalWriter.SerializeObject(JsonWriter writer, Object value, JsonObjectContract contract, JsonProperty member, JsonContainerContract collectionContract, JsonProperty containerProperty)
at Newtonsoft.Json.Serialization.JsonSerializerInternalWriter.Serialize(JsonWriter jsonWriter, Object value, Type objectType)
at Newtonsoft.Json.JsonSerializer.SerializeInternal(JsonWriter jsonWriter, Object value, Type objectType)
at EPiServer.Shell.Services.Rest.RestResult.ExecuteResult(ControllerContext context)
at System.Web.Mvc.ControllerActionInvoker.<>c__DisplayClass1a.<InvokeActionResultWithFilters>b__17()
at System.Web.Mvc.ControllerActionInvoker.InvokeActionResultFilter(IResultFilter filter, ResultExecutingContext preContext, Func`1 continuation)
at System.Web.Mvc.ControllerActionInvoker.InvokeActionResultFilter(IResultFilter filter, ResultExecutingContext preContext, Func`1 continuation)
at System.Web.Mvc.ControllerActionInvoker.InvokeActionResultWithFilters(ControllerContext controllerContext, IList`1 filters, ActionResult actionResult)
at System.Web.Mvc.ControllerActionInvoker.InvokeAction(ControllerContext controllerContext, String actionName)
at EPiServer.Shell.Services.Rest.RestControllerBase.ExecuteCore()
at System.Web.Mvc.ControllerBase.Execute(RequestContext requestContext)
at EPiServer.Shell.Services.Rest.RestHttpHandler.ProcessRequest(HttpContextBase httpContext)
at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)

 

Any help appreciated,

Thanks in advance

#82539
Mar 14, 2014 10:36
Vote:
 

Somehow Today I've started to have this error when I try to edit commerce product (EPiServer->Commerce->Catalog) (product is not displayed).

#82788
Mar 19, 2014 17:05
Vote:
 

Hi,

I know this is old but I have the same issue on a site now. Anyone know what the source can be? It's when the editor tries to translate a block, when the editor presses the "Create" button for the translated block we get the error in the logfile.

-----

1.2.5 Unhandled exception in ASP.NET System.NullReferenceException: Object reference not set to an instance of an object.
at EPiServer.Cms.Shell.IContentExtensions.IsRootNode(SiteDefinitionRepository siteDefinitionRepository, IContent content)
at EPiServer.Cms.Shell.UI.Rest.Models.Transforms.ContentDataStoreModelTransform.GetAccessRights(IContent content)
at EPiServer.Cms.Shell.UI.Rest.Models.Transforms.ContentDataStoreModelTransform.<>c__DisplayClass2.<GetExistingLanguageBranches>b__1(CultureInfo l)
at System.Linq.Enumerable.WhereSelectListIterator`2.MoveNext()
at Newtonsoft.Json.Serialization.JsonSerializerInternalWriter.SerializeList(JsonWriter writer, IEnumerable values, JsonArrayContract contract, JsonProperty member, JsonContainerContract collectionContract, JsonProperty containerProperty)
at Newtonsoft.Json.Serialization.JsonSerializerInternalWriter.SerializeObject(JsonWriter writer, Object value, JsonObjectContract contract, JsonProperty member, JsonContainerContract collectionContract, JsonProperty containerProperty)
at Newtonsoft.Json.Serialization.JsonSerializerInternalWriter.Serialize(JsonWriter jsonWriter, Object value, Type objectType)
at Newtonsoft.Json.JsonSerializer.SerializeInternal(JsonWriter jsonWriter, Object value, Type objectType)
at EPiServer.Framework.Serialization.Json.JsonObjectSerializer.Serialize(TextWriter textWriter, Object value)
at EPiServer.Shell.Services.Rest.RestResultBase.ExecuteResult(ControllerContext context)
at EPiServer.Shell.Services.Rest.RestResult.ExecuteResult(ControllerContext context)
at System.Web.Mvc.ControllerActionInvoker.InvokeActionResultFilterRecursive(IList`1 filters, Int32 filterIndex, ResultExecutingContext preContext, ControllerContext controllerContext, ActionResult actionResult)
at System.Web.Mvc.ControllerActionInvoker.InvokeActionResultFilterRecursive(IList`1 filters, Int32 filterIndex, ResultExecutingContext preContext, ControllerContext controllerContext, ActionResult actionResult)
at System.Web.Mvc.ControllerActionInvoker.InvokeActionResultFilterRecursive(IList`1 filters, Int32 filterIndex, ResultExecutingContext preContext, ControllerContext controllerContext, ActionResult actionResult)
at System.Web.Mvc.ControllerActionInvoker.InvokeActionResultWithFilters(ControllerContext controllerContext, IList`1 filters, ActionResult actionResult)
at System.Web.Mvc.Async.AsyncControllerActionInvoker.<>c__DisplayClass21.<BeginInvokeAction>b__1e(IAsyncResult asyncResult)
at System.Web.Mvc.Async.AsyncControllerActionInvoker.EndInvokeAction(IAsyncResult asyncResult)
at System.Web.Mvc.Async.AsyncControllerActionInvoker.EndInvokeAction(IAsyncResult asyncResult)
at EPiServer.Shell.Services.Rest.RestControllerBase.EndExecute(IAsyncResult asyncResult)
at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)

-----

/Viktor

#176807
Mar 28, 2017 8:52
Vote:
 

Do you have language settings defined on the root page or the home page? If I am not wrong, blocks look at the setting defined on the root page.

#176827
Mar 28, 2017 17:39
Vote:
 

In your existing Block Is there link to any Reference that has been Deleted or expired?

/K

#176831
Mar 28, 2017 18:01
Vote:
 

We are now experiencing this issue when trying to edit forms.  Anyone know of the cause?

#203640
Apr 30, 2019 17:53
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.