Portal Engine Questions on portal engine and web parts.
Version 7.x > Portal Engine > PortalTemplate occurs a null error with AjaxControlToolkit.ToolkitScriptManager::GetScriptCombineAttributes method View modes: 
User avatar
Member
Member
lethanhclub-live - 11/29/2013 10:34:04 AM
   
PortalTemplate occurs a null error with AjaxControlToolkit.ToolkitScriptManager::GetScriptCombineAttributes method
I am using Kentico 7 and my kentico has 5 sites with VS2012. 4 sites are ok when be started without one site. I got a null error from logs site. Please look at the details below:


Message:
Computer web1.Prod.local
User Site.????.Consumer
Category System.Events.Page
Method AjaxControlToolkit.ToolkitScriptManager::GetScriptCombineAttributes
Description Preformatted
Object reference not set to an instance of an object.



Exception:
Root Cause Analysis
ToolkitScriptManager::GetScriptCombineAttributes caused a NullReferenceException when invoking Dictionary`2::set_Item-
Object reference not set to an instance of an object.
Exception Details copy
System.NullReferenceException
Message : Object reference not set to an instance of an object.
Source : mscorlib
Stack
trace copy
System.Web.UI.Page::ProcessRequestMain
System.Web.UI.Page::PerformPreRenderComplete
CMS.UIControls.AbstractCMSPage::OnPreRenderComplete
System.Web.UI.Page::OnPreRenderComplete
System.Web.UI.ScriptManager::OnPagePreRenderComplete
System.Web.UI.ScriptManager::RegisterScripts
AjaxControlToolkit.ToolkitScriptManager::OnResolveScriptReference
AjaxControlToolkit.ToolkitScriptManager::IsScriptCombinable
AjaxControlToolkit.ToolkitScriptManager::GetScriptCombineAttributes
System.Collections.Generic.Dictionary`2::set_Item
System.Collections.Generic.Dictionary`2::Insert



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>


I can not reproduce this bug. We have upgraded kentico to lastest version(included AjaxControlToolkit and ???? is site's name). I think it is related to this thread

User avatar
Member
Member
lethanhclub-live - 12/1/2013 8:48:28 PM
   
RE:PortalTemplate occurs a null error with AjaxControlToolkit.ToolkitScriptManager::GetScriptCombineAttributes method
can anyone help me?

User avatar
Kentico Support
Kentico Support
kentico_radekm - 12/4/2013 2:31:15 AM
   
RE:PortalTemplate occurs a null error with AjaxControlToolkit.ToolkitScriptManager::GetScriptCombineAttributes method
Hello.

That second thread you refer to is related to problem with VS2013, not VS2012. What .NET Framework is given project based on? Did you convert it using VS2013? Or this second problem it not related to VS2013 at all?

Are there any steps I could follow to reproduce this issue on my end? If not, would it be possible to send me your site export to support@kentico.com and refer to this forum thread? Thank you.

Best Regards,
Radek Macalik