Client-only framework subset does not find System.Data.Linq

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Andrus

    Client-only framework subset does not find System.Data.Linq

    Checking

    Client-only framework subset in VS2008 SP1 project properties causes in my
    application compile error

    The type 'System.Data.Li nq.ITable' is defined in an assembly that is not
    referenced. You must add a reference to assembly 'System.Data.Li nq,
    Version=3.5.0.0 , Culture=neutral , PublicKeyToken= b77a5c561934e08 9'.

    In solution explorer References Yellow exclamation sign appeas in
    System.Data.Lin q assembly and resolved in False.

    Compile error occurs in main project at line

    Table<TEntityRo wTable;

    Table<is class defined in other project which is included in solution:

    public class Table<T:
    IQueryable<T>
    , IOrderedQueryab le<T>
    , System.Data.Lin q.ITable
    ,
    ....

    }

    How to fix ?

    Andrus.

  • Jon Skeet [C# MVP]

    #2
    Re: Client-only framework subset does not find System.Data.Lin q

    Andrus <kobruleht2@hot .eewrote:
    Checking
    >
    Client-only framework subset in VS2008 SP1 project properties causes in my
    application compile error
    <snip>
    How to fix ?
    Don't use the client-only framework subset?

    --
    Jon Skeet - <skeet@pobox.co m>
    Web site: http://www.pobox.com/~skeet
    Blog: http://www.msmvps.com/jon.skeet
    C# in Depth: http://csharpindepth.com

    Comment

    • Andrus

      #3
      Re: Client-only framework subset does not find System.Data.Lin q

      Don't use the client-only framework subset?

      In this case application users must install whole 3.5 framework.

      Why System.Data.Lin q.dll is not in this subset ?

      Andrus.

      Comment

      • Jon Skeet [C# MVP]

        #4
        Re: Client-only framework subset does not find System.Data.Lin q

        Andrus <kobruleht2@hot .eewrote:
        Don't use the client-only framework subset?
        >
        In this case application users must install whole 3.5 framework.
        >
        Why System.Data.Lin q.dll is not in this subset ?
        Presumably because most code talking to a database is on the server
        side. You've got to draw the line *somewhere* otherwise *everyone* has
        to download the whole framework.

        --
        Jon Skeet - <skeet@pobox.co m>
        Web site: http://www.pobox.com/~skeet
        Blog: http://www.msmvps.com/jon.skeet
        C# in Depth: http://csharpindepth.com

        Comment

        • Jon Skeet [C# MVP]

          #5
          Re: Client-only framework subset does not find System.Data.Lin q

          Jon Skeet [C# MVP] <skeet@pobox.co mwrote:
          Andrus <kobruleht2@hot .eewrote:
          Don't use the client-only framework subset?
          In this case application users must install whole 3.5 framework.

          Why System.Data.Lin q.dll is not in this subset ?
          >
          Presumably because most code talking to a database is on the server
          side. You've got to draw the line *somewhere* otherwise *everyone* has
          to download the whole framework.
          In addition, see this blog post for what's in the client profile:


          profile-justin-van-patten.aspx

          --
          Jon Skeet - <skeet@pobox.co m>
          Web site: http://www.pobox.com/~skeet
          Blog: http://www.msmvps.com/jon.skeet
          C# in Depth: http://csharpindepth.com

          Comment

          Working...