Friday, 15 May 2015

servicestack - Razor exceptions -



servicestack - Razor exceptions -

i have undoubtedly set wrong exceptions thrown razor templates though there no problem templates. these fixed doing build.

if have error in template popup asking me debug in vs, of course of study not allow me debug template.

errors in log not helpful (see below).

is possible both avoid spurious errors , improve info when there problem?

servicestack.razor.templating.templatecompilationexception: unable compile template. check errors list details. @ servicestack.razor.templating.templateservice.createtemplate(string template, type modeltype) @ servicestack.razor.templating.templateservice.compile(viewpageref viewpageref, string template, type modeltype, string name) @ servicestack.razor.templating.templateservice.compile(viewpageref viewpageref, string template, string name) @ servicestack.razor.viewpageref.compile(boolean force)

i having similar problems. found "easiest" way find out error was, download of service stack, build debug version of razor libary , link project. set break point in servicestack.razor.templating.templateservice.createtemplate method , able see total exception details. there learnt had included import in razor page not referenced in project.

since solved it's been reliable.

razor servicestack

No comments:

Post a Comment