<div dir="ltr">Hi,<div><br></div><div style>Could you fill a bug report for the issue.</div><div style><br></div><div style>Thanks</div><div style>Marek</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">
On Sat, Feb 9, 2013 at 3:30 PM, οΜΕΗ <span dir="ltr"><<a href="mailto:olegm-development@yandex.ru" target="_blank">olegm-development@yandex.ru</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Many thanks to Atsushi Eno for a solution for previous defect in System.Xml.<br>
<br>
But there are new issues with EF. I tried to create simplest console application (file Test.zip attached to this letter, contains MonoDevelop project), it fails with following exception:<br>
<br>
System.ArgumentException: An element with the same key already exists in the dictionary.<br>
š at System.Collections.Generic.<u></u>Dictionary`2[System.String,<u></u>System.Object].Add (System.String key, System.Object value) [0x0007e] in /usr/ports/lang/mono/work/<u></u>mono-3.0.3/mcs/class/corlib/<u></u>System.Collections.Generic/<u></u>Dictionary.cs:423<br>

š at System.Data.Entity.Core.<u></u>EntityModel.SchemaObjectModel.<u></u>TypeUsageBuilder.<u></u>HandleNullableAttribute (System.Xml.XmlReader reader) [0x00015] in /usr/ports/lang/mono/work/<u></u>mono-3.0.3/external/<u></u>entityframework/src/<u></u>EntityFramework/Core/<u></u>EntityModel/SchemaObjectModel/<u></u>TypeUsageBuilder.cs:605<br>

š at System.Data.Entity.Core.<u></u>EntityModel.SchemaObjectModel.<u></u>TypeUsageBuilder.<u></u>InternalHandleAttribute (System.Xml.XmlReader reader) [0x00010] in /usr/ports/lang/mono/work/<u></u>mono-3.0.3/external/<u></u>entityframework/src/<u></u>EntityFramework/Core/<u></u>EntityModel/SchemaObjectModel/<u></u>TypeUsageBuilder.cs:300<br>

š at System.Data.Entity.Core.<u></u>EntityModel.SchemaObjectModel.<u></u>TypeUsageBuilder.<u></u>HandleAttribute (System.Xml.XmlReader reader) [0x00000] in /usr/ports/lang/mono/work/<u></u>mono-3.0.3/external/<u></u>entityframework/src/<u></u>EntityFramework/Core/<u></u>EntityModel/SchemaObjectModel/<u></u>TypeUsageBuilder.cs:291<br>

š at System.Data.Entity.Core.<u></u>EntityModel.SchemaObjectModel.<u></u>StructuredProperty.<u></u>HandleAttribute (System.Xml.XmlReader reader) [0x00040] in /usr/ports/lang/mono/work/<u></u>mono-3.0.3/external/<u></u>entityframework/src/<u></u>EntityFramework/Core/<u></u>EntityModel/SchemaObjectModel/<u></u>StructuredProperty.cs:227<br>

š at System.Data.Entity.Core.<u></u>EntityModel.SchemaObjectModel.<u></u>SchemaElement.ParseAttribute (System.Xml.XmlReader reader) [0x0006a] in /usr/ports/lang/mono/work/<u></u>mono-3.0.3/external/<u></u>entityframework/src/<u></u>EntityFramework/Core/<u></u>EntityModel/SchemaObjectModel/<u></u>SchemaElement.cs:592<br>

š at System.Data.Entity.Core.<u></u>EntityModel.SchemaObjectModel.<u></u>SchemaElement.Parse (System.Xml.XmlReader reader) [0x0001d] in /usr/ports/lang/mono/work/<u></u>mono-3.0.3/external/<u></u>entityframework/src/<u></u>EntityFramework/Core/<u></u>EntityModel/SchemaObjectModel/<u></u>SchemaElement.cs:193<br>

š at System.Data.Entity.Core.<u></u>EntityModel.SchemaObjectModel.<u></u>StructuredType.<u></u>HandlePropertyElement (System.Xml.XmlReader reader) [0x00007] in /usr/ports/lang/mono/work/<u></u>mono-3.0.3/external/<u></u>entityframework/src/<u></u>EntityFramework/Core/<u></u>EntityModel/SchemaObjectModel/<u></u>StructuredType.cs:387<br>

š at System.Data.Entity.Core.<u></u>EntityModel.SchemaObjectModel.<u></u>StructuredType.HandleElement (System.Xml.XmlReader reader) [0x0001f] in /usr/ports/lang/mono/work/<u></u>mono-3.0.3/external/<u></u>entityframework/src/<u></u>EntityFramework/Core/<u></u>EntityModel/SchemaObjectModel/<u></u>StructuredType.cs:267<br>

š at System.Data.Entity.Core.<u></u>EntityModel.SchemaObjectModel.<u></u>SchemaEntityType.HandleElement (System.Xml.XmlReader reader) [0x00000] in /usr/ports/lang/mono/work/<u></u>mono-3.0.3/external/<u></u>entityframework/src/<u></u>EntityFramework/Core/<u></u>EntityModel/SchemaObjectModel/<u></u>ItemType.cs:198<br>

š at System.Data.Entity.Core.<u></u>EntityModel.SchemaObjectModel.<u></u>SchemaElement.ParseElement (System.Xml.XmlReader reader) [0x0002c] in /usr/ports/lang/mono/work/<u></u>mono-3.0.3/external/<u></u>entityframework/src/<u></u>EntityFramework/Core/<u></u>EntityModel/SchemaObjectModel/<u></u>SchemaElement.cs:746<br>

š at System.Data.Entity.Core.<u></u>EntityModel.SchemaObjectModel.<u></u>SchemaElement.Parse (System.Xml.XmlReader reader) [0x000d0] in /usr/ports/lang/mono/work/<u></u>mono-3.0.3/external/<u></u>entityframework/src/<u></u>EntityFramework/Core/<u></u>EntityModel/SchemaObjectModel/<u></u>SchemaElement.cs:220<br>

š at System.Data.Entity.Core.<u></u>EntityModel.SchemaObjectModel.<u></u>Schema.HandleEntityTypeElement (System.Xml.XmlReader reader) [0x00007] in /usr/ports/lang/mono/work/<u></u>mono-3.0.3/external/<u></u>entityframework/src/<u></u>EntityFramework/Core/<u></u>EntityModel/SchemaObjectModel/<u></u>Schema.cs:1023<br>

š at System.Data.Entity.Core.<u></u>EntityModel.SchemaObjectModel.<u></u>Schema.HandleElement (System.Xml.XmlReader reader) [0x0001f] in /usr/ports/lang/mono/work/<u></u>mono-3.0.3/external/<u></u>entityframework/src/<u></u>EntityFramework/Core/<u></u>EntityModel/SchemaObjectModel/<u></u>Schema.cs:592<br>

š at System.Data.Entity.Core.<u></u>EntityModel.SchemaObjectModel.<u></u>SchemaElement.ParseElement (System.Xml.XmlReader reader) [0x0002c] in /usr/ports/lang/mono/work/<u></u>mono-3.0.3/external/<u></u>entityframework/src/<u></u>EntityFramework/Core/<u></u>EntityModel/SchemaObjectModel/<u></u>SchemaElement.cs:746<br>

š at System.Data.Entity.Core.<u></u>EntityModel.SchemaObjectModel.<u></u>SchemaElement.Parse (System.Xml.XmlReader reader) [0x000d0] in /usr/ports/lang/mono/work/<u></u>mono-3.0.3/external/<u></u>entityframework/src/<u></u>EntityFramework/Core/<u></u>EntityModel/SchemaObjectModel/<u></u>SchemaElement.cs:220<br>

š at System.Data.Entity.Core.<u></u>EntityModel.SchemaObjectModel.<u></u>Schema.<u></u>HandleTopLevelSchemaElement (System.Xml.XmlReader reader) [0x0000e] in /usr/ports/lang/mono/work/<u></u>mono-3.0.3/external/<u></u>entityframework/src/<u></u>EntityFramework/Core/<u></u>EntityModel/SchemaObjectModel/<u></u>Schema.cs:1005<br>

š at System.Data.Entity.Core.<u></u>EntityModel.SchemaObjectModel.<u></u>Schema.InternalParse (System.Xml.XmlReader sourceReader, System.String sourceLocation) [0x0021e] in /usr/ports/lang/mono/work/<u></u>mono-3.0.3/external/<u></u>entityframework/src/<u></u>EntityFramework/Core/<u></u>EntityModel/SchemaObjectModel/<u></u>Schema.cs:210<br>

š at System.Data.Entity.Core.<u></u>EntityModel.SchemaObjectModel.<u></u>Schema.Parse (System.Xml.XmlReader sourceReader, System.String sourceLocation) [0x0000f] in /usr/ports/lang/mono/work/<u></u>mono-3.0.3/external/<u></u>entityframework/src/<u></u>EntityFramework/Core/<u></u>EntityModel/SchemaObjectModel/<u></u>Schema.cs:100<br>

š at System.Data.Entity.Core.<u></u>EntityModel.SchemaObjectModel.<u></u>SchemaManager.ParseAndValidate (IEnumerable`1 xmlReaders, IEnumerable`1 sourceFilePaths, SchemaDataModelOption dataModel, System.Data.Entity.Core.<u></u>EntityModel.SchemaObjectModel.<u></u>AttributeValueNotification providerNotification, System.Data.Entity.Core.<u></u>EntityModel.SchemaObjectModel.<u></u>AttributeValueNotification providerManifestTokenNotificat<u></u>ion, System.Data.Entity.Core.<u></u>EntityModel.SchemaObjectModel.<u></u>ProviderManifestNeeded providerManifestNeeded, IList`1& schemaCollection) [0x0008a] in /usr/ports/lang/mono/work/<u></u>mono-3.0.3/external/<u></u>entityframework/src/<u></u>EntityFramework/Core/<u></u>EntityModel/SchemaObjectModel/<u></u>SchemaManager.cs:152<br>

š at System.Data.Entity.Core.<u></u>EntityModel.SchemaObjectModel.<u></u>SchemaManager.ParseAndValidate (IEnumerable`1 xmlReaders, IEnumerable`1 sourceFilePaths, SchemaDataModelOption dataModel, System.Data.Entity.Core.<u></u>Common.DbProviderManifest providerManifest, IList`1& schemaCollection) [0x0000d] in /usr/ports/lang/mono/work/<u></u>mono-3.0.3/external/<u></u>entityframework/src/<u></u>EntityFramework/Core/<u></u>EntityModel/SchemaObjectModel/<u></u>SchemaManager.cs:102<br>

š at System.Data.Entity.Core.<u></u>Metadata.Edm.<u></u>EdmItemCollection.LoadItems (IEnumerable`1 xmlReaders, IEnumerable`1 sourceFilePaths, SchemaDataModelOption dataModelOption, System.Data.Entity.Core.<u></u>Common.DbProviderManifest providerManifest, System.Data.Entity.Core.<u></u>Metadata.Edm.ItemCollection itemCollection, Boolean throwOnError) [0x00002] in /usr/ports/lang/mono/work/<u></u>mono-3.0.3/external/<u></u>entityframework/src/<u></u>EntityFramework/Core/Metadata/<u></u>EdmItemCollection.cs:245<br>

š at System.Data.Entity.Core.<u></u>Metadata.Edm.<u></u>EdmItemCollection.Init (IEnumerable`1 xmlReaders, IEnumerable`1 filePaths, Boolean throwOnError) [0x00006] in /usr/ports/lang/mono/work/<u></u>mono-3.0.3/external/<u></u>entityframework/src/<u></u>EntityFramework/Core/Metadata/<u></u>EdmItemCollection.cs:126<br>

š at System.Data.Entity.Core.<u></u>Metadata.Edm.<u></u>EdmItemCollection..ctor (IEnumerable`1 xmlReaders, IEnumerable`1 filePaths, Boolean skipInitialization) [0x00023] in /usr/ports/lang/mono/work/<u></u>mono-3.0.3/external/<u></u>entityframework/src/<u></u>EntityFramework/Core/Metadata/<u></u>EdmItemCollection.cs:41<br>

š at System.Data.Entity.Core.<u></u>Metadata.Edm.MetadataCache+<u></u>EdmMetadataEntry.<u></u>LoadEdmItemCollection (System.Data.Entity.Core.<u></u>Metadata.Edm.<u></u>MetadataArtifactLoader loader) [0x00008] in /usr/ports/lang/mono/work/<u></u>mono-3.0.3/external/<u></u>entityframework/src/<u></u>EntityFramework/Core/Metadata/<u></u>MetadataCache.cs:653<br>

š at System.Data.Entity.Core.<u></u>Metadata.Edm.MetadataCache+<u></u>EdmItemCollectionLoader.<u></u>LoadItemCollection (System.Data.Entity.Core.<u></u>Metadata.Edm.EdmMetadataEntry entry) [0x00000] in /usr/ports/lang/mono/work/<u></u>mono-3.0.3/external/<u></u>entityframework/src/<u></u>EntityFramework/Core/Metadata/<u></u>MetadataCache.cs:834<br>

š at System.Data.Entity.Core.<u></u>Metadata.Edm.MetadataCache.<u></u>LoadItemCollection[<u></u>EdmMetadataEntry] (IItemCollectionLoader`1 itemCollectionLoader, System.Data.Entity.Core.<u></u>Metadata.Edm.EdmMetadataEntry entry) [0x00037] in /usr/ports/lang/mono/work/<u></u>mono-3.0.3/external/<u></u>entityframework/src/<u></u>EntityFramework/Core/Metadata/<u></u>MetadataCache.cs:367<br>

š at System.Data.Entity.Core.<u></u>Metadata.Edm.MetadataCache.<u></u>GetOrCreateEdmItemCollection (System.String cacheKey, System.Data.Entity.Core.<u></u>Metadata.Edm.<u></u>MetadataArtifactLoader loader, System.Object& entryToken) [0x00020] in /usr/ports/lang/mono/work/<u></u>mono-3.0.3/external/<u></u>entityframework/src/<u></u>EntityFramework/Core/Metadata/<u></u>MetadataCache.cs:273<br>

š at System.Data.Entity.Core.<u></u>EntityClient.EntityConnection.<u></u>LoadEdmItemCollection (System.Data.Entity.Core.<u></u>Metadata.Edm.MetadataWorkspace workspace, System.Data.Entity.Core.<u></u>Metadata.Edm.<u></u>MetadataArtifactLoader artifactLoader) [0x0000f] in /usr/ports/lang/mono/work/<u></u>mono-3.0.3/external/<u></u>entityframework/src/<u></u>EntityFramework/Core/<u></u>EntityClient/EntityConnection.<u></u>cs:1053<br>

š at System.Data.Entity.Core.<u></u>EntityClient.EntityConnection.<u></u>GetMetadataWorkspace (Boolean initializeAllCollections) [0x000b6] in /usr/ports/lang/mono/work/<u></u>mono-3.0.3/external/<u></u>entityframework/src/<u></u>EntityFramework/Core/<u></u>EntityClient/EntityConnection.<u></u>cs:467<br>

š at System.Data.Entity.Core.<u></u>Objects.ObjectContext.<u></u>RetrieveMetadataWorkspaceFromC<u></u>onnection () [0x00017] in /usr/ports/lang/mono/work/<u></u>mono-3.0.3/external/<u></u>entityframework/src/<u></u>EntityFramework/Core/Objects/<u></u>ObjectContext.cs:1839<br>

š at System.Data.Entity.Core.<u></u>Objects.ObjectContext..ctor (System.Data.Entity.Core.<u></u>EntityClient.EntityConnection connection, Boolean isConnectionConstructor, System.Data.Entity.Core.<u></u>Objects.Internal.<u></u>ObjectQueryExecutionPlanFactor<u></u>y objectQueryExecutionPlanFactor<u></u>y, System.Data.Entity.Core.<u></u>Common.Internal.<u></u>Materialization.Translator translator) [0x000bc] in /usr/ports/lang/mono/work/<u></u>mono-3.0.3/external/<u></u>entityframework/src/<u></u>EntityFramework/Core/Objects/<u></u>ObjectContext.cs:192<br>

š at System.Data.Entity.Core.<u></u>Objects.ObjectContext..ctor (System.String connectionString) [0x00000] in /usr/ports/lang/mono/work/<u></u>mono-3.0.3/external/<u></u>entityframework/src/<u></u>EntityFramework/Core/Objects/<u></u>ObjectContext.cs:114<br>

š at System.Data.Entity.Core.<u></u>Objects.ObjectContext..ctor (System.String connectionString, System.String defaultContainerName) [0x00000] in /usr/ports/lang/mono/work/<u></u>mono-3.0.3/external/<u></u>entityframework/src/<u></u>EntityFramework/Core/Objects/<u></u>ObjectContext.cs:134<br>

š at TestModel.TestEntities..ctor () [0x00000] in /home/Test/Test/TestModel.<u></u>Designer.cs:46<br>
š at Test.Program.Main (System.String[] args) [0x00001] in /home/Test/Test/Program.cs:11<br>
<br>
Honestly, I'm going to investigate and probably rewrite my code to NHibernate, but if this sample project will be useful for someone who will try to make support of Entity Framework on Mono better, I would be glad to know it.<br>

<br>
With best regards,<br>
Oleg<br>
<br>_______________________________________________<br>
Mono-devel-list mailing list<br>
<a href="mailto:Mono-devel-list@lists.ximian.com">Mono-devel-list@lists.ximian.com</a><br>
<a href="http://lists.ximian.com/mailman/listinfo/mono-devel-list" target="_blank">http://lists.ximian.com/mailman/listinfo/mono-devel-list</a><br>
<br></blockquote></div><br></div>