#
MarcelloP
I'm trying to use Ayende's NHQA with Cuyahoga.Core.dll assembly and mapping files, but I get always this exception:
---------------------------
Error
---------------------------
NHibernate.MappingException: Cuyahoga.Core.Domain.ModuleType.hbm.xml(2,2): XML validation error: Could not find schema information for the element 'urn:nhibernate-mapping-2.0:hibernate-mapping'. ---> System.Xml.Schema.XmlSchemaException: Could not find schema information for the element 'urn:nhibernate-mapping-2.0:hibernate-mapping'.
--- End of inner exception stack trace ---
at NHibernate.Cfg.Configuration.LogAndThrow(MappingException me)
at NHibernate.Cfg.Configuration.ValidationHandler(Object o, ValidationEventArgs args)
at System.Xml.Schema.BaseValidator.SendValidationEvent(XmlSchemaException e, XmlSeverityType severity)
at System.Xml.Schema.BaseValidator.SendValidationEvent(String code, String msg, XmlSeverityType severity)
at System.Xml.Schema.XsdValidator.ProcessElement(Object particle)
at System.Xml.Schema.XsdValidator.ValidateElement()
at System.Xml.Schema.XsdValidator.Validate()
at System.Xml.XmlValidatingReaderImpl.ProcessCoreReaderEvent()
at System.Xml.XmlValidatingReaderImpl.Read()
at System.Xml.XmlValidatingReader.Read()
at System.Xml.XmlLoader.LoadNode(Boolean skipOverWhitespace)
at System.Xml.XmlLoader.LoadDocSequence(XmlDocument parentDoc)
at System.Xml.XmlLoader.Load(XmlDocument doc, XmlReader reader, Boolean preserveWhitespace)
at System.Xml.XmlDocument.Load(XmlReader reader)
at NHibernate.Cfg.Configuration.LoadMappingDocument(XmlTextReader hbmReader, String name)
at NHibernate.Cfg.Configuration.AddInputStream(Stream xmlInputStream, String name)
at NHibernate.Cfg.Configuration.AddResource(String path, Assembly assembly)
at NHibernate.Cfg.Configuration.AddResources(Assembly assembly, IList resources, Boolean skipOrdering)
at NHibernate.Cfg.Configuration.AddAssembly(Assembly assembly)
at Ayende.NHibernateQueryAnalyzer.ProjectLoader.RemoteProject.LoadAssemblies(IList assembliesToLoad)
at Ayende.NHibernateQueryAnalyzer.ProjectLoader.RemoteProject.BuildInternalProject(IList assemblies, IList mappings, IList configurations, IList basePaths)
at Ayende.NHibernateQueryAnalyzer.ProjectLoader.RemoteProject.BuildInternalProject(IList assemblies, IList mappings, IList configurations, IList basePaths)
at Ayende.NHibernateQueryAnalyzer.Core.Model.Project.BuildProject()
at Ayende.NHibernateQueryAnalyzer.UserInterface.Commands.BuildProjectCommand.Execute()
Does anyone can help me?
Thks
MarcelloP
UPD: ops, sorry, I find it myself, NHQA was expecting the 2.2 verion of the mappings!
---------------------------
Error
---------------------------
NHibernate.MappingException: Cuyahoga.Core.Domain.ModuleType.hbm.xml(2,2): XML validation error: Could not find schema information for the element 'urn:nhibernate-mapping-2.0:hibernate-mapping'. ---> System.Xml.Schema.XmlSchemaException: Could not find schema information for the element 'urn:nhibernate-mapping-2.0:hibernate-mapping'.
--- End of inner exception stack trace ---
at NHibernate.Cfg.Configuration.LogAndThrow(MappingException me)
at NHibernate.Cfg.Configuration.ValidationHandler(Object o, ValidationEventArgs args)
at System.Xml.Schema.BaseValidator.SendValidationEvent(XmlSchemaException e, XmlSeverityType severity)
at System.Xml.Schema.BaseValidator.SendValidationEvent(String code, String msg, XmlSeverityType severity)
at System.Xml.Schema.XsdValidator.ProcessElement(Object particle)
at System.Xml.Schema.XsdValidator.ValidateElement()
at System.Xml.Schema.XsdValidator.Validate()
at System.Xml.XmlValidatingReaderImpl.ProcessCoreReaderEvent()
at System.Xml.XmlValidatingReaderImpl.Read()
at System.Xml.XmlValidatingReader.Read()
at System.Xml.XmlLoader.LoadNode(Boolean skipOverWhitespace)
at System.Xml.XmlLoader.LoadDocSequence(XmlDocument parentDoc)
at System.Xml.XmlLoader.Load(XmlDocument doc, XmlReader reader, Boolean preserveWhitespace)
at System.Xml.XmlDocument.Load(XmlReader reader)
at NHibernate.Cfg.Configuration.LoadMappingDocument(XmlTextReader hbmReader, String name)
at NHibernate.Cfg.Configuration.AddInputStream(Stream xmlInputStream, String name)
at NHibernate.Cfg.Configuration.AddResource(String path, Assembly assembly)
at NHibernate.Cfg.Configuration.AddResources(Assembly assembly, IList resources, Boolean skipOrdering)
at NHibernate.Cfg.Configuration.AddAssembly(Assembly assembly)
at Ayende.NHibernateQueryAnalyzer.ProjectLoader.RemoteProject.LoadAssemblies(IList assembliesToLoad)
at Ayende.NHibernateQueryAnalyzer.ProjectLoader.RemoteProject.BuildInternalProject(IList assemblies, IList mappings, IList configurations, IList basePaths)
at Ayende.NHibernateQueryAnalyzer.ProjectLoader.RemoteProject.BuildInternalProject(IList assemblies, IList mappings, IList configurations, IList basePaths)
at Ayende.NHibernateQueryAnalyzer.Core.Model.Project.BuildProject()
at Ayende.NHibernateQueryAnalyzer.UserInterface.Commands.BuildProjectCommand.Execute()
Does anyone can help me?
Thks
MarcelloP
UPD: ops, sorry, I find it myself, NHQA was expecting the 2.2 verion of the mappings!