|
Member
|
lethanhclub-live
-
11/27/2013 4:24:39 AM
PortalTemplate occurs a null error
Hi all, I am using Kentico 7 and my kentico has 5 sites. 4 sites are ok when be started without one site. I got a null error when running. Please look at the image below: My current os is windows 8.1 and I am working with vs 2013 (it worked before with windows 7 and vs 2012) This is stack trace: {System.Collections.ListDictionaryInternal}
{System.Collections.ListDictionaryInternal.NodeKeyValueCollection}
at System.Collections.Generic.Dictionary`2.FindEntry(TKey key) at System.Collections.Generic.Dictionary`2.TryGetValue(TKey key, TValue& value) at Microsoft.VisualStudio.Web.PageInspector.Runtime.WebForms.SelectionMappingRenderTraceListener.GetLiteralTraceData(LiteralControl literal, TraceData& data) at Microsoft.VisualStudio.Web.PageInspector.Runtime.WebForms.SelectionMappingRenderTraceListener.GetTraceData(Object renderedObject) at Microsoft.VisualStudio.Web.PageInspector.Runtime.WebForms.SelectionMappingRenderTraceListener.BeginRendering(TextWriter writer, Object renderedObject) at System.Web.UI.RenderTraceListener.RenderTraceListenerList.BeginRendering(TextWriter writer, Object renderedObject) at System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter) at System.Web.UI.Control.RenderControl(HtmlTextWriter writer, ControlAdapter adapter) at System.Web.UI.Control.RenderControl(HtmlTextWriter writer) at System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) at System.Web.UI.Control.RenderChildren(HtmlTextWriter writer) at System.Web.UI.Control.Render(HtmlTextWriter writer) at CMS.ExtendedControls.AbstractUserControl.Render(HtmlTextWriter writer) at CMS.PortalControls.CMSAbstractWebPart.StandardRender(HtmlTextWriter writer) at CMS.PortalControls.CMSAbstractWebPart.RenderInternal(HtmlTextWriter writer) at CMS.PortalControls.CMSAbstractWebPart.Render(HtmlTextWriter writer) at System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter) at System.Web.UI.Control.RenderControl(HtmlTextWriter writer, ControlAdapter adapter) at System.Web.UI.Control.RenderControl(HtmlTextWriter writer) at System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) at System.Web.UI.Control.RenderChildren(HtmlTextWriter writer) at CMS.PortalControls.CMSWebPartZone.RenderZone(HtmlTextWriter writer, Boolean renderEnvelope) at CMS.PortalControls.CMSWebPartZone.StandardRender(HtmlTextWriter writer) at CMS.PortalControls.CMSWebPartZone.Render(HtmlTextWriter writer) at System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter) at System.Web.UI.Control.RenderControl(HtmlTextWriter writer, ControlAdapter adapter) at System.Web.UI.Control.RenderControl(HtmlTextWriter writer) at System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) at System.Web.UI.Control.RenderChildren(HtmlTextWriter writer) at System.Web.UI.Control.Render(HtmlTextWriter writer) at CMS.ExtendedControls.AbstractUserControl.Render(HtmlTextWriter writer) at System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter) at System.Web.UI.Control.RenderControl(HtmlTextWriter writer, ControlAdapter adapter) at System.Web.UI.Control.RenderControl(HtmlTextWriter writer) at CMS.PortalControls.CMSPagePlaceholder.Render(HtmlTextWriter writer) at System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter) at System.Web.UI.Control.RenderControl(HtmlTextWriter writer, ControlAdapter adapter) at System.Web.UI.Control.RenderControl(HtmlTextWriter writer) at System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) at System.Web.UI.HtmlControls.HtmlForm.RenderChildren(HtmlTextWriter writer) at System.Web.UI.HtmlControls.HtmlContainerControl.Render(HtmlTextWriter writer) at System.Web.UI.HtmlControls.HtmlForm.Render(HtmlTextWriter output) at System.Web.UI.Adapters.ControlAdapter.Render(HtmlTextWriter writer) at CMS.OutputFilter.HtmlFormAdapter.Render(HtmlTextWriter writer) at System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter) at System.Web.UI.Control.RenderControl(HtmlTextWriter writer, ControlAdapter adapter) at System.Web.UI.HtmlControls.HtmlForm.RenderControl(HtmlTextWriter writer) at ASP.cmspages_portaltemplate_aspx.__Render__control1(HtmlTextWriter __w, Control parameterContainer) in d:\Cardlab\Payjr\main\GiftCardLab\GiftCardLab\KenticoCMS\CMSPages\PortalTemplate.aspx:line 11 at System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) at System.Web.UI.Control.RenderChildren(HtmlTextWriter writer) at System.Web.UI.Page.Render(HtmlTextWriter writer) at CMS.UIControls.ContentPage.Render(HtmlTextWriter writer) at System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter) at System.Web.UI.Control.RenderControl(HtmlTextWriter writer, ControlAdapter adapter) at System.Web.UI.Control.RenderControl(HtmlTextWriter writer) at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
can anyone help me resolve this problem?
|
|
|
Certified Developer 10
|
josha-bpstudios
-
11/27/2013 9:49:29 AM
RE:PortalTemplate occurs a null error
There is another post that discusses this issue, but a workaround for now is to put this attribute in the web.config file under appsettings.
<add key="PageInspector:ServerCodeMappingSupport" value="Disabled" />
|
|
|
Member
|
lethanhclub-live
-
11/27/2013 9:37:44 PM
RE:PortalTemplate occurs a null error
It's worked great! thank you josha-bpstudios, I have searched but nothing to show for me. By the way, I also got an error looks like the bug above: Stack trace: at System.Collections.Generic.Dictionary`2.Insert(TKey key, TValue value, Boolean add) at System.Collections.Generic.Dictionary`2.set_Item(TKey key, TValue value) at AjaxControlToolkit.ToolkitScriptManager.GetScriptCombineAttributes(Assembly assembly) at AjaxControlToolkit.ToolkitScriptManager.IsScriptCombinable(ScriptEntry scriptEntry) at AjaxControlToolkit.ToolkitScriptManager.OnResolveScriptReference(ScriptReferenceEventArgs e) at System.Web.UI.ScriptManager.RegisterScripts() at System.Web.UI.ScriptManager.OnPagePreRenderComplete(Object sender, EventArgs e) at System.Web.UI.Page.OnPreRenderComplete(EventArgs e) at CMS.UIControls.AbstractCMSPage.OnPreRenderComplete(EventArgs e) at System.Web.UI.Page.PerformPreRenderComplete() at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
Details <requestInformation> <requestUrl>http://www.????.com/CMSPages/PortalTemplate.aspx?aliaspath=%2fmaster-public%2fHome-Pages%2fNon-Seasonal-Home</requestUrl> <requestPath>/CMSPages/PortalTemplate.aspx</requestPath> <userHostAddress>10.206.43.190</userHostAddress> <threadAccountName>IIS APPPOOL\Site.????.Consumer</threadAccountName> </requestInformation>
may your instruction fix this also?
|
|
|
Member
|
lethanhclub-live
-
11/27/2013 9:59:47 PM
RE:PortalTemplate occurs a null error
more info: Root Cause Analysis ToolkitScriptManager::GetScriptCombineAttributes caused a NullReferenceException when invoking Dictionary`2::set_Item- Object reference not set to an instance of an object.
System.NullReferenceException Message : Object reference not set to an instance of an object. Source : mscorlib
|
|
|
Kentico Support
|
kentico_jurajo
-
11/28/2013 2:44:23 AM
RE:PortalTemplate occurs a null error
Hello, Please check this forum thread and especially the Workarounds tab - there is also a second workaround where you need to disable the "Enable Browser Link" feature. I hope it will help. Best regards, Juraj Ondrus
|
|
|
Member
|
lethanhclub-live
-
11/28/2013 8:50:37 AM
RE:PortalTemplate occurs a null error
Yes, thank you for your help! I have resolved the first bug then I need a solution for the second bug above.
|
|
|
Kentico Support
|
kentico_jurajo
-
11/29/2013 2:55:03 AM
RE:PortalTemplate occurs a null error
Hello,
so, it is an unrelated error to this issue and you have used both workarounds for the VS2013 bug, am I right? If so, could you please describe when and how the second error occurs?
Also, next time, please start a separate thread for separate questions or issues to avoid confusion. Thank you.
Best regards, Juraj Ondrus
|
|
|
Member
|
lethanhclub-live
-
11/29/2013 10:23:53 AM
RE:PortalTemplate occurs a null error
yes, I got it. Thanks for your help.
|
|