• Not Answered

Experience Editor crashing

Hi All,

I am using Sitecore.NET 8.0 (rev. 150812).

Whenever i am accesing the Experience Editor, it gives me below error. Kindly help me to resolve this.

 

Server Error in '/' Application.


Value cannot be null.
Parameter name: args.Item

Description: An unhandled exception occurred.

Exception Details: System.ArgumentNullException: Value cannot be null.
Parameter name: args.Item

Source Error:

Line 161:
Line 162:                <!-- Packages & Promotions -->
Line 163:                @Html.Sitecore().Placeholder("contents")
Line 164:
Line 165:            </div>


Source File: e:\TMSitecore8rev150812\Website\Views\Layouts\Homepage.cshtml    Line: 163

Stack Trace:

[ArgumentNullException: Value cannot be null.
Parameter name: args.Item]
   Sitecore.Diagnostics.Assert.ArgumentNotNull(Object argument, String argumentName) +66
   Sitecore.ContentTesting.Pipelines.GetChromeData.GetOptimizationRenderingChromeData.Process(GetChromeDataArgs args) +85
   (Object , Object[] ) +83
   Sitecore.Pipelines.CorePipeline.Run(PipelineArgs args) +365
   Sitecore.Pipelines.GetChromeData.GetChromeDataPipeline.Run(GetChromeDataArgs args) +312
   Sitecore.Mvc.ExperienceEditor.Presentation.RenderingMarker.GetClientData() +259
   Sitecore.Mvc.ExperienceEditor.Presentation.RenderingMarker.GetStart() +51
   Sitecore.Mvc.ExperienceEditor.Pipelines.Response.RenderRendering.AddWrapper.Process(RenderRenderingArgs args) +288
   (Object , Object[] ) +83
   Sitecore.Pipelines.CorePipeline.Run(PipelineArgs args) +365
   Sitecore.Mvc.Pipelines.PipelineService.RunPipeline(String pipelineName, TArgs args) +186
   Sitecore.Mvc.Pipelines.Response.RenderPlaceholder.PerformRendering.Render(String placeholderName, TextWriter writer, RenderPlaceholderArgs args) +192
   (Object , Object[] ) +83
   Sitecore.Pipelines.CorePipeline.Run(PipelineArgs args) +365
   Sitecore.Mvc.Pipelines.PipelineService.RunPipeline(String pipelineName, TArgs args) +186
   Sitecore.Mvc.Helpers.SitecoreHelper.Placeholder(String placeholderName) +323
   ASP._Page_Views_Layouts_Homepage_cshtml.Execute() in e:\TMSitecore8rev150812\Website\Views\Layouts\Homepage.cshtml:163
   System.Web.WebPages.WebPageBase.ExecutePageHierarchy() +280
   System.Web.Mvc.WebViewPage.ExecutePageHierarchy() +125
   System.Web.WebPages.WebPageBase.ExecutePageHierarchy(WebPageContext pageContext, TextWriter writer, WebPageRenderingBase startPage) +125
   System.Web.Mvc.Html.PartialExtensions.Partial(HtmlHelper htmlHelper, String partialViewName, Object model, ViewDataDictionary viewData) +167
   Sitecore.Mvc.Presentation.ViewRenderer.Render(TextWriter writer) +223

[InvalidOperationException: Error while rendering view: '/Views/Layouts/Homepage.cshtml' (model: 'Sitecore.Mvc.Presentation.RenderingModel, Sitecore.Mvc').
]
   Sitecore.Mvc.Presentation.ViewRenderer.Render(TextWriter writer) +784
   Sitecore.Mvc.Pipelines.Response.RenderRendering.ExecuteRenderer.Render(Renderer renderer, TextWriter writer, RenderRenderingArgs args) +27
   Sitecore.Mvc.Pipelines.Response.RenderRendering.ExecuteRenderer.Process(RenderRenderingArgs args) +62
   (Object , Object[] ) +83
   Sitecore.Pipelines.CorePipeline.Run(PipelineArgs args) +365
   Sitecore.Mvc.Pipelines.PipelineService.RunPipeline(String pipelineName, TArgs args) +186
   Sitecore.Mvc.Presentation.RenderingView.Render(ViewContext viewContext, TextWriter writer) +294
   System.Web.Mvc.ViewResultBase.ExecuteResult(ControllerContext context) +380
   System.Web.Mvc.ControllerActionInvoker.InvokeActionResultFilterRecursive(IList`1 filters, Int32 filterIndex, ResultExecutingContext preContext, ControllerContext controllerContext, ActionResult actionResult) +109
   System.Web.Mvc.ControllerActionInvoker.InvokeActionResultFilterRecursive(IList`1 filters, Int32 filterIndex, ResultExecutingContext preContext, ControllerContext controllerContext, ActionResult actionResult) +890
   System.Web.Mvc.ControllerActionInvoker.InvokeActionResultFilterRecursive(IList`1 filters, Int32 filterIndex, ResultExecutingContext preContext, ControllerContext controllerContext, ActionResult actionResult) +890
   System.Web.Mvc.ControllerActionInvoker.InvokeActionResultWithFilters(ControllerContext controllerContext, IList`1 filters, ActionResult actionResult) +97
   System.Web.Mvc.ControllerActionInvoker.InvokeAction(ControllerContext controllerContext, String actionName) +879

 


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

3 Replies

  • Hi Shahid,

    The error shows that exception took place because of an item. Does this rendering use any data source and may be because of the items in the data source it is throwing exception on parent layout?

    Can you give more details about this rendering "@Html.Sitecore().Placeholder("contents")"?

    The best way to confirm if this error is because of the business logic of this rendering, comment it out and try to load Experience Editor.

    Hope this helps..
  • In reply to Rohan Kenkre:

    Hi Rohan,

    Thanks for your reply.

    After commenting out the line "@Html.Sitecore().Placeholder("contents")"?

    Now it gives some other errors. I got following errors from developer console.

    GET /sitecore/client/Applications/ExperienceEditor/Ribbon.aspx?sc_content=core&ribbonId=%7B570A52B6-6755-461A-8052-5B95EF766F74%7D&itemId=%7B49B373C9-9FD0-474A-B4F1-00B9EE80E66B%7D&deviceId=%7BFE5D7FDF-89C0-4D99-9AA3-B5FBD009C9F3%7D&database=web&mode=edit&url=%2Fen%2Fpk&lang=en&pageSite=website 500 (Internal Server Error)


    pk:1022 Uncaught TypeError: $(...).ready is not a function
    at pk:1022
    (anonymous) @ pk:1022


    pk:2189 Uncaught TypeError: $(...).ready is not a function
    at pk:2189
    (anonymous) @ pk:2189


    scripts?v=uXRnQ1rtwU4VbbpGxL6l77rRIF68pLwk5EGS-zUtqxs1:1 Uncaught TypeError: Cannot read property 'each' of null
    at scripts?v=uXRnQ1rtwU4VbbpGxL6l77rRIF68pLwk5EGS-zUtqxs1:1
    (anonymous) @ scripts?v=uXRnQ1rtwU4VbbpGxL6l77rRIF68pLwk5EGS-zUtqxs1:1
    Homepage.js:12 Uncaught TypeError: $(...).ready is not a function
    at Homepage.js:12
    (anonymous) @ Homepage.js:12


    pk:53 Uncaught TypeError: Cannot read property 'attr' of null
    at HTMLDocument.<anonymous> (pk:53)
    at a (jQueryAndModernizr?v=uDkjYG2M1pJ4hXoZUR132YHMVk8EW6vdGenSEf9nMxo1:1)
    at Object.fireWith [as resolveWith] (jQueryAndModernizr?v=uDkjYG2M1pJ4hXoZUR132YHMVk8EW6vdGenSEf9nMxo1:1)
    at Function.ready (jQueryAndModernizr?v=uDkjYG2M1pJ4hXoZUR132YHMVk8EW6vdGenSEf9nMxo1:1)
    at HTMLDocument.st (jQueryAndModernizr?v=uDkjYG2M1pJ4hXoZUR132YHMVk8EW6vdGenSEf9nMxo1:1)
  • In reply to Shahid Rasul:

    Can you check the error reported at line 12 in "Homepage.js"?