Print Page | Close Window

Error in EdmKey Default

Printed From: IdeaBlade
Category: DevForce
Forum Name: DevForce 2009
Forum Discription: For .NET 3.5
URL: http://www.ideablade.com/forum/forum_posts.asp?TID=1033
Printed Date: 10-May-2024 at 8:09pm


Topic: Error in EdmKey Default
Posted By: warez_willy
Subject: Error in EdmKey Default
Date Posted: 23-Dec-2008 at 6:57pm
Newbie ..   getting this error when running application.

read another post about this in forums but I don't understand the fix??
may need more specific instructions.

Error in EdmKey Default: Unable to locate an ObjectContext in the probe assemblies.  This is often caused by not copying your EF model 'dll' to the deployment directory.  This will be either the client application directory in a two tier deployment or the server deployment  directory in an n-tier deployment.



Replies:
Posted By: warez_willy
Date Posted: 23-Dec-2008 at 7:59pm
I found a solution for this.

Specifically this is with the tutorial project called ConfiguringAWinform

1.open the file ServerModelNorthwindIB.edmx
2. Right click the design surface
3. Select Update Model From Database
4. select your database provider

All works fine now.

The existing connection string in this project won't work. (obviously you must wire it up to see your local data)



Print Page | Close Window