Binding data with Object Data Source using LINQRSS

3 replies

Last post Jun 15, 2020 09:53 AM by Yuk Ding

  • Binding data with Object Data Source using LINQ

    Jun 12, 2020 10:16 AM|naresh9|LINK

    Hi,

    While I was binding data with Object Data Source (ODS) using LINQ. I encountered an error while including "using System.Data.Linq" in Database1.designer.cs where my database name is Database1 that "Using directive is unnecessary. The type or namespace name 'Linq' does not exist in the namespace System. Data (are you missing an assembly reference". I have also included the reference to System. Core, as it was written in Microsoft documentation But, was unable to resolve. Not to mention, I have installed LINQ from individual components "LINQ to SQL tools". Please help me out in rectifying this error, I am stuck here for days.

    Thanks in advance

  • Re: Binding data with Object Data Source using LINQ

    Jun 12, 2020 03:31 PM|lextm|LINK

    ASP.NET developers are in another forum, https://forums.asp.net/

    Lex Li
    Affordable IIS Consulting Services at https://support.lextudio.com/services/consulting.html
    ---------------------------
    This posting is provided "AS IS" with no warranties, and confers no rights.
  • Re: Binding data with Object Data Source using LINQ

    Jun 12, 2020 09:17 PM|naresh9|LINK

    ok thanks

  • Re: Binding data with Object Data Source using LINQ

    Jun 15, 2020 09:53 AM|Yuk Ding|LINK

    Hi naresh9,

    Have you tried to include this in your web.config?

    <compilationdebug="true"targetFramework="4.0"/>

    Best Regards,

    Jokies Ding

    Yuk Ding

    MSDN Community Support
    Please remember to "Mark as Answer" the responses that resolved your issue.