Sitecore for Developers
Sitecore 8 error editing the presentation layer
Issue: Error when trying to edit the presentation layerVersions:Sitecore 8, Initial Release (rev 140922)
Visual Studio 2013
DetailsAfter building my Sitecore 8 solution in Visual Studio 2013, I would get the following error trying to edit the presentation layer. If I rebooted, the issue would go away (not if I reset IIS), but return as soon as I built again.
Server Error in '/' Application.
Value cannot be null.
Parameter name: key
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.ArgumentNullException: Value cannot be null.
Parameter name: key
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:
[ArgumentNullException: Value cannot be null.Parameter name: key]System.Collections.Generic.Dictionary`2.FindEntry(TKey key) +14206549System.Collections.Generic.Dictionary`2.TryGetValue(TKey key, TValue& value) +20Microsoft.VisualStudio.Web.PageInspector.Runtime.WebForms.SelectionMappingRenderTraceListener.GetLiteralTraceData(LiteralControl literal, TraceData& data) +71Microsoft.VisualStudio.Web.PageInspector.Runtime.WebForms.SelectionMappingRenderTraceListener.GetTraceData(Object renderedObject) +220Microsoft.VisualStudio.Web.PageInspector.Runtime.WebForms.SelectionMappingRenderTraceListener.EndRendering(TextWriter writer, Object renderedObject) +47...
Resolution
Modify web.config to remove Visual Studio Page Inspector
<appSettings>
<add key="PageInspector:ServerCodeMappingSupport" value="Disabled" />
</appSettings