Quantcast
Channel: MySQL Forums - Connector/NET and C#, Mono, .Net
Viewing all articles
Browse latest Browse all 1447

Connector 6.9 + EF6 + Mono + Linux crash on startup (no replies)

$
0
0
Hi.

I'm trying to use the mysql connector with mono under linux but I can't get it to work, always get this exception:

minLength is greater than maxLength. Related schema item SourceUri: , Line 363, Position 14. - at System.Xml.Schema.ValidationHandler.RaiseValidationEvent (System.Xml.Schema.ValidationEventHandler,System.Exception,string,System.Xml.Schema.XmlSchemaObject,object,string,System.Xml.Schema.XmlSeverityType) <0x000ec>
at System.Xml.Schema.XmlSchemaObject.error (System.Xml.Schema.ValidationEventHandler,string,System.Exception,System.Xml.Schema.XmlSchemaObject,object) <0x0004f>
at System.Xml.Schema.XmlSchemaObject.error (System.Xml.Schema.ValidationEventHandler,string) <0x0003f>
at System.Xml.Schema.XmlSchemaSimpleTypeRestriction.checkMaxLengthFacet (System.Xml.Schema.XmlSchemaMaxLengthFacet,System.Xml.Schema.XmlSchemaFacet/Facet,System.Xml.Schema.ValidationEventHandler) <0x007df>
at System.Xml.Schema.XmlSchemaSimpleTypeRestriction.Validate (System.Xml.Schema.ValidationEventHandler,System.Xml.Schema.XmlSchema) <0x00aef>
at System.Xml.Schema.XmlSchemaSimpleType.Validate (System.Xml.Schema.ValidationEventHandler,System.Xml.Schema.XmlSchema) <0x000df>
at System.Xml.Schema.XmlSchemaAttribute.Validate (System.Xml.Schema.ValidationEventHandler,System.Xml.Schema.XmlSchema) <0x001d7>
at System.Xml.Schema.XmlSchemaUtil.ValidateAttributesResolved (System.Xml.Schema.XmlSchemaObjectTable,System.Xml.Schema.ValidationEventHandler,System.Xml.Schema.XmlSchema,System.Xml.Schema.XmlSchemaObjectCollection,System.Xml.Schema.XmlSchemaAnyAttribute,System.Xml.Schema.XmlSchemaAnyAttribute&,System.Xml.Schema.XmlSchemaAttributeGroup,bool) <0x0076b>
at System.Xml.Schema.XmlSchemaAttributeGroup.Validate (System.Xml.Schema.ValidationEventHandler,System.Xml.Schema.XmlSchema) <0x001fb>
at System.Xml.Schema.XmlSchema.Validate (System.Xml.Schema.ValidationEventHandler) <0x00357>
at System.Xml.Schema.XmlSchemaSet.Compile () <0x0070f>
at System.Data.Entity.Core.SchemaObjectModel.Schema/SomSchemaSetHelper.ComputeSchemaSet (System.Data.Entity.Core.SchemaObjectModel.SchemaDataModelOption) <0x00187>
at System.Data.Entity.Core.Common.Utils.Memoizer`2/<>c__DisplayClass2<System.Data.Entity.Core.SchemaObjectModel.SchemaDataModelOption, System.Xml.Schema.XmlSchemaSet>.<Evaluate>b__0 () <0x0002b>
at System.Data.Entity.Core.Common.Utils.Memoizer`2/Result<System.Data.Entity.Core.SchemaObjectModel.SchemaDataModelOption, System.Xml.Schema.XmlSchemaSet>.GetValue () <0x00077>
at System.Data.Entity.Core.Common.Utils.Memoizer`2<System.Data.Entity.Core.SchemaObjectModel.SchemaDataModelOption, System.Xml.Schema.XmlSchemaSet>.Evaluate (System.Data.Entity.Core.SchemaObjectModel.SchemaDataModelOption) <0x001df>
at System.Data.Entity.Core.SchemaObjectModel.Schema/SomSchemaSetHelper.GetSchemaSet (System.Data.Entity.Core.SchemaObjectModel.SchemaDataModelOption) <0x0002f>
at System.Data.Entity.Core.SchemaObjectModel.Schema.CreateXmlReaderSettings () <0x000f3>
at System.Data.Entity.Core.SchemaObjectModel.Schema.Parse (System.Xml.XmlReader,string) <0x00027>
at System.Data.Entity.Core.SchemaObjectModel.SchemaManager.ParseAndValidate (System.Collections.Generic.IEnumerable`1<System.Xml.XmlReader>,System.Collections.Generic.IEnumerable`1<string>,System.Data.Entity.Core.SchemaObjectModel.SchemaDataModelOption,System.Data.Entity.Core.SchemaObjectModel.AttributeValueNotification,System.Data.Entity.Core.SchemaObjectModel.AttributeValueNotification,System.Data.Entity.Core.SchemaObjectModel.ProviderManifestNeeded,System.Collections.Generic.IList`1<System.Data.Entity.Core.SchemaObjectModel.Schema>&) <0x0025f>
at System.Data.Entity.Core.SchemaObjectModel.SchemaManager.ParseAndValidate (System.Collections.Generic.IEnumerable`1<System.Xml.XmlReader>,System.Collections.Generic.IEnumerable`1<string>,System.Data.Entity.Core.SchemaObjectModel.SchemaDataModelOption,System.Data.Entity.Core.Common.DbProviderManifest,System.Collections.Generic.IList`1<System.Data.Entity.Core.SchemaObjectModel.Schema>&) <0x001ff>
at System.Data.Entity.Core.Metadata.Edm.EdmItemCollection.LoadItems (System.Collections.Generic.IEnumerable`1<System.Xml.XmlReader>,System.Collections.Generic.IEnumerable`1<string>,System.Data.Entity.Core.SchemaObjectModel.SchemaDataModelOption,System.Data.Entity.Core.Common.DbProviderManifest,System.Data.Entity.Core.Metadata.Edm.ItemCollection,bool) <0x00077>
at System.Data.Entity.Core.Metadata.Edm.EdmItemCollection.Init (System.Collections.Generic.IEnumerable`1<System.Xml.XmlReader>,System.Collections.Generic.IEnumerable`1<string>,bool) <0x00057>
at System.Data.Entity.Core.Metadata.Edm.EdmItemCollection..ctor (System.Collections.Generic.IEnumerable`1<System.Xml.XmlReader>,System.Collections.Generic.IEnumerable`1<string>,bool) <0x000cb>
at System.Data.Entity.Core.Metadata.Edm.MetadataCache.LoadEdmItemCollection (System.Data.Entity.Core.Metadata.Edm.MetadataArtifactLoader) <0x0007b>
at System.Data.Entity.Core.Metadata.Edm.MetadataCache/<>c__DisplayClass5.<GetMetadataWorkspace>b__0 (string) <0x0005f>
at System.Collections.Concurrent.ConcurrentDictionary`2<string, System.Data.Entity.Core.Metadata.Edm.MetadataWorkspace>.GetOrAdd (string,System.Func`2<string, System.Data.Entity.Core.Metadata.Edm.MetadataWorkspace>) <0x00067>
at System.Data.Entity.Core.Metadata.Edm.MetadataCache.GetMetadataWorkspace (string,System.Data.Entity.Core.Metadata.Edm.MetadataArtifactLoader) <0x00107>
at System.Data.Entity.Core.Metadata.Edm.MetadataCache.GetMetadataWorkspace (System.Data.Entity.Core.EntityClient.Internal.DbConnectionOptions) <0x0006f>
at System.Data.Entity.Core.EntityClient.EntityConnection.GetMetadataWorkspace () <0x00043>
at System.Data.Entity.Core.Objects.ObjectContext.RetrieveMetadataWorkspaceFromConnection () <0x00033>
at System.Data.Entity.Core.Objects.ObjectContext..ctor (System.Data.Entity.Core.EntityClient.EntityConnection,bool,System.Data.Entity.Core.Objects.Internal.ObjectQueryExecutionPlanFactory,System.Data.Entity.Core.Common.Internal.Materialization.Translator,System.Data.Entity.Core.Query.InternalTrees.ColumnMapFactory) <0x004cf>
at System.Data.Entity.Core.Objects.ObjectContext..ctor (System.Data.Entity.Core.EntityClient.EntityConnection) <0x00037>
at System.Data.Entity.Internal.InternalConnection.CreateObjectContextFromConnectionModel () <0x000e7>
at System.Data.Entity.Internal.LazyInternalConnection.CreateObjectContextFromConnectionModel () <0x0001b>
at System.Data.Entity.Internal.LazyInternalContext.InitializeContext () <0x0016b>
at System.Data.Entity.Internal.InternalContext.Initialize () <0x0001b>
at System.Data.Entity.Internal.InternalContext.GetEntitySetAndBaseTypeForType (System.Type) <0x00017>
at System.Data.Entity.Internal.Linq.InternalSet`1<UcarusBackOffice.SesionCliente>.Initialize () <0x0004b>
at System.Data.Entity.Internal.Linq.InternalSet`1<UcarusBackOffice.SesionCliente>.Include (string) <0x00023>
at System.Data.Entity.Infrastructure.DbQuery`1<UcarusBackOffice.SesionCliente>.Include (string) <0x00073>
at UcarusClientApi.Classes.Utils.RecuperaSesion (UcarusBackOffice.Entities,SDRestFramework.RESTRequest) <0x00107>
at UcarusClientApi.Resources.DeviceManagement.DeviceAlertTransports (SDRestFramework.RESTRequest) <0x0007f>
at UcarusClientApi.Resources.DeviceManagement.GetProcessor (SDRestFramework.RESTRequest) <0x000ff>
at (wrapper dynamic-method) object. (object,object[]) <0x0006b>
at SDRestServer.SDRestServerCommon.ExecuteRequest (SDRestFramework.RESTRequest,SDRestFramework.RESTResourceInfo[],SDRestFramework.RESTRequestFilter[],SDRestFramework.RESTResourceFilter[],SDRestFramework.RESTResponseFilter[]) <0x0060b>


I have checked my ADO data model, used external metadata files and nothing has the maxlength or minlength in the line 363, and by the exception it seems it's something on the provider metadata definition.

My mono version is 4.0.0 and my project is compiled with framework V4.5.

Any ideas?

Viewing all articles
Browse latest Browse all 1447


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>