title: All artifacts loaded into the item collection must have the same version. Multiple versions were encountered
body: <p>I'm getting this error when I try to access a view in my .edmx:</p>
  
  <pre><code>All artifacts loaded into an ItemCollection must have the same version. Multiple versions were encountered.
  </code></pre>
  
  <p>Here's the code that's genereating the error:</p>
  
  <pre><code>private IQueryable&lt;daDialogNotes.viewDialogNotesAll&gt; GetAuthorizedList()
      {            
          List&lt;int&gt; authorizedClients = al.GetClientIds();            
  
          daDialogNotes.NTS2001Entities context = new daDialogNotes.NTS2001Entities();
  
          IQueryable&lt;daDialogNotes.viewDialogNotesAll&gt; m;
          m = context.viewDialogNotesAlls.Where(x =&gt; (authorizedClients.Contains(x.Client_Id))).AsQueryable(); 
          // error in line above          
  
          return m;
      }
  </code></pre>
  
  <p>Here's an image of my view:</p>
  
  <p><img src="https://i.stack.imgur.com/4rpT2.jpg" alt="enter image description here"></p>
  
  <p>App.config for the provider:</p>
  
  <pre><code>    &lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;configuration&gt;
    &lt;configSections&gt;
      &lt;!-- For more information on Entity Framework configuration, visit http://go.microsoft.com/fwlink/?LinkID=237468 --&gt;
      &lt;section name="entityFramework" type="System.Data.Entity.Internal.ConfigFile.EntityFrameworkSection, EntityFramework, Version=5.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" requirePermission="false" /&gt;
    &lt;/configSections&gt;
    &lt;connectionStrings&gt;
      &lt;add name="NTS2001Entities" connectionString="metadata=res://*/DialogNotes.csdl|res://*/DialogNotes.ssdl|res://*/DialogNotes.msl;provider=System.Data.SqlClient;provider connection string=&amp;quot;data source=NTS-UAT;initial catalog=NTS2001;persist security info=True;user id=*******;password=*********;MultipleActiveResultSets=True;App=EntityFramework&amp;quot;" providerName="System.Data.EntityClient" /&gt;
    &lt;/connectionStrings&gt;
    &lt;entityFramework&gt;
      &lt;defaultConnectionFactory type="System.Data.Entity.Infrastructure.SqlConnectionFactory, EntityFramework" /&gt;
    &lt;/entityFramework&gt;
  &lt;/configuration&gt;
  </code></pre>
  
  <p>I'm running .net 4.5 on everything. The edmx is in another project file and I'm referencing the dll in my application. Googling around I see that people are getting this error when they're upgrading from .net 3.5 to 4.0, but this has always been running on 4.5. </p>
  
  <p>Any ideas?</p>