namespace error

Last post 07-04-2009 5:58 PM by Abdulla.AbdelHaq. 3 replies.

Sort Posts:

  • namespace error

    06-28-2009, 9:45 AM
    • Member
      399 point Member
    • modig
    • Member since 12-26-2002, 3:36 PM
    • Posts 270

     Hi

     

    I have created a website on one computer and then I moved it to my other computer, But then I get a lot of errors when I use this code...

    Dim o As New List(Of BookHandler)
                Dim db As New DataClassesDataContext
                Dim MyList = From p In db.p_GetAllBooks(StartDate, EndDate)

                For Each _p In MyList

                Next

     

    I get the following warnings and errors..


    Warning 8 Variable declaration without an 'As' clause; type of Object assumed (this is on the Dim o As New List...)

     

    Name '_p' is not declared

     

    Why do I get all these error on the other computer when I just copied it?

     

     

     

  • Re: namespace error

    06-28-2009, 12:52 PM
    • Participant
      1,179 point Participant
    • Ibro
    • Member since 10-08-2008, 2:17 PM
    • Posts 379

     Could it be the versions of application you are using on your two PCs?

     

    does this reply help you? mark as an answer
    Ibro
  • Re: namespace error

    06-28-2009, 1:27 PM
    • Member
      399 point Member
    • modig
    • Member since 12-26-2002, 3:36 PM
    • Posts 270

    Are you reffering to visual studio? Then no, I use vs 2008 sp1 on both machines

  • Re: namespace error

    07-04-2009, 5:58 PM

    modig:

    Are you reffering to visual studio? Then no, I use vs 2008 sp1 on both machines

    Maybe there are some differences between the settings of the Visual Studio in both  PCs.. you can configure these warnings .. read the below links

    http://msdn.microsoft.com/en-us/library/c101fc44(VS.80).aspx

    http://msdn.microsoft.com/en-us/library/3y20cc1z(VS.80).aspx


    Plz remember to click "Mark as Answer" if this helped you.

    Abdulla AbdelHaq    MCTS, MCPD

    - My Articles on ASP Alliance
    - My Weblogs
    - My Sessions on JorDev User Group

    "Experience is simply the name we give our mistakes"
Page 1 of 1 (4 items)