ASP.NET DbEditor templates

Posts   
 
    
peerke
User
Posts: 23
Joined: 19-Aug-2008
# Posted on: 27-Oct-2010 15:12:55   

Hi there,

I recently switched from 2.6 to 3.0 and love the new Designer! However, I'm running into a problem when using the DbEditor ASPNET templates (DbEditorASPNET_3.x_09012010). When I try to generate the UI code using the WebDbEditor preset I get a lot of errors in the generation log viewer:

Task group: SD.Tasks.SelfServicing.WebDbEditor.FileCreators. For database: Oracle (ODP.NET) (A8034CB0-319D-4cdd-BC7D-1E7CFDBA3B74). Task: SD.Tasks.SelfServicing.WebDbEditor.AddNewAspx Could not find template 'SD_AddNewAspx'. It is not defined in the used templatebindings or is empty. It can be it's not defined for the current database (e.g. stored procedure templates for SqlServer CE) Task: SD.Tasks.SelfServicing.WebDbEditor.AddNewCode Could not find template 'SD_AddNewCode'. It is not defined in the used templatebindings or is empty. It can be it's not defined for the current database (e.g. stored procedure templates for SqlServer CE)

etc. etc.

It's probably something I'm missing here, but I don't see it yet. I selected template group 'Selfservicing' and target platform .NET 2.0

Does anybody know how I can solve this? Thanks!

Diederik

Walaa avatar
Walaa
Support Team
Posts: 14986
Joined: 21-Aug-2005
# Posted on: 27-Oct-2010 17:19:50   

Reproduced.

We are looking into it.

Otis avatar
Otis
LLBLGen Pro Team
Posts: 39760
Joined: 17-Aug-2003
# Posted on: 28-Oct-2010 13:49:02   

I can't reproduce it actually: load an oracle project using ODP.NET, select selfservicing + .NET 2.0, choose the web project, everything generates fine. We'll see what we can come up with as some of us can reproduce it, others can't...

I've tested it by unpacking the archive in a random folder and specifying the Tasks and Templates folder as additional tasks and additional templates folder in the preferences, then restarted the designer. Will now try when I simply unpack the file in the designer folder.

Be aware that when you installed in c:\program files... and you're using vista / windows 7, you have to install the templates there as administrator!

(edit) also with storing the templates in the install folder: same thing, works like a charm. Sorry, but I can't find a way to reproduce it locally or think of a way why it didn't work, other than that the templates aren't in the right folder.

if you open the templatebindings file in the templatebindings viewer, does it enlist the template files as red (i.e. missing) ?

Frans Bouma | Lead developer LLBLGen Pro
peerke
User
Posts: 23
Joined: 19-Aug-2008
# Posted on: 02-Nov-2010 08:45:05   

The TemplateBindings viewer shows the files in black, i.e. they are present in the correct location:

C:\Program Files\Solutions Design\LLBLGen Pro v3.0\Frameworks\LLBLGen Pro\Templates\SD.AdditionalTemplates.DbEditor.NET20.templatebindings

and

C:\Program Files\Solutions Design\LLBLGen Pro v3.0\Frameworks\LLBLGen Pro\Tasks\SD.Presets.SelfServicing.WebDbEditor.preset and C:\Program Files\Solutions Design\LLBLGen Pro v3.0\Frameworks\LLBLGen Pro\Tasks\SD.Tasks.SelfServicing.WebDbEditor.tasks

I haven't got a clue what I have changed, but it now works! Must be your influence, Frans ;-)

Thanks.

Walaa avatar
Walaa
Support Team
Posts: 14986
Joined: 21-Aug-2005
# Posted on: 02-Nov-2010 09:00:24   

I think the trick is that you need to restart the designer after setting the Additional Tasks and Templates folders in the Project Properties.

Anyway, glad it's working with you. Now it is working with me too.