Linq Error

Discussion in 'General troubleshooting' started by zs11, Jan 22, 2011.

  1. I'm trying to use Linq to SQL in my code and I got the following 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: <%@ Import Namespace="System.Linq" %>
     
  2. Ray

    Ray

    Make sure you uploaded all the required files, assemblies, and components in your application Bin folder. If it works on your home computer then most likely you installed the assemblies in your computers GAC, but it may not be installed on the servers GAC. This shouldn't be a problem as long as you also upload the assembly in your applications Bin folder.
     
  3. Thank you very much.
     

Share This Page