locked
using System.Data.Linq; cannot be found or loaded Error CS0234 RRS feed

  • Question

  • User2142845853 posted

    in VS2013 ultimate, using this example, https://msdn.microsoft.com/en-us/library/vstudio/cc488469(v=vs.100).aspx

    I go thru all of this and compile and it says no LINQ.  no linq here or there or anywhere.  Add reference?  already there.  no linq.

    tried all the solutions found.  looked up Compiler Error Message: CS0234: The type or namespace name 'Linq' does not exist in the namespace 'System.Data' (are you missing an assembly reference?)

    has LINQ been discontinued?  what is the replacement?  am connecting tables in a sql database to be used in an asp.net mvc app

    Wednesday, May 13, 2015 2:57 PM

Answers

  • User61956409 posted

    Hi rogersbr,

    Thanks for your post.

    Compiler Error Message: CS0234

    Firstly, this link will show some causes for this error, please refer to it.

    Secondly, please check if you add System.Data.Linq assembly reference under <assemblies> section in Web.config file.

    <add assembly="System.Data.Linq, Version=3.5.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/> 

    Best Regards,

    Fei Han

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Thursday, May 14, 2015 3:33 AM