[Mono-dev] Entity Framework - new issues

Oleg olegm-development at yandex.ru
Wed Feb 13 12:13:53 UTC 2013


Oh, we came to the point I started from on StackOverflov
(http://stackoverflow.com/questions/14582318/nullreferenceexception-with-ef6-on-mono-3-0-3)
with NullReferenceException when I have tried use .Net System.Xml. It is a
good sign :)

I will attach updated sample project with patched EntityFramework.dll and
(expiring within a week) trial license for provider to existing Bug 10245
because if I will attach it here, it will not pass 80Kb limitation. Anyway
issue with post compilation validation looks related to Sys.Xml and this way
it is another bug having workaround for EntityFramework now,

System.NullReferenceException: Object reference not set to an instance of an
object
  at System.Xml.XmlInputStream.Initialize (System.IO.Stream stream)
[0x00000] in <filename unknown>:0
  at System.Xml.XmlInputStream..ctor (System.IO.Stream stream) [0x00000] in
<filename unknown>:0
  at (wrapper remoting-invoke-with-check) System.Xml.XmlInputStream:.ctor
(System.IO.Stream)
  at System.Xml.XmlStreamReader..ctor (System.IO.Stream input) [0x00000] in
<filename unknown>:0
  at (wrapper remoting-invoke-with-check) System.Xml.XmlStreamReader:.ctor
(System.IO.Stream)
  at System.Xml.XmlTextReader..ctor (System.IO.Stream input) [0x00000] in
<filename unknown>:0
  at System.Xml.Schema.XmlSchema.Read (System.IO.Stream stream,
System.Xml.Schema.ValidationEventHandler validationEventHandler) [0x00000]
in <filename unknown>:0
  at
System.Data.Entity.Core.EntityModel.SchemaObjectModel.Schema+SomSchemaSetHelper.AddXmlSchemaToSet
(System.Xml.Schema.XmlSchemaSet schemaSet, XmlSchemaResource schemaResource,
System.Collections.Generic.HashSet`1 schemasAlreadyAdded) [0x00000] in
<filename unknown>:0
  at
System.Data.Entity.Core.EntityModel.SchemaObjectModel.Schema+SomSchemaSetHelper.AddXmlSchemaToSet
(System.Xml.Schema.XmlSchemaSet schemaSet, XmlSchemaResource schemaResource,
System.Collections.Generic.HashSet`1 schemasAlreadyAdded) [0x00000] in
<filename unknown>:0
  at
System.Data.Entity.Core.EntityModel.SchemaObjectModel.Schema+SomSchemaSetHelper.ComputeSchemaSet
(SchemaDataModelOption dataModel) [0x00000] in <filename unknown>:0
  at
System.Data.Entity.Core.Common.Utils.Memoizer`2+<Evaluate>c__AnonStorey106[System.Data.Entity.Core.EntityModel.SchemaObjectModel.SchemaDataModelOption,System.Xml.Schema.XmlSchemaSet].<>m__100
() [0x00000] in <filename unknown>:0
  at
System.Data.Entity.Core.Common.Utils.Memoizer`2+Result[System.Data.Entity.Core.EntityModel.SchemaObjectModel.SchemaDataModelOption,System.Xml.Schema.XmlSchemaSet].GetValue
() [0x00000] in <filename unknown>:0
  at
System.Data.Entity.Core.Common.Utils.Memoizer`2[System.Data.Entity.Core.EntityModel.SchemaObjectModel.SchemaDataModelOption,System.Xml.Schema.XmlSchemaSet].Evaluate
(SchemaDataModelOption arg) [0x00000] in <filename unknown>:0
  at
System.Data.Entity.Core.EntityModel.SchemaObjectModel.Schema+SomSchemaSetHelper.GetSchemaSet
(SchemaDataModelOption dataModel) [0x00000] in <filename unknown>:0
  at
System.Data.Entity.Core.EntityModel.SchemaObjectModel.Schema.CreateXmlReaderSettings
() [0x00000] in <filename unknown>:0
  at System.Data.Entity.Core.EntityModel.SchemaObjectModel.Schema.Parse
(System.Xml.XmlReader sourceReader, System.String sourceLocation) [0x00000]
in <filename unknown>:0
  at
System.Data.Entity.Core.EntityModel.SchemaObjectModel.SchemaManager.ParseAndValidate
(IEnumerable`1 xmlReaders, IEnumerable`1 sourceFilePaths,
SchemaDataModelOption dataModel,
System.Data.Entity.Core.EntityModel.SchemaObjectModel.AttributeValueNotification
providerNotification,
System.Data.Entity.Core.EntityModel.SchemaObjectModel.AttributeValueNotification
providerManifestTokenNotification,
System.Data.Entity.Core.EntityModel.SchemaObjectModel.ProviderManifestNeeded
providerManifestNeeded, IList`1& schemaCollection) [0x00000] in <filename
unknown>:0
  at
System.Data.Entity.Core.Metadata.Edm.StoreItemCollection+Loader.LoadItems
(IEnumerable`1 xmlReaders, IEnumerable`1 sourceFilePaths) [0x00000] in
<filename unknown>:0
  at System.Data.Entity.Core.Metadata.Edm.StoreItemCollection+Loader..ctor
(IEnumerable`1 xmlReaders, IEnumerable`1 sourceFilePaths, Boolean
throwOnError) [0x00000] in <filename unknown>:0
  at System.Data.Entity.Core.Metadata.Edm.StoreItemCollection.Init
(IEnumerable`1 xmlReaders, IEnumerable`1 filePaths, Boolean throwOnError,
System.Data.Entity.Core.Common.DbProviderManifest& providerManifest,
System.Data.Common.DbProviderFactory& providerFactory, System.String&
providerManifestToken, System.Data.Entity.Core.Common.Utils.Memoizer`2&
cachedCTypeFunction) [0x00000] in <filename unknown>:0
  at System.Data.Entity.Core.Metadata.Edm.StoreItemCollection..ctor
(IEnumerable`1 xmlReaders, IEnumerable`1 filePaths) [0x00000] in <filename
unknown>:0
  at
System.Data.Entity.Core.Metadata.Edm.MetadataCache+StoreMetadataEntry.LoadStoreCollection
(System.Data.Entity.Core.Metadata.Edm.EdmItemCollection edmItemCollection,
System.Data.Entity.Core.Metadata.Edm.MetadataArtifactLoader loader)
[0x00000] in <filename unknown>:0
  at
System.Data.Entity.Core.Metadata.Edm.MetadataCache+StoreItemCollectionLoader.LoadItemCollection
(System.Data.Entity.Core.Metadata.Edm.StoreMetadataEntry entry) [0x00000] in
<filename unknown>:0
  at
System.Data.Entity.Core.Metadata.Edm.MetadataCache.LoadItemCollection[StoreMetadataEntry]
(IItemCollectionLoader`1 itemCollectionLoader,
System.Data.Entity.Core.Metadata.Edm.StoreMetadataEntry entry) [0x00000] in
<filename unknown>:0
  at
System.Data.Entity.Core.Metadata.Edm.MetadataCache.GetOrCreateStoreAndMappingItemCollections
(System.String cacheKey,
System.Data.Entity.Core.Metadata.Edm.MetadataArtifactLoader loader,
System.Data.Entity.Core.Metadata.Edm.EdmItemCollection edmItemCollection,
System.Object& entryToken) [0x00000] in <filename unknown>:0
  at
System.Data.Entity.Core.EntityClient.EntityConnection.LoadStoreItemCollections
(System.Data.Entity.Core.Metadata.Edm.MetadataWorkspace workspace,
System.Data.Common.DbConnection storeConnection,
System.Data.Entity.Core.EntityClient.Internal.DbConnectionOptions
connectionOptions, System.Data.Entity.Core.Metadata.Edm.EdmItemCollection
edmItemCollection,
System.Data.Entity.Core.Metadata.Edm.MetadataArtifactLoader artifactLoader)
[0x00000] in <filename unknown>:0
  at
System.Data.Entity.Core.EntityClient.EntityConnection.GetMetadataWorkspace
(Boolean initializeAllCollections) [0x00000] in <filename unknown>:0
  at
System.Data.Entity.Core.EntityClient.EntityConnection.GetMetadataWorkspace
() [0x00000] in <filename unknown>:0
  at
System.Data.Entity.Core.EntityClient.EntityConnection.InitializeMetadata
(System.Data.Common.DbConnection newConnection,
System.Data.Common.DbConnection originalConnection, Boolean
closeOriginalConnectionOnFailure) [0x00000] in <filename unknown>:0




--
View this message in context: http://mono.1490590.n4.nabble.com/Entity-Framework-new-issues-tp4658551p4658566.html
Sent from the Mono - Dev mailing list archive at Nabble.com.


More information about the Mono-devel-list mailing list