Parameter name: templateControl

Vote:
 

Hi all,

I have an error in my error log, any idea what it can be? where to start looking? i would like to eliminate it.

Upgrade from CMS 6 to CMS 8.10 Commerce 8.15 (asp.net webforms)

?.? - Error instantiating property
System.ArgumentNullException: Value cannot be null.
Parameter name: templateControl
   at EPiServer.Web.TemplateControlLoader.LoadControl(HttpContextBase httpContext, Type renderType, Object renderData, TemplateControl templateControl, String tag, IDictionary`2 renderSettings, Action`2 bindDataAction)
   at EPiServer.Core.PropertyControlClassFactory.CreatePropertyControl(PropertyData propertyData, HttpContextBase httpContext, TemplateControl templateControl, String tag)
   at EPiServer.DynamicContent.PlugIn.DynamicPageProperty.<>c__DisplayClass1.b__0(PropertyData p)
   at EPiServer.DynamicContent.PlugIn.DynamicPageProperty.CreatePropertyObject(Action`1 action)System.ArgumentNullException: Value cannot be null.
Parameter name: templateControl
   at EPiServer.Web.TemplateControlLoader.LoadControl(HttpContextBase httpContext, Type renderType, Object renderData, TemplateControl templateControl, String tag, IDictionary`2 renderSettings, Action`2 bindDataAction)
   at EPiServer.Core.PropertyControlClassFactory.CreatePropertyControl(PropertyData propertyData, HttpContextBase httpContext, TemplateControl templateControl, String tag)
   at EPiServer.DynamicContent.PlugIn.DynamicPageProperty.<>c__DisplayClass1.b__0(PropertyData p)
   at EPiServer.DynamicContent.PlugIn.DynamicPageProperty.CreatePropertyObject(Action`1 action)

Can it be that we dont have TemplateDescription on every template? since it is set in the database?
This error is logging every minutes, but not for all page requests.

#135741
Sep 16, 2015 8:32
Vote:
 

Hi,

I think that if you miss TemplateDescription (and have no template for block) then you would get a view renderred with message "Unable to render property"

I think that you should figure out which page cause the problem (just click on the tree and see if the error appear). Thi could help you to limit the context of problem.

#135857
Sep 16, 2015 12:19
Vote:
 

Found out the origin is pages where we use dynamic content in HTML editors. It throws this error even if it is working on the page. so i have filtered away this in the log.

Dynamic Content allows developers to create blocks of functionality in code which can then be utilized later by an editor on a page in the HTML editor

#151971
Aug 11, 2016 11:01
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.