Problem with build code

Posts   
 
    
nasavin
User
Posts: 2
Joined: 16-Sep-2007
# Posted on: 16-Sep-2007 13:08:55   

Hi, i have a following problem.

I have download and install LLBLgen 2.5 Final Demo, released on August 28th 2007. I've created project and using MsAcces DB and i generated code (self servicing, C#, .NET 2.0). I tryed to build this code in Visual Studio by i got a following error:

Error 1 The type or namespace name 'EntityType' does not exist in the namespace 'test3' (are you missing an assembly reference?) C:\Documents and Settings\Administrator\My Documents\LLBLGen Pro Projects\t3\FactoryClasses\EntityFactories.cs 30 17 test3

I didn't change anything in project and i have added references to SD.LLBLGen.Pro.DQE.SqlServer.NET20.dll and SD.LLBLGen.Pro.ORMSupportClasses.NET20.dll properly.

I tryed the same steps on two computers and i got the same error.

Some sugestions?

Nasavin (Please excuse my poor engish simple_smile

JimHugh
User
Posts: 191
Joined: 16-Nov-2005
# Posted on: 16-Sep-2007 16:46:56   

For an Access mdb file you need to reference the SD.LLBLGen.Pro.DQE.Access.NET20.dll and not SD.LLBLGen.Pro.DQE.SqlServer.NET20.dll

nasavin
User
Posts: 2
Joined: 16-Sep-2007
# Posted on: 18-Sep-2007 09:42:44   

JimHugh wrote:

For an Access mdb file you need to reference the SD.LLBLGen.Pro.DQE.Access.NET20.dll and not SD.LLBLGen.Pro.DQE.SqlServer.NET20.dll

thanx, yes of course, i used SD.LLBLGen.Pro.DQE.Access.NET20.dll, but i did error when I wrote this question, because i tried to use SqlServer also, but it didn't work too.

I've instaled llblgen 2.0 back and it works fine simple_smile

I will finish current project on this older version.

Pablo
User
Posts: 81
Joined: 21-Mar-2005
# Posted on: 21-Sep-2007 13:52:45   

Hello,

'EntityType' is defined in the generated file 'ConstantsEnums.cs'

If you look in this file which namespase it has, then you probably see its a namespace that you're probably not 'using'.

If you add this namespace using a 'using <namespace>' its probably all ok again.

Hope this was your problem ...

Paul

jturpin
User
Posts: 20
Joined: 30-May-2007
# Posted on: 26-Sep-2007 20:28:17   

Please note that this is a template issue, it was discussed here: http://www.llblgen.com/TinyForum/Messages.aspx?ThreadID=11226&HighLight=1

Walaa avatar
Walaa
Support Team
Posts: 14643
Joined: 21-Aug-2005
# Posted on: 27-Sep-2007 11:50:25   

jturpin wrote:

Please note that this is a template issue, it was discussed here: http://www.llblgen.com/TinyForum/Messages.aspx?ThreadID=11226&HighLight=1

Thanks jturpin. nasavin, would you please try again using the latest available build/version? Thanks.