After the newest update I get an error in one of our solutions:
System.NullReferenceException: Object reference not set to an instance of an object. at Dynamicweb.Template.Template(String& strTemplatePath) at Dynamicweb.Template..ctor(String strTemplatePath) at FonqiHelp.FonqiControls.RentaMenu()
The code that produces the error is this:
public static string CreateMenu()
{
try
{
Template t = new Template("RentAMenu.html");
return t.Output;
}
catch (Exception ex)
{
return "Menu not generated " + ex.ToString();
}
}
the Html file is a plain html file with no scripts or nothing spectacular about it.
Is something changed in the way the Dynamic Template class loads a template by Filename?
or what could the error be?
*The solution started failing after the latest DW update.
kind regards Sune Fengel