first line in aspx file underlined with green line and message

Last post 10-13-2008 12:11 PM by Mikhail Arkhipov (MSFT). 4 replies.

Sort Posts:

  • first line in aspx file underlined with green line and message

    10-13-2008, 5:04 AM
    • Member
      144 point Member
    • tartuffe2
    • Member since 06-28-2006, 10:15 AM
    • Posts 433

    Hi,

    .Net Framework installed on my computer is 3.5, but i made a project still built in 2.0.

    Now, in all aspx pages of that project, the first line is underlined in VWD with a green line and this message:

    <%@ Page Language="VB" ValidateRequest="false" Debug="true" AutoEventWireup="false" CodeFile="wijzig2.aspx.vb" Inherits="wijzig2" %>

    "Namespace or type specified in the Imports "System.Linq" doesn't contain any public member or can't be found"

    All the pages in the project contain different inherits="...".

    The pages run normally, but why this warning?

    Thanks

  • Re: first line in aspx file underlined with green line and message

    10-13-2008, 6:52 AM
    • All-Star
      36,244 point All-Star
    • rtpHarry
    • Member since 10-01-2006, 12:51 PM
    • Lincoln, England
    • Posts 5,830

     You must have a reference to system.linq somewhere which only exists in 3.0 and above.

    It could be in your web.config, or in the top of your .aspx file or in the top of your aspx.vb file or in your masterpage file.

  • Re: first line in aspx file underlined with green line and message

    10-13-2008, 6:59 AM
    Answer
    • All-Star
      60,489 point All-Star
    • anas
    • Member since 09-21-2006, 4:31 AM
    • Palestinian Territory, Occupied
    • Posts 6,837
    • Moderator

     Yes , Use vwd search utility to find the location the used "System.Linq" namespace ,

    So inside VWD , hit ( CTRL + F ) and select to search in the whole website .

     

    Regards,

    Anas Ghanem | Blog

  • Re: first line in aspx file underlined with green line and message

    10-13-2008, 8:49 AM
    • Member
      144 point Member
    • tartuffe2
    • Member since 06-28-2006, 10:15 AM
    • Posts 433

    Thanks both

  • Re: first line in aspx file underlined with green line and message

    10-13-2008, 12:11 PM

    Linq only works with 3.5 projects. You can add a reference to it without upgrading the project, but your code will effectively become dependent on .NET 3.5

    Thanks

    ------------------------------------------------------------

    This posting is provided "AS IS" with no warranties, and confers no rights.
Page 1 of 1 (5 items)
Microsoft Communities