I get this error when I try to access a view in my .edmx:
All artifacts loaded into an ItemCollection must have the same version. Multiple versions were encountered.
Here is the code that generates the error:
private IQueryable<daDialogNotes.viewDialogNotesAll> GetAuthorizedList() { List<int> authorizedClients = al.GetClientIds(); daDialogNotes.NTS2001Entities context = new daDialogNotes.NTS2001Entities(); IQueryable<daDialogNotes.viewDialogNotesAll> m; m = context.viewDialogNotesAlls.Where(x => (authorizedClients.Contains(x.Client_Id))).AsQueryable();
Here is a picture of my view:

App.config for provider:
<?xml version="1.0" encoding="utf-8"?> <configuration> <configSections> <section name="entityFramework" type="System.Data.Entity.Internal.ConfigFile.EntityFrameworkSection, EntityFramework, Version=5.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" requirePermission="false" /> </configSections> <connectionStrings> <add name="NTS2001Entities" connectionString="metadata=res://*/DialogNotes.csdl|res://*/DialogNotes.ssdl|res://*/DialogNotes.msl;provider=System.Data.SqlClient;provider connection string="data source=NTS-UAT;initial catalog=NTS2001;persist security info=True;user id=*******;password=*********;MultipleActiveResultSets=True;App=EntityFramework"" providerName="System.Data.EntityClient" /> </connectionStrings> <entityFramework> <defaultConnectionFactory type="System.Data.Entity.Infrastructure.SqlConnectionFactory, EntityFramework" /> </entityFramework> </configuration>
I am running .net 4.5 on everything. Edmx is in another project file and I am referencing the dll in my application. I see that people get this error when upgrading from .net 3.5 to 4.0, but it always ran on 4.5.
Any ideas?
source share