AnantLabs / codesmith

Automatically exported from code.google.com/p/codesmith
1 stars 0 forks source link

Cannot generate outputs #527

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. I selected my data souce through manage outputs
2. I generate the outputs
3. The build fails

What is the expected output? What do you see instead?
I expect the build to succeed but I get a failure. I tried to simplify by only 
using a single table as a source but it still fails

What version of the product are you using?
5.2.2 rev 11561

Please provide any additional information below.
this is the error I receive
Error   1   C:\Documents and Settings\cstokes\My 
Documents\CodeSmith\Templates\CSLA\Beachbody\Beachbody.Business\Entities.csp(0,0
) Exception has been thrown by the target of an invocation. --> Not enough 
storage is available to complete this operation.   at 
System.Data.SqlServerCe.SqlCeConnection.ProcessResults(Int32 hr)
   at System.Data.SqlServerCe.SqlCeConnection.Open(Boolean silent)
   at System.Data.SqlServerCe.SqlCeConnection.Open()
   at SchemaExplorer.SqlCompactSchemaProvider.GetTableKeys(String connectionString, TableSchema table)
   at SchemaExplorer.TableSchema.get_Keys()
   at SchemaExplorer.TableSchema.get_ForeignKeys()
   at CodeSmith.SchemaHelper.TableSchemaExtensions.IsManyToMany(TableSchema table)
   at CodeSmith.SchemaHelper.EntityManager..ctor(TableSchemaCollection tables)
   at CodeSmith.SchemaHelper.EntityManager..ctor(DatabaseSchema database)
   at CodeSmith.QuickStart.QuickStartCodeTemplate.OnDatabaseChanged()
   at CodeSmith.QuickStart.EntityMasterCodeTemplate.OnDatabaseChanged()
   at CodeSmith.QuickStart.QuickStartCodeTemplate.set_SourceDatabase(DatabaseSchema value) 
 Stack Trace:

    Beachbody.Business

Original issue reported on code.google.com by csjsto...@gmail.com on 14 Nov 2010 at 11:34

GoogleCodeExporter commented 9 years ago
Hello,

It appears that this is a bug with SQL CE and Microsoft has a patch for this 
issue which can be found here (http://support.microsoft.com/kb/827837). Please 
update this issue if this is not resolved after installing this patch.

Thanks
-Blake Niemyjski

Original comment by bniemyjski on 18 Nov 2010 at 1:42

GoogleCodeExporter commented 9 years ago
Also when I use SQL CE the generated code is for SQL Server - not CE so I have 
to go into the generated code and change the references to parameters, 
connections and anything associated with it to CE

Original comment by csjsto...@gmail.com on 18 Nov 2010 at 2:43

GoogleCodeExporter commented 9 years ago
Hello,

We currently only officially target SQL Server. In the next major release this 
will change. Would you mind submitting a new patch with your CE Changes.

Thanks
-Blake Niemyjski

Original comment by bniemyjski on 23 Nov 2010 at 11:06