Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8018783
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T21:12:37+00:00 2026-06-04T21:12:37+00:00

When I set my CSharpCodeProvider class to use .NET 3.5 it errors trying to

  • 0

When I set my CSharpCodeProvider class to use .NET 3.5 it errors trying to load certain referenced DLLs:

Line number 0, Error Number: CS0006, 'Metadata file 'System.Linq.dll' could not be found;
Line number 0, Error Number: CS0006, 'Metadata file 'System.Collections.dll' could not be found;

The thing is, if I set it to 2.0 it works, but it can’t use LINQ.

Now in other threads there are solutions saying that it’s because the DLL isn’t in the right place, and offer solutions such as:

typeof(System.Xml.Linq.Extensions).Assembly.Location

To get the location of the Linq location, but due to the way my program works I don’t know what DLLs I may need to load. This isn’t a problem for external libraries, as the user needs to input where they are anyway, but for System dlls am I able to get their location with just "System.Linq" or "System.Collections"?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-04T21:12:38+00:00Added an answer on June 4, 2026 at 9:12 pm

    I’m not aware of System.Collections.dll or System.Linq.dll. Most of LINQ is in System.Core.dll, and the collections are in mscorlib and System.dll IIRC. You need to differentiate between namespaces and assemblies. (You use using directives to import namespaces, and add references to assemblies within the project.)

    Which classes are you interested in? Look them up in MSDN to see which assemblies they’re in.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm using the CSharpCodeProvider class to compile a C# script which I use as
I'm trying to compile a .cs file using a CSharpCodeProvider from a .net 3.5
Set OutApp = CreateObject(Outlook.Application) MsgBox (OutApp Is Nothing) On Error GoTo errorHandler Set OutMail
Set content of table ... ViewState[Table1] = Table1; // When remove this line, table
I set up custom error pages in nginx with fastCGI for PHP like this
set phoneNumber 1234567890 this number single digit, i want divide this number into 123
//Set the number of spaces in front of text numSpaces = 20; // spaces
SET NOCOUNT ON stops the message that shows the count of the number of
SET @Password = ( SELECT UserPassword,IsLocked FROM [Authentication].[tblLogin] WHERE UserName=@UserName) i m trying to
Set oXMLHttp=Server.CreateObject(MSXML2.XMLHTTP) On Error Resume Next oXMLHttp.open GET, http://xxxxxx.com,False oXMLHttp.setRequestHeader Content-Type, application/x-www-form-urlencoded oXMLHttp.send() x

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.