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.Web.Entity.Design

Sheesh! Am I the only one who makes these ridiculous errors or just the only one who posts them for all to read????

Ken

Published Sunday, August 22, 2010 7:55 AM by Ken Cox [MVP]

Comments

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

Friday, November 26, 2010 2:00 AM by borga

Great!

you saved my day...

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

Monday, January 03, 2011 10:53 AM by Your are not alone

I just made the same mistake.  Thanks for posting the solution.  

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

Saturday, February 05, 2011 12:18 AM by Scott

Thanks for this. I had assumed (in error) that it was under System.Web.UI.Webcontrols.

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

Monday, October 31, 2011 3:37 PM by Varun Sharma

Thanks Ken...

It is really frustrating to get stuck in these kind of issues but at the same time very happy to get solution from your post...

Regards

Varun

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

Friday, December 09, 2011 7:52 AM by Denny

Thanks for sharing brother.

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

Saturday, March 10, 2012 8:34 AM by Jlu

2012 and still helped me, thanks

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

Thursday, May 10, 2012 3:57 PM by Barrett Alexander

Spent the last 1.5 hours going wtf is wrong with this stupid thing?

You're not alone Ken!

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

Tuesday, May 15, 2012 4:45 PM by Varun Sharma

Hey Ken..

Too Good Buddy..

Here it is 2:15 AM and your post worked as a life savor for me...

Agree with Jlu's comment.. 2012 and still helpful and will remain helpful for developers like us in near future also

Leave a Comment

(required) 
(required) 
(optional)
(required)