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

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

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

Posted By: Ken Cox [MVP]     Posted Date: August 24, 2010    Points: 0   Category :ASP.Net
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)

View Complete Post

More Related Resource Links

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

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.  

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 name ... does not exist in the type xyz

I wrote a custom activity and compiled it. It showed up in the toolbox perfect. I can select it and drag it into my WF, and I start to get excited. But, when I compile the workflow, I get the "type does not exist" error message. "The type name 'AuthenticateTaxReturnActivity' does not exist in the type 'AuthenticateTaxReturnActivity.AuthenticateTaxReturnActivity'" How come it can't resove the activity at compile time, but does just fine at design time? Thanks, Robert  

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?

newlly added content type not exist in SPWeb.ContentTypes


I use a C# application (it uses stsadm.exe) to deploy a content type, and in the same program, I try to get the content type by using SPWeb.ContentTypes[name] right after the content type is deployed,  it returns null. if i exist the c# application and re-run the application, I can get the added content type. I don't know why I cannot get the content type the first time after the content type is deployed. Any thoughts?




Missing partial modifier on declaration of type XXX ; another partial declaration of this type exist



I have a web service that it's working fine with a mobile application built on compact framework.

Now i need to grant access to a 3rd party java application that reported some errors.

I used .NET WebserviceStudio to examin the webservice and i got a bunch of errors


Generating WSDL
Generating Proxy
Compiling Proxy
 error CS0260: Missing partial modifier on declaration of type 'T_DIST_DistributerTables'; another partial declaration of this type exists
 error CS0102: The type 'T_DIST_DistributerTables' already contains a definition for 'VW_RPT_SERVICERowChangeEventHandler'
 error CS0102: The type 'T_DIST_DistributerTables' already contains a definition for 'T_PDA_ServiceCurrentSubStateRowChangeEventHandler'
 error CS0102: The type 'T_DIST_DistributerTables' already contains a definition for 'T_PDA_ServiceSubStateMovRowChangeEventHandler'
 error CS0102: The type 'T_DIST_DistributerTables' already contains a definition for 'T_PDA_CalendarRowChangeEventHandler'
 error CS0102: The type 'T_DIST_DistributerTables' already contains a definition for 'T_PDA_MessageRowChangeEventHandler'
 error CS0102: The type 'T_DIST_DistributerTables' already contains a definition for '

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

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!

'While more exist' type function



What I need to do, I could do easily in PHP, but unsure how to do it in SQL...

we have a list of users and a list of customers... Some users may be tied to multiple customers

I need to run a report that would look like the following:

Customer(s) Name

Cust1, Cust3, Cust7 John Doe

Cust2 Jane Doesn't

Cust1, Cust3, Cust5 Joe Schmoe


I know how to make a list that puts each customer on it's own line, but I need to shrink them up so that it is one line per user with all the customers in the same cell...


The fields are: Users.UsersID, Users.FirstName, Users.LastName

UsersCustomer.UsersID, UsersCustomer.CustomerID

Customer.CustomerID, Customer.FullName


Is there a way to do this?

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