Can't load template ''

Dec 20, 2010 at 6:10 AM

Can't load template ''---> StringTemplate stNeed = stgCollection.GetInstanceOf(Template);


i use it in a webapplication and copy templates folder to /bin then have that error


pls help me

Dec 20, 2010 at 8:17 AM

the rellevant code is in here:

 string where = @"templates\Collection";
if (!string.IsNullOrEmpty(PathFiles))
where = Path.Combine(PathFiles, where);

if you put into bin , please create into bin the folder templates, then the folder collection and then put this instruction before all lines
CollectionRenderProperties.PathFiles = Server.MapPath("~/bin");

Dec 20, 2010 at 2:37 PM

everything is ok,thank you very much!