I am not sure what is going on but I keep getting the following exception when doing a query. \"Duplicate type name within an assembly.\" I have not been able to find a solu
None of the above seem to work for me however in the link specified earlier i did fin this, which worked for me. This was submitted by 'bunomonteiro'
To Fix "Duplicate type name within an assembly"
I had similar issue. I checked all my models/classes and I have not used duplicate names for types. I deleted the assemblies and regenerated the the model and context object from the database and still had the same issue.
A trace yielded in Visual Studio "Children could not be evaluated". The SOLUTION is to add .ToList(); or ToArray(); or ToDictionary() etc, to your query. etc.
eg. var query = context.TableName.Where(x => x.name =="CodeRealm").ToList();
PingBack - http://entityframework.codeplex.com/workitem/1898
bunomonteiro wrote Jul 18 at 3:37 AM