Template editor issue?

Posts   
 
    
AZWolf7
User
Posts: 5
Joined: 18-Jul-2005
# Posted on: 18-Jul-2005 05:00:49   

Any template I try to execute gives me the following error. I have compared the .config file I am trying to run with other existing config files, and the appear identical (and actually all templates seem to have the same issue). However, In LLBLGen Pro, the templates run fine except new ones generated in the TemplateStudio editor. Any suggestions?

TIA!

Here's the message portion....

Load of file 'C:\d44bot\D44Bot E Drive!Projects\LLBLGen Templates\Manager Templates\Drivers\SqlServer\Templates\Gallery.Core.TemplateSet.config' failed due to an XML load/parse error. There is an error in the XML document. <templateSetDefinition xmlns=''> was not expected.

(note, the actual xml is <templateSetDefinition>)

Here's the stack trace portion....

-----[Core exception]-------------------- at SD.LLBLGen.Pro.GeneratorCore.GeneratorConfig.LoadGeneratorConfigFile(String generatorConfigFilename) at SD.LLBLGen.Pro.GeneratorCore.Generator.LoadAllGeneratorConfigFiles(String path) at SD.LLBLGen.Pro.Tools.TemplateEditor.MainForm.LoadLLBLGenProProject(String filenameToLoad) at SD.LLBLGen.Pro.Tools.TemplateEditor.MainForm.LoadLLBLGenProProject() at SD.LLBLGen.Pro.Tools.TemplateEditor.MainForm._commandBarManager_CommandClick(Object sender, CommandEventArgs e) at Janus.Windows.UI.CommandBars.UICommandManager.OnCommandClick(CommandEventArgs e) at Janus.Windows.UI.CommandBars.UICommandManager.Janus.Windows.UI.CommandBars. ICommandOwner.OnCommandClicked(CommandEventArgs e) at Janus.Windows.UI.CommandBars.UICommandCollection.c(Object , CommandEventArgs ) at Janus.Windows.UI.CommandBars.UICommand.OnClick(CommandEventArgs e) at Janus.Windows.UI.CommandBars.UICommand.ac() at Janus.Windows.UI.CommandBars.UICommandBar.OnMouseUp(MouseEventArgs e) at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks) at System.Windows.Forms.Control.WndProc(Message& m) at System.Windows.Forms.ControlNativeWindow.OnMessage(Message& m) at System.Windows.Forms.ControlNativeWindow.WndProc(Message& m) at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam) -----[InnerException]-------------------- at System.Xml.Serialization.XmlSerializer.Deserialize(XmlReader xmlReader, String encodingStyle, XmlDeserializationEvents events) at System.Xml.Serialization.XmlSerializer.Deserialize(XmlReader xmlReader, XmlDeserializationEvents events) at System.Xml.Serialization.XmlSerializer.Deserialize(XmlReader xmlReader) at SD.LLBLGen.Pro.GeneratorCore.GeneratorConfig.LoadGeneratorConfigFile(String generatorConfigFilename) -----[InnerException]-------------------- at Microsoft.Xml.Serialization.GeneratedAssembly.XmlSerializationReader1.Read4_generatorConfiguration()

Otis avatar
Otis
LLBLGen Pro Team
Posts: 39786
Joined: 17-Aug-2003
# Posted on: 18-Jul-2005 09:07:35   

You placed a templateset .config file in the generator config file folder (taskPerformers). Both have the .config extension, though aren't the same of course. Please move the templateset config file to the driver's templates folder instead.

Frans Bouma | Lead developer LLBLGen Pro
AZWolf7
User
Posts: 5
Joined: 18-Jul-2005
# Posted on: 18-Jul-2005 17:10:43   

Thanks for the quick response. I thought I tried that, but maybe not so I will give it a shot. One last item then: does the templateset config have to reside in the same directory as the templates? I wouldn't think so, since the templateset config seems to have that information, but I want to verify that if I can.

Thanks again!

Otis avatar
Otis
LLBLGen Pro Team
Posts: 39786
Joined: 17-Aug-2003
# Posted on: 18-Jul-2005 18:28:59   

No, the templateset config has to reside either in the AdditionalTemplateSets folder or in the 'Templates' folder of the particular driver folder the templateset is for

Frans Bouma | Lead developer LLBLGen Pro