<?xml version="1.0" encoding="utf-8" ?>
<?xml-stylesheet type="text/xsl" href="RSS_xslt_style.asp" version="1.0" ?>
<rss version="2.0" xmlns:WebWizForums="http://syndication.webwiz.co.uk/rss_namespace/">
 <channel>
  <title>DevForce Community Forum : metadata artifact files (csdl, msl, ssdl) are either invalid or could not be found</title>
  <link>http://www.ideablade.com/forum/</link>
  <description>This is an XML content feed of; DevForce Community Forum : DevForce 2010 : metadata artifact files (csdl, msl, ssdl) are either invalid or could not be found</description>
  <pubDate>Sun, 19 May 2013 16:09:50 -700</pubDate>
  <lastBuildDate>Mon, 29 Aug 2011 18:23:19 -700</lastBuildDate>
  <docs>http://blogs.law.harvard.edu/tech/rss</docs>
  <generator>Web Wiz Forums 9.69</generator>
  <ttl>360</ttl>
  <WebWizForums:feedURL>www.ideablade.com/forum/RSS_post_feed.asp?TID=2937</WebWizForums:feedURL>
  <image>
   <title>DevForce Community Forum</title>
   <url>http://www.ideablade.com/forum/forum_images/IdeaBlade_logo_tm.png</url>
   <link>http://www.ideablade.com/forum/</link>
  </image>
  <item>
   <title>metadata artifact files (csdl, msl, ssdl) are either invalid or could not be found : I have resolved this by just moving...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=2937&amp;PID=11572#11572</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=1111" rel="nofollow">cseils</a><br /><strong>Subject:</strong> 2937<br /><strong>Posted:</strong> 29-Aug-2011 at 6:23pm<br /><br />I have resolved this by just moving everything into one entity model. &nbsp;Not the best solution but it works]]>
   </description>
   <pubDate>Mon, 29 Aug 2011 18:23:19 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=2937&amp;PID=11572#11572</guid>
  </item> 
  <item>
   <title>metadata artifact files (csdl, msl, ssdl) are either invalid or could not be found : Further to this, the inner exception...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=2937&amp;PID=11559#11559</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=1111" rel="nofollow">cseils</a><br /><strong>Subject:</strong> 2937<br /><strong>Posted:</strong> 28-Aug-2011 at 11:58pm<br /><br /><div>Further to this, the inner exception is as follows:</div><div><br></div><div>Schema specified is not valid. Errors:&nbsp;</div><div>The mapping of CLR type to EDM type is ambiguous because multiple CLR types match the EDM type 'Person'. Previously found CLR type 'DomainModel.Ordering.Person', newly found CLR type 'DomainModel.Mailer.Person'.</div><div>The mapping of CLR type to EDM type is ambiguous because multiple CLR types match the EDM type 'Person'. Previously found CLR type 'DomainModel.Ordering.Person', newly found CLR type 'DomainModel.Companies.Person'.</div><div>The mapping of CLR type to EDM type is ambiguous because multiple CLR types match the EDM type 'Person'. Previously found CLR type 'DomainModel.Ordering.Person', newly found CLR type 'DomainModel.Customers.Person'.</div><div>The mapping of CLR type to EDM type is ambiguous because multiple CLR types match the EDM type 'Person'. Previously found CLR type 'DomainModel.Ordering.Person', newly found CLR type 'DomainModel.Security.Person'.</div><div>The mapping of CLR type to EDM type is ambiguous because multiple CLR types match the EDM type 'Person'. Previously found CLR type 'DomainModel.Ordering.Person', newly found CLR type 'DomainModel.Products.Person'.</div><div><br></div><div><br></div><div>I do have the same table mapped in multiple EDMX files in the same assembly. &nbsp;They are all in different namespaces (ie different directories).</div><div><br></div><div>Is there a workaround for this, as I have to have this same table in all the Domain models.</div><div>Thanks</div><div>Chris</div>]]>
   </description>
   <pubDate>Sun, 28 Aug 2011 23:58:51 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=2937&amp;PID=11559#11559</guid>
  </item> 
  <item>
   <title>metadata artifact files (csdl, msl, ssdl) are either invalid or could not be found : Hello,I originally had multiple...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=2937&amp;PID=11558#11558</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=1111" rel="nofollow">cseils</a><br /><strong>Subject:</strong> 2937<br /><strong>Posted:</strong> 28-Aug-2011 at 8:39pm<br /><br />Hello,<div><br></div><div>I originally had multiple assemblies with different edmx files which were mapping to one database.</div><div>To keep the EDMX files from becoming too large, I split them into seperate assemblies.</div><div>This all worked fine. &nbsp;I had the following in the web config</div><div><br></div><div><div>&lt;connectionStrings&gt;</div><div>&nbsp; &lt;add name="SecurityEntities" connectionString="metadata=res://*/SecurityModel.csdl|res://*/SecurityModel.ssdl|res://*/SecurityModel.msl;provider=System.Data.SqlClient;provider connection string=&amp;quot;removed&amp;quot;" providerName="System.Data.EntityClient" /&gt;</div><div>&nbsp; &lt;add name="ProductsEntities" connectionString="metadata=res://*/ProductsModel.csdl|res://*/ProductsModel.ssdl|res://*/ProductsModel.msl;provider=System.Data.SqlClient;provider connection string=&amp;quot;removed&amp;quot;" providerName="System.Data.EntityClient" /&gt;</div><div>&nbsp; &lt;add name="CustomersEntities" connectionString="metadata=res://*/CustomersModel.csdl|res://*/CustomersModel.ssdl|res://*/CustomersModel.msl;provider=System.Data.SqlClient;provider connection string=&amp;quot;removed&amp;quot;" providerName="System.Data.EntityClient" /&gt;</div><div>&lt;/connectionStrings&gt;</div></div><div><br></div><div>All the connection strings pointed to the same database, and each domain model had the correct connection string.</div><div><br></div><div>Because VS 2010 takes forever to compile when there are a large number of projects, I decided to merge all the EDMX files into their own assembly called DomainModel.</div><div>All edmx files were in their own directory and the Namespace was identical as before.</div><div>I then modified the connectionstrings in the webconfig to point to the new resource so&nbsp;SecurityModel.csdl became</div><div>Security.SecurityModel.csdl,&nbsp;SecurityModel.ssdl became Security.SecurityModel.ssdl etc, to cater for the new metadata artifact resources in the DomainModel.</div><div><br></div><div>However, I am now getting the error on the server:</div><div><br></div><div>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. &nbsp;Perhaps you have multiple assemblies containing the same metadata. Check the connection string for key 'SecurityEntities', which says the artifact filenames are Security.SecurityModel.csdl, Security.SecurityModel.ssdl, and Security.SecurityModel.msl. Do these names match the actual artifact filenames? All three root names (e.g., 'Security.SecurityModel') should be the same and match the edmx filename unless you changed them deliberately.</div><div><br></div><div>I have checked the resources using reflector in the DomainModel assembly and metadata artifact files are exactly as specified. &nbsp;I have also made sure there are no old assemblies still lurking around.</div><div><br></div><div>Do you have any pointers to try to try and fix this problem?</div><div><br></div><div>Thanks</div><div>Chris</div>]]>
   </description>
   <pubDate>Sun, 28 Aug 2011 20:39:36 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=2937&amp;PID=11558#11558</guid>
  </item> 
 </channel>
</rss>