Error loading custom item page.

GetPostTemplate query did not return any row.



at Vianett.Publishing.SystemFramework.ApplicationAssert.CheckCondition(Boolean condition, String errorText, Int32 lineNumber) in C:\projects\frigg\Website\SystemFramework\ApplicationAssert.cs:line 24 at Vianett.Publishing.DataAccess.TemplateDAL.GetPostTemplate(Int32 postTemplateID, Int32 templateTypeID, Boolean login, Boolean ignoreRelatedTemplate) in C:\projects\frigg\Website\DataAccess\TemplateDAL.cs:line 173 at Vianett.Publishing.BusinessFacade.TemplateSystem.GetPostTemplate(Int32 postTemplateID, Int32 templateTypeID, Boolean login, Boolean ignoreRelatedTemplate) in C:\projects\frigg\Website\BusinessFacade\TemplateSystem.cs:line 83 at Vianett.Publishing.Template.base_helper.CachePostTemplateRow(Int32 postTemplateID, Boolean login, Boolean ignoreRelatedTemplate) in C:\projects\frigg\Website\Template\baseclass\base_helper.vb:line 1468 at Vianett.Publishing.Template.base_helper.GetCachedPostTemplateRow(Int32 postTemplateID, Boolean login, Boolean ignoreRelatedTemplate) in C:\projects\frigg\Website\Template\baseclass\base_helper.vb:line 1459 at Vianett.Publishing.Template.ItemTemplateXMLParser.ParseItemXml(Int32 systemID, Int32 ecommerceSystemID, String itemXml, DataRow row, Int32 sourceWebsiteCategoryID, Int32 iteration, HttpContext context, Product product, String dateFormat, String oddEven, Int64 postID, Int32 productID, Int32 articleID, Boolean replaceEmptyValue, Boolean ignoreGetProduct, JToken jToken) in C:\projects\frigg\Website\Template\Convert\ItemTemplateXMLParser.vb:line 506 at Vianett.Publishing.Template.ItemTemplateXMLParser.ParseItemControl(Int32 systemID, Int32 ecommerceSystemID, String dynamicXml, DataRow row, Int32 sourceWebsiteCategoryID, Int32 iteration, HttpContext context, Product product, String dateFormat, String oddEven, Int64 postID, Int32 productID, Int32 articleID, String placeHolderID, Boolean replaceEmptyValue, Boolean skipRazor) in C:\projects\frigg\Website\Template\Convert\ItemTemplateXMLParser.vb:line 316 at Vianett.Publishing.Web.PostTemplateModule.Page_Load(Object sender, EventArgs e) in C:\projects\frigg\Website\Web\usercontrol\mainmodule\ItemModule\PostTemplateModule.ascx.vb:line 94