value cannot be null : Parameter name: Key while creating page in sitefinity 9.1
Hi,
I am getting this error when i try to create a page in sitefinity backend.
Value cannot be null.
Parameter name: keyDescription: 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) +14312893
System.Collections.Generic.Dictionary`2.TryGetValue(TKey key, TValue& value) +20
Microsoft.VisualStudio.Web.PageInspector.Runtime.Tracing.BrowserLinkExecutionListener.FindSourceFile(PageExecutionContext context, RenderedSourceFile& sourceFile) +48
Microsoft.VisualStudio.Web.PageInspector.Runtime.Tracing.BrowserLinkExecutionListener.OpenRenderRange(PageExecutionContext context, Int32 renderedStartPosition) +42
Microsoft.VisualStudio.Web.PageInspector.Runtime.WebForms.SelectionMappingRenderTraceListener.Begin(TextWriter writer, String file, Int32 start, Int32 length, Boolean literal) +339
Microsoft.VisualStudio.Web.PageInspector.Runtime.WebForms.SelectionMappingRenderTraceListener.BeginRendering(TextWriter writer, Object renderedObject) +248
System.Web.UI.RenderTraceListenerList.BeginRendering(TextWriter writer, Object renderedObject) +142
System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter) +71
System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) +246
System.Web.UI.WebControls.LinkButton.RenderContents(HtmlTextWriter writer) +171
System.Web.UI.WebControls.WebControl.Render(HtmlTextWriter writer) +52
System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter) +150
System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) +246
System.Web.UI.WebControls.WebControl.RenderContents(HtmlTextWriter writer) +15
System.Web.UI.WebControls.WebControl.Render(HtmlTextWriter writer) +52
System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter) +150
System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) +246
System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter) +150
System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) +246
System.Web.UI.WebControls.WebControl.RenderContents(HtmlTextWriter writer) +15
System.Web.UI.WebControls.WebControl.Render(HtmlTextWriter writer) +52
System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter) +150
Telerik.Sitefinity.Web.UI.Fields.TextField.GetHtmlOutputForControl(Control ctrl) +140
Telerik.Sitefinity.Web.UI.Fields.TextField.ConstructClientSideTemplates(GenericContainer container) +821
Telerik.Sitefinity.Modules.Pages.Web.UI.Fields.UrlMirrorTextField.InitializeControls(GenericContainer container) +45
Telerik.Sitefinity.Web.UI.SimpleView.CreateChildControls() +88
System.Web.UI.Control.EnsureChildControls() +189
System.Web.UI.WebControls.CompositeControl.get_Controls() +24
Telerik.Sitefinity.Web.UI.ControlTraverser.GetDepthFirst() +33
Telerik.Sitefinity.Web.UI.ControlTraverser.MoveNext() +52
Telerik.Sitefinity.Web.UI.ResourceLinks.FindTypedControl(String id, Type searchType, TraverseMethod method) +433
Telerik.Sitefinity.Web.UI.ResourceLinks.FindControl(String id, Control root) +249
Telerik.Sitefinity.Web.UI.ResourceLinks.SetResourceProperty(EmbeddedResourcePropertySetter resProp) +52
Telerik.Sitefinity.Web.UI.ResourceLinks.CreateChildControls() +720
System.Web.UI.Control.EnsureChildControls() +189
System.Web.UI.Control.PreRenderRecursiveInternal() +73
System.Web.UI.Control.PreRenderRecursiveInternal() +240
System.Web.UI.Control.PreRenderRecursiveInternal() +240
System.Web.UI.Control.PreRenderRecursiveInternal() +240
System.Web.UI.Control.PreRenderRecursiveInternal() +240
System.Web.UI.Control.PreRenderRecursiveInternal() +240
System.Web.UI.Control.PreRenderRecursiveInternal() +240
System.Web.UI.Control.PreRenderRecursiveInternal() +240
System.Web.UI.Control.PreRenderRecursiveInternal() +240
System.Web.UI.Control.PreRenderRecursiveInternal() +240
System.Web.UI.Control.PreRenderRecursiveInternal() +240
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +4090
Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.34274
Just updated our site from version 8.2 to version 9.2 and am now getting this exact error on creating a new page. Did you ever find a solution?
Sorry, already found an answer. I turned off Browser Link in visual studio and that fixed it. I suspect that if I pushed this out to our production server instead of running it locally there would not have been any problem since Visual Studio would not have been involved and Debug would be set to false.
Was the same with me - but when I tried to bring up any edit page (edit dynamic content, edit news, etc). The tell-tale was in the stack trace:
Microsoft.VisualStudio.Web.PageInspector.Runtime.Tracing.BrowserLinkExecutionListener etc
Thanks Matthew