The EntitySpaces Community

Share and learn about the EntitySpaces Architecture.
Welcome to The EntitySpaces Community Sign in | Join | Help
in
Home Forums Photos

lots of build error

Last post 11-02-2008, 4:07 PM by David.Parsons. 7 replies.
Sort Posts: Previous Next
  •  08-05-2008, 10:24 PM 10582

    lots of build error

    Hi,

    I have installed es2008 and ran it with code smith against one table and i am getting lots of error. please help.

    when i tried to run against my whole database i get more than 100 errors.

    here is the list of error i am getting just by running against one table called SystemParameter 

    Warning 1 Namespace or type specified in the Imports 'System.Data.Linq' doesn't contain any public member or cannot be found. Make sure the namespace or the type is defined and contains at least one public member. Make sure the imported element name doesn't use any aliases. C:\Entity2008test\\\Generated\SystemParameter.vb 16 9 

    Warning 2 Namespace or type specified in the Imports 'System.Data.Linq.Mapping' doesn't contain any public member or cannot be found. Make sure the namespace or the type is defined and contains at least one public member. Make sure the imported element name doesn't use any aliases. C:\Entity2008test\\\Generated\SystemParameter.vb 17 9 

    Error 3 'Table' cannot be used as an attribute because it does not inherit from 'System.Attribute'. C:\Entity2008test\\\Generated\SystemParameter.vb 660 3 
     

    Error 4 Field or property 'Name' is not found. C:\Entity2008test\\\Generated\SystemParameter.vb 660 9 

    Error 5 Type 'Column' is not defined. C:\Entity2008test\\\Generated\SystemParameter.vb 691 4 

    Error 6 Type 'Column' is not defined. C:\Entity2008test\\\Generated\SystemParameter.vb 700 4 

    Error 7 Type 'Column' is not defined. C:\Entity2008test\\\Generated\SystemParameter.vb 709 4 

    Error 8 Type 'Column' is not defined. C:\Entity2008test\\\Generated\SystemParameter.vb 718 4 

     

     

     

     

     

    Filed under: ,
  •  08-05-2008, 11:28 PM 10583 in reply to 10582

    Re: lots of build error

    Assuming you have .NET 3.5, did you add a System.Data.Linq Reference to your project?
    David Neal Parsons
    www.entityspaces.net
  •  08-05-2008, 11:59 PM 10584 in reply to 10582

    Re: lots of build error

    Im am using .net 2.0 and visual studion 2005  , do i need visual studio 2008 and .net 3.5 to run your classes.

     

  •  08-06-2008, 12:32 AM 10585 in reply to 10584

    Re: lots of build error

    Hi

    Looks like you've selected one of the options on the Advanced section/tab to generate WCF info in your classes (I think) - these include Linq support so you'd need to add the appropriate references and target the right framework - if you're not using 3.x then don't select those options and you'll be fine

    Hope that helps

    Martin

  •  08-06-2008, 12:37 AM 10587 in reply to 10585

    Re: lots of build error

    You only need .NET 2.0, but you must set the LINQtoSQL option to false (requires .NET 3.5), and the WCF Support option to false (requires .NET 3.0).
    David Neal Parsons
    www.entityspaces.net
  •  08-06-2008, 5:36 PM 10606 in reply to 10587

    Re: lots of build error

    It worked!
  •  11-02-2008, 1:09 PM 12113 in reply to 10606

    Re: lots of build error

    I'm having the same issue and I double checked and then regenerated the .vb Generated and Custom files. Is there something else I need to check?

    Even if I change the web property from 2.0 to 3.5 I get the error.

     Error 1 Reference required to assembly 'System.Data.Linq, Version=3.5.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' containing the type 'System.Data.Linq.DataContext'. Add one to your project. C:\WebSite1\App_Code\Generated\AuditActionType.vb 148 11 C:\...\WebSite1\

    Code:
    Private Function LoadByPrimaryKeyStoredProcedure(ByVal auditActionTypeID As System.Int32) As Boolean

    Dim
    parms As esParameters = New esParameters()
    parms.Add("AuditActionTypeID", auditActionTypeID)

    Return Me.Load(esQueryType.StoredProcedure, Me.es.spLoadByPrimaryKey, parms)

    End Function

     


     

  •  11-02-2008, 4:07 PM 12114 in reply to 12113

    Re: lots of build error

    Make sure you are referencing the .NET 2.0 versions of the EntitySpaces runtimes, not those found under the .NET 3.5 folder.
    David Neal Parsons
    www.entityspaces.net
View as RSS news feed in XML