Print Page | Close Window

Error upgrading to 6.0.4

Printed From: IdeaBlade
Category: DevForce
Forum Name: DevForce 2010
Forum Discription: For .NET 4.0
URL: http://www.ideablade.com/forum/forum_posts.asp?TID=2035
Printed Date: 21-Apr-2026 at 8:39pm


Topic: Error upgrading to 6.0.4
Posted By: leeatkinson
Subject: Error upgrading to 6.0.4
Date 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



Replies:
Posted By: leeatkinson
Date 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



Print Page | Close Window