Last post Mar 01, 2012 09:24 PM by mani2009it
Mar 22, 2011 09:06 AM|plxssy|LINK
I am a newbie in EF, I download a completed version of the above sample
here from Scott's blog, but when I run it, it always throw this exception like the title. Please help me!
Any help will be appreciated!!
Thanks very much!
Mar 25, 2011 03:17 AM|decker dong - msft|LINK
I suspect whether your version is overdue or not, and with the new coming of EF4.1CTP (Now even 5CYP, but I use 4.1 for eg). There's a new dll called "EntityFramework.dll" you should refer into your proj after you install the EF41CTP.exe and fetch the dll
from your "binary" folder.
And change a liitle of your codes:
public partial class Products : System.Web.UI.Page
Northwind northwind = new Northwind();
var products = from p in northwind.Products.ToList()
where p.Discontinued == false
GridView1.DataSource = products;
And if your SQL isn't type of Express, please change in web.config.
That's all! I'd like to send you a copy of package codes, please send to me at
firstname.lastname@example.org for your own codes, and include the link of the post in the body of your letter
Mar 01, 2012 09:24 PM|mani2009it|LINK
I am too newbie to EF 4.1. I have created some simple application which uses EF 4.1 to created DB from my domain class. I have not given any connection string. I let default convention, which is to look in the local SQL Server Express instance (localhost\SQLEXPRESS)
to take care of db connection. But, i cannot log into sqlexpress server. So, i am getting below error.
Please help. How to resolve it.