Hi.. I just purchased a licence of CodeSmith this morning and I am having a little trouble using the DbDocumentor Template.
I used it a couple of months ago with the trial version (3.1) no problems.. but now.. either I am working of an older version of the template.. Or I am doing something wrong.
First, when I would try to load the Master.CST. I would get numerous errors. I removed the comments line at the beginning of all files used by the template... reloaded.. it went ok.
Now I filled in the properties.. Database , Server Name.. clicked generate.. 10-20 seconds later I get this..
System.NullReferenceException: Object reference not set to an instance of an object.
at _CodeSmith.sprocs_cst.GenerateProcTextHTML(DatabaseSchema database)
at _CodeSmith.sprocs_cst.Go()
at _CodeSmith.sprocs_cst.__RenderMethod1(TextWriter writer, Control control)
at CodeSmith.Engine.DelegateControl.Render(TextWriter writer)
at CodeSmith.Engine.Control.RenderChildren(TextWriter writer)
at CodeSmith.Engine.CodeTemplate.Render(TextWriter writer)
at CodeSmith.Engine.CodeTemplate.RenderToFile(String path, Boolean overwrite)
at _CodeSmith.master_cst.Go()
at _CodeSmith.master_cst.__RenderMethod1(TextWriter writer, Control control)
at CodeSmith.Engine.DelegateControl.Render(TextWriter writer)
at CodeSmith.Engine.Control.RenderChildren(TextWriter writer)
at CodeSmith.Engine.CodeTemplate.Render(TextWriter writer)
at CodeSmith.Engine.CodeTemplate.RenderToString()
at CodeSmith.Gui.CodeTemplateGenerator.b(Object , EventArgs )
I am sure I am missing the obvious... Anyone can help ?
Thanks in advance...
Fred