.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Win Surprise Gifts!!!

Top 5 Contributors of the Month
Gaurav Pal
Post New Web Links

The type or namespace name 'Linq' does not exist in the namespace 'System'

Posted By:      Posted Date: September 02, 2010    Points: 0   Category :ASP.Net
Hi, I uploaded my website to the server, and I have there a working with wcf - it should be fw 3.5 I saw that fw 3.5 is installed on the server and also we have there fw 3.0 sp1. I run my website : www.qenglishcenter.com and I'm getting an error : The type or namespace name 'Linq' does not exist in the namespace 'System' (are you missing an assembly reference?) shouldn't System.linq be already existed ? Thanks for any reply.  

View Complete Post

More Related Resource Links

Fix: The type or namespace name 'EntityDataSource' does not exist

Today's stupid mistake had me going in circles in my Web application project. The error message was: The type or namespace name 'EntityDataSource' does not exist. As the rest of the error message suggests, I must be missing an assembly reference. Nope, I'd already added in the references to Entity : System.Data.Entity System.Data.Entity.Design After much frustration until after 1 a.m., I gave up and went to bed. This morning I realized that what it wanted was the WEB Entity! System. Web .Entity System...(read more)

The type or namespace name 'Portal' does not exist in the namespace 'Microsoft.SharePoint' (are

Hi, We are trying to migrate a console program (C#) from MOSS 2007 to SP 2010. Trying to build the program (Visual Studio 2008) results in this error message: "The type or namespace name 'Portal' does not exist in the namespace 'Microsoft.SharePoint' (are you missing an assembly reference?)" Then we tryed adding a reference for Microsoft.SharePoint.portal - but this class is not available in the dialog box 'Add reference'. Can anyone help - please.

The Type or namespace 'Sharepoint' does not exist in the namespace 'Microsoft'

Development Environment is VS2010 Project .Net Version 4 Sharepoint 2007 Sharepoint installation is not on my Development PC but a seperate server I have copied the Sharepoint DLLS to C:\Program Files\Common Files\Microsoft Shared\web server extensions\12\ISAPI which is suggested in one link. I have set a reference to the Sharepoint DLL in this directory The demonstration application is as follows; using System;using System.Collections.Generic;using System.Linq;using System.Text;using Microsoft.SharePoint; namespace SHConnectionTest{    class Program    {        static void Main(string[] args)        {            try            {                SPSite rootCollection = new SPSite("http://stg1tfs01");                Console.WriteLine("Root Collection found at {0} is part of Web Application {1}", rootCollection.Url, rootCollection.WebApplica

Error trying to extend a class, The type or namespace name 'ErrorData' does not exist in the names


I would like to create a class that extends my ErrorData class, i have not done this in a while and when i try    class ErrorDataASPX : ExceptionHandler.ErrorData and build i get msg:

Error 1 The type or namespace name 'ErrorData' does not exist in the namespace 'ExceptionHandler' (are you missing an assembly reference?) C:\ExceptionHandling\ExceptionHandler\ErrorDataASPX.cs 9 44 ExceptionHandler

namespace ExceptionHandler
    class ErrorDataASPX : ExceptionHandler.ErrorData

namespace ExceptionHandling
    using System;
    using System.Globalization;
    using System.Text;
    using System.Web;

    /// <summary>
    /// Contains information about an error.
    /// </summary>
    public class ErrorData

Type or namespace error.


A couple of days ago I started getting an unusual behavior when compiling Website projects. I have referenced class libraries added to my bin folder that are also correctely referenced in using statements in my aspx.cs code behind. When I compile, I get the 

Error 4 The type or namespace name 'CommonClassLibrary' could not be found (are you missing a using directive or an assembly reference?) C:\Dev\Fiscal_Portal\Implementation\FMS Portal Site_new\App_Code\BLL\DataTables.cs 1 7 C:\...\FMS Portal Site_new\

The type or namespace name 'CommonClassLibrary' could not be found (are you missing a using directive or an assembly reference?)

error message that would typically be received when the dll has not been added as a reference or added in a using statement.

I can eliminate the error by adding an


The type 'System.Data.Linq.DataContext' is defined in an assembly that is not referenced. You must



This is frustrating, and I don't know how to solve it.

I have a strange problem. I am adding a LinqDatasource object, and set the context:

        protected void LinqDataSource_ContextCreating(object sender, LinqDataSourceContextEventArgs e)
            e.ObjectInstance = new KaruselaDataContext(ConfigurationManager.ConnectionStrings["ConnectionString"].ConnectionString);

Then I get this error:
The type 'System.Data.Linq.DataContext' is defined in an assembly that is not referenced. You must add a reference to assembly 'System.Data.Linq, Version=, Culture=neutral, PublicKeyToken=b77a5c561934e089'.


On web.config I already have this:
<add assembly="System.Data.Linq, Version=, Culture=neutral, PublicKeyToken=b77a5c561934e089"/>

NOTE: The datacontext is in a different project (DLL proect) where I added a refernce to System.Data.Linq.

is there another way adding a refernce to a web project? or only though teh web.config?


Error Build: Type or namespace could not be found, when referencing a web service

Hello, I'm new in writing C# application in Visual Studio 2008. I'm currently writing a web application for CRM 4.0 Reporting Service rendering. I reference my web application to our Reporting Service web service http://reportservername /ReportServer/ReportExecution2005.asmx and name it 'RSWebReference'. Then I want to reference it in my code: Using RSWebReference; Not sure why, but I cannot build my solution, saying "The type or namespace name 'RSWebReference' could not be found (are you missing a using directive or an assembly reference?)". I read this thread in http://social.msdn.microsoft.com/Forums/en-US/sqlreportingservices/thread/74f70e30-83e8-4817-b5e0-7729450730a1 that the website probably is using .net 1.1, and I should change it to .net 2.0. However, I think the website is already using 2.0. Is it probably because I'm using VS 2008? How can I tell and change if the website is using 1.1 or 2.0? Or could I be doing something wrong? Thanks in advanced for your help! -Elizabeth K.

How to resolve "Tag ... does not exist in XML namespace errors"

I am new to both Workflow and WPF and am writing my first IValueConverter in an attempt to properly handle an InArgument of "WorkOrderTypes" Enum type represented as a ComboBox in a custom CodeActivity's ActivityDesigner.   I have used an ObjectDataProvider to successfully populate the ComboBox's ItemsSource property, but am stuck at getting the binding working for the InArgument<WorkOrderTypes>.   I have looked around in this forum and elsewhere and have seen recommendations that i use an Converter class.  So I thought I'd give it a try. My Converter class is probably not coded correctly in this first cut, but I am unable to build the project to use the debugger to see the inputs and outputs to get it working because it won't build.   When I try to build it, there are no direct code syntax errors but I get the error: "The tag 'ComboBoxToWotArgConverter' does not exist in XML namespace 'clr-namespace:MyCo.Workflow.Activities;assembly=MyCo.Workflow.Activities.DemooActivityLibrary'".   The skeleton custom "CreateWorkOrder" CodeActivity, its "CreateWorkOrderDesigner", and the 'ComboBoxToWotArgConverter' classes are all in the same ActivityLibrary assembly MyCo.Workflow.Activities.DemooActivityLibrary".    The  public enum "WorkOrderTypes"&

Cannot create unknown type '{clr-namespace:Blog.LongRunningWorkflow.Example.Activities}WaitForReques

Hi, I am facing problem in loading XAML at runtime. Below is the code please help me. public void ProcessRequest(Request request) { // Get the workflow instance id to use Guid instanceId = this.requestToInstanceMapping[request.Id];         // Setup the arguments that are passed to the workflow          IDictionary<string, object> input = new Dictionary<string, object>();              input.Add("Request", request);            using (FileStream fs = new FileStream(@"ProcessRequest.xaml", FileMode.Open))          {             // Load the ProcessRequest workflow           Activity wf = ActivityXamlServices.Load(fs) as Activity;                            // Create the workflow instance specifying the arguments and instance id                      WorkflowApplication wapp = new WorkflowApplication(wf, input);          string persistenceConnectionString = "Data Source=Dev1;Initial Catalog=InstanceStore;User id=sa;password=xxxxxxx;Asynchronous Processing=True";          &nbs

namespace of type specified in the Imports 'AjaxControlToolkit doesnt contain any public member or

my website comes from a .net 20 config and am now on 4.0For this line: Imports AjaxControlToolkitI get this error: "namespace of type specified in the Imports 'AjaxControlToolkit"I could remove that line, were it not that it also says this line: Private _questions As CascadingDropDownNameValueerror: Type 'CascadingDropDownNameValue' is not defined.    My web.config has been upgraded, I have placed the latest ajaxcontroltoolkit.dll in my bin folder...what more can I do?

Handling Type namespace/assembly change during serialization

We needed to move a class from one assembly to another due to referencing issues.  However, we have Workflows in the field where this type is serialized into them and we get the Failed to load type error.  I was wondering if there was anything like AssemblyResolve for handling type load failures where we can correct the type and load the correct one?

In which namespace we can find The type or namespace name 'webBrowser'


i received an error showing


Error    27    The type or namespace name 'IgnoreDataMember' could not be found (are you missing a using directive or an assembly reference?)    F:\Main project\downloaded facebook applications\Facebook\Types\Facebook.Types.auth.cs    24    10    Facebook

hop any one can help me out immediatly

what is the use of System.Diagnostics namespace classes



what is the use of  System.Diagnostics namespace classes

what is the use of System.System.Diagnostics namespace classes

what is the use of  System.System.Diagnostics namespace classes

The tag XXX does not exist in XML namespace 'clr-namespace:YYY'.



I have the following issue:


In my project called "CabinControlPage" I have a WPF usercontrol where I would like to use a valueconverter implemented in a class. The class looks like this:


Code Block

Namespace CabinControlPage


Public Class SliderConverter

Implements System.Windows.Data.IValueConverter


Public Function Convert(ByVal value As Object, ByVal<

Type or namespace membership user cannot be found


- I started an empty ASP.NET 3.5 website

- I included the assembly reference <add assembly="System.Web.ApplicationServices, Version=, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>

- I included using System.Web.Security;

- I want to use the following code to add a confirmation code to an email

protected void CreateUserWizard1_SendingMail(object sender, MailMessageEventArgs e)
        MembershipUser user = Membership.GetUser(CreateUserWizard1.UserName);
        string code = user.ProviderUserKey.ToString();
        e.Message.Body = e.Message.Body.Replace("<%ConfirmationCode%>", code);

- I know some changes were made to the location of MembershipUser according to this --> http://www.asp.net/(S(ywiyuluxr3qb2dfva1z5lgeg))/learn/whitepapers/aspnet4/breaking-changes#0.1__Toc256770156

Please help!

"The type or namespace name 'List' could not be found"

Hi all,

I'm working through the C# version of ScottGu's Visual Studio 2005 Web Application Project Tutorials <http://webproject.scottgu.com/CSharp/Data/Data.aspx> and am stuck on the Publisher class. After adding the Author list then trying to compile, I get the following error:

...My Documents\Computing\Programming\C#\scottgu\tut1\tut1\Publisher.cs(15,16): The type or namespace name 'List' could not be found (are you missing a using directive or an assembly reference?)

Any suggestions?



I'm running WinXP Pro 2002 w/ SP2 and am developing under Visual Studio 2005 Version 8.0.50727.42 using .Net Framework Version 2.050727 (I have installed a C# update and think I'm running C# 3)

Microsoft Visual Studio Pro 2005 Version 8.0.50727.42  (RTM.050727-4200)
Microsoft .NET Framework Version 2.0.50727

Microsoft Visual C# 2005  

Microsoft Visual Web Developer 2005  

Microsoft Web Application Projects 2005 Version 8.0.60504.00

Microsoft .NET LINQ Preview
Update for Microsoft Visual Studio 2005 Professional Edition - ENU (KB915364)  

ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  Silverlight  Others  All   

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend