I have a really simple demo project that I'm using to get rolling with DevForce for Silverlight.
It was working, in so far as it was executing a simple Query against the DB and returning values. Then I did this:
- I updated the EDMX, changing the 'StoreGeneratedPattern' for the ID properties on entities to 'Identity'.
(NB: I'm using the model-generator in VS-2010 to generate the EDMX and SQL, then copying it back to VS2008)
- I updated the DB to reflect the EDMX model (using the expored SQL script)
- I copied the updated EDMX into the DevForce test project that was working.
- Updated the 'imedmx' file by removing the EntityModel then adding again (not sure if this was over-kill, but seemed like it would do the trick).
Now, I'm now sure if any, or all, of the above is to blame, but I now get the following error when executing the fetch:
Failed to fetch: 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.
There have been various posts on this form about this particular error, but none recently, and none seemingly related to my situation (I don't think).
So I've screwed something up here...I'd really like to know what it might be, so I can edit models in confidence and not have DevForce stop working on me.
Does anyone have any ideas on what's happening here? I have copied the sample project to this post if that will help to see what's going on (included in this is the SQL Script to generate the DB).
Thanks!
Sample Project