SchemaImporter not regenerating properly. What settings am I missing?

Posts   
 
    
BexMed
User
Posts: 63
Joined: 18-Jul-2007
# Posted on: 08-Jul-2008 12:40:34   

Hello

I am working on a project that uses windows forms that consume webservice. LLBL (adapter) has been set up so that it produces the SchemaImporterProject and it was all working fine.

Recently we have upgraded to VS 2008 (.net 3) and the new LLBL version and our LLBL settings seem to have gone abit wrong. All existing stuff works, but I have added some new tables to the DB and when I regenerate they are not getting added to the schema importer, so when I try and call back one of the new entities from the webservice it is coming back as an xmlElement.

I am not sure what I am missing..

A collegue of mine created a new preset to point it at .net 3.5 as the target platform.

and when I clicked to regenerate, on the TaskQueueToExcecute Tab I had4 rows,

Webservice.WebserviceHelperClassGenerator Webservices.SchemaImporter.DirectoryCreator Webservices.SchemaIMporter.SchemaImporterClassGenerator Webservices.SchemaImporter.ProjectCreator

They were all disabled, so I reenabled them and saved and regenerated, but the schemaImporter File still doesn't contain the new entites.

I have tried restarting VS incase something was locked as sugested in a previous post, but I am having no luck.

I have read your documentation and can't seem to work out what else I need to do to make it work.

What am I missing?

Thanks

Bex

Walaa avatar
Walaa
Support Team
Posts: 14950
Joined: 21-Aug-2005
# Posted on: 08-Jul-2008 16:48:40   

What's the Designer version and the release date? Would you please delete the the schemaImporter File and try to regenerate again?

BexMed
User
Posts: 63
Joined: 18-Jul-2007
# Posted on: 08-Jul-2008 16:55:13   

Hello Walaa

Its version 2.6 and june 6th 2008 I deleted the .cs file in the schema importer folder, and regened, and it did not reappear.

Thanks

Bex

Otis avatar
Otis
LLBLGen Pro Team
Posts: 39614
Joined: 17-Aug-2003
# Posted on: 08-Jul-2008 20:13:31   

It's likely that you have to use a different schemaimporter version in the schema importer assembly, remove the old one, also from the machine.config, then follow the procedure again.

Also, if you re-generate, all entities are used, so make sure the files are overwritten properly when re-generating.

Could you please update the version in the config file of the schemaimporter project, recompile (after regenerating and checking the report afterwards! if all files are overwritten), remove the old one (also from teh machine.config) and then follow the procedure again?

Frans Bouma | Lead developer LLBLGen Pro
BexMed
User
Posts: 63
Joined: 18-Jul-2007
# Posted on: 15-Jul-2008 16:42:12   

Hello

Sorry for the delay in my replying but I see what the problem is a bit more now.

When I F7 to regenerate the code, the 'task queue to execute' changes and the three 'SD.Tasks.Asapter.Webservices.SchemaImporter' tasks are automatically disabled. If I go back and re-generate the code - and enabling these tasks - they are disabled after the re-generation has finished.

Consequently the SchemaImporter project is never getting rebuilt.

Do you have any other suggestions as to what may be causing this? Thanks

Bex

Walaa avatar
Walaa
Support Team
Posts: 14950
Joined: 21-Aug-2005
# Posted on: 16-Jul-2008 10:55:34   

Please make sure the project file is not locked (read-only).