Click here to Skip to main content
15,906,463 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Compilation Error
Description: An error occurred during the compilation of a resource required to service this request. Please review the following specific error details and modify your source code appropriately.

Compiler Error Message: CS0234: The type or namespace name 'Linq' does not exist in the namespace 'System' (are you missing an assembly reference?)

Source Error:


Line 1: using System;
Line 2: using System.Collections.Generic;
Line 3: using System.Linq;
Line 4: using System.Web;
Line 5: using System.Web.UI;
Posted
Comments
Mohan Gopi 5-Sep-13 1:08am    
Hi Krishna, Refer this links;

http://forums.asp.net/t/1264863.aspx

http://stackoverflow.com/questions/6496223/compilation-error-in-net-4-0-web-config-linq-not-found

http://www.hanselman.com/blog/HowToSetAnIISApplicationOrAppPoolToUseASPNET35RatherThan20.aspx

http://albao.wordpress.com/2010/10/26/the-type-or-namespace-name-linq-does-not-exist-in-the-namespace-system-data/

http://community.discountasp.net/threads/compilation-error-when-using-linq.9889/

Most likely, you have a reference to the assembly System, but you also need to reference the assembly System.Core, where System.Link.* types are defined. This is the part of .NET FCL and can be found in the GAC. So, you can do it using the tab .NET of the window "Add Reference".

Please see: http://msdn.microsoft.com/en-us/library/system.linq.aspx[^].

—SA
 
Share this answer
 
v2
Comments
krishna97 5-Sep-13 1:07am    
Error Not Solve Same Error Given ..Plz Help Me,,,...??
Sergey Alexandrovich Kryukov 5-Sep-13 1:37am    
I already did. Check it up again. If in doubt, look at the node "References" of your project. Does it contain System.Core?
—SA
XML
I hope this code help you fixed the problem, just in case you did not add this line into web config where other assembly's are

<add assembly="System.Data.Linq, Version=3.5.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/>
 
Share this answer
 
Comments
krishna97 7-Sep-13 10:24am    
but sir/Madam this error will come from upload the project in server then this error given,,,,??
hi,,

check this link

http://forums.asp.net/t/1264863.aspx[^]




Happy coding :)
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900