New Posts New Posts RSS Feed: Error upgrading to 6.0.4
  FAQ FAQ  Forum Search   Calendar   Register Register  Login Login

Error upgrading to 6.0.4

 Post Reply Post Reply
Author
leeatkinson View Drop Down
Newbie
Newbie


Joined: 01-Jul-2010
Posts: 17
Post Options Post Options   Quote leeatkinson Quote  Post ReplyReply Direct Link To This Post Topic: Error upgrading to 6.0.4
    Posted: 30-Jul-2010 at 9:16am
Problem solved - I had an old version (with a different name) of the assembly that contained the model in the bin folder - so there were two models of the same name.

Lee
Back to Top
leeatkinson View Drop Down
Newbie
Newbie


Joined: 01-Jul-2010
Posts: 17
Post Options Post Options   Quote leeatkinson Quote  Post ReplyReply Direct Link To This Post Posted: 30-Jul-2010 at 8:58am
Hi

I've upgraded to version 6.0.4 (from 6.0.3.1) but I'm getting this error when I attempt SaveChanged() on the entity manager:

"Key 'Context': The model's metadata artifact files (csdl, msl, ssdl) are either invalid or could not be found, either as resources in an assembly or loose in the output directory. Perhaps you have multiple assemblies containing the same metadata. Check the connection string for key 'Context', which says the artifact filenames are Model.csdl, Model.ssdl, and Model.msl. Do these names match the actual artifact filenames? All three root names (e.g., 'Model') should be the same and match the edmx filename unless you changed them deliberately."

An inner exception says:

Schema specified is not valid. Errors:
Model.csdl(30,4) : error 0019: Each type name in a schema must be unique. Type name 'Model.Entity' was already defined.
Model.csdl(39,4) : error 0019: Each type name in a schema must be unique. Type name 'Model.Entry' was already defined.

..etc (listing all entities and complex type has already been defined)

I'm not sure how to resolve this. It builds OK and the connection strings all look correct.

Regards

Lee
Back to Top
 Post Reply Post Reply

Forum Jump Forum Permissions View Drop Down