The type or namespace name 'Linq' does not exist in the namespace 'System.Data' (are you missing an assembly

iqworks Information Quality Works 296 Reputation points
2023-12-29T17:20:18.4066667+00:00

Hi, I am trying to convert a .NET website called iqworks.com to a .NET web application called iqworksWebApp.
I created  iqworksWebApp as a web application and copied the folders from a folder called iqworks.com (that’s to folder name). it builds ok, but when I try to run it I get this error message :

forum post reference does exist error

 

I added system.data.linq to my references, but I still get the message?

 forum post reference does exist

Thanks for any suggestions or advice

ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,498 questions
C#
C#
An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
10,989 questions
{count} votes

1 answer

Sort by: Most helpful
  1. QiYou-MSFT 4,321 Reputation points Microsoft Vendor
    2024-01-01T03:29:13.4033333+00:00

    Hi @iqworks Information Quality Works

    First of all I think you can delete this reference and add it again, since you are a copied project, you can't rule out the problem that the file reference is corrupted or the location is different.

    Linq

    Secondly, it is important that your original project is in the same version as your current project.

    Finally, you can try to add this reference to the web.config file, but usually this is a problem to resolve multiple version conflicts.

    Picture3

    Best regards,
    Qi You


    If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.