Login

Username

Password





Register   Reset password

This is a read-only archive of the forum.

# 4uiwork 2/2/2010 11:26 PM
Hello, I have a website built on the Cuyahoga framework. Everything is working perfectly with the exception of a single variable bug. It seems to only occur when the system times out or lags...

The error output is listed below, any help at all would be great appreciated!



Could not find schema information for the element 'urn:nhibernate-mapping-2.0:hibernate-mapping'.

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.Xml.Schema.XmlSchemaException: Could not find schema information for the element 'urn:nhibernate-mapping-2.0:hibernate-mapping'.

Source Error:

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

Stack Trace:



[XmlSchemaException: Could not find schema information for the element 'urn:nhibernate-mapping-2.0:hibernate-mapping'.]
NHibernate.Cfg.Configuration.ValidationHandler(Object o, ValidationEventArgs args) +15
System.Xml.Schema.BaseValidator.SendValidationEvent(XmlSchemaException e, XmlSeverityType severity) +60
System.Xml.Schema.BaseValidator.SendValidationEvent(String code, String msg, XmlSeverityType severity) +183
System.Xml.Schema.XsdValidator.ProcessElement(Object particle) +211
System.Xml.Schema.XsdValidator.ValidateElement() +175
System.Xml.Schema.XsdValidator.Validate() +69
System.Xml.XmlValidatingReaderImpl.ProcessCoreReaderEvent() +125
System.Xml.XmlValidatingReaderImpl.Read() +46
System.Xml.XmlValidatingReader.Read() +15
System.Xml.XmlLoader.LoadNode(Boolean skipOverWhitespace) +58
System.Xml.XmlLoader.LoadDocSequence(XmlDocument parentDoc) +20
System.Xml.XmlLoader.Load(XmlDocument doc, XmlReader reader, Boolean preserveWhitespace) +129
System.Xml.XmlDocument.Load(XmlReader reader) +108
NHibernate.Cfg.Configuration.LoadMappingDocument(XmlTextReader hbmReader) +174
NHibernate.Cfg.Configuration.AddXmlReader(XmlTextReader hbmReader) +13
NHibernate.Cfg.Configuration.AddInputStream(Stream xmlInputStream) +72

[MappingException: Could not find schema information for the element 'urn:nhibernate-mapping-2.0:hibernate-mapping'.]
NHibernate.Cfg.Configuration.AddInputStream(Stream xmlInputStream) +164
NHibernate.Cfg.Configuration.AddClass(Type persistentClass) +125

[MappingException: Error reading resource: RRWS.Modules.Navigation.Core.Domain.NavigationLink.hbm.xml]
NHibernate.Cfg.Configuration.AddClass(Type persistentClass) +206
Cuyahoga.Core.Service.SessionFactory.RegisterPersistentClass(Type type) +46
RRWS.Modules.Navigation.Web.NavigationMenuModule..ctor(Section section) +42

[TargetInvocationException: Exception has been thrown by the target of an invocation.]
System.RuntimeMethodHandle._InvokeConstructor(Object[] args, SignatureStruct& signature, IntPtr declaringType) +0
System.RuntimeMethodHandle.InvokeConstructor(Object[] args, SignatureStruct signature, RuntimeTypeHandle declaringType) +15
System.Reflection.RuntimeConstructorInfo.Invoke(BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture) +249
System.RuntimeType.CreateInstanceImpl(BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture, Object[] activationAttributes) +1051
System.Activator.CreateInstance(Type type, BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture, Object[] activationAttributes) +111
Cuyahoga.Core.Domain.Section.CreateModule(String sectionUrl) +127

[TargetInvocationException: Exception has been thrown by the target of an invocation.]
System.RuntimeMethodHandle._InvokeMethodFast(Object target, Object[] arguments, SignatureStruct& sig, MethodAttributes methodAttributes, RuntimeTypeHandle typeOwner) +0
System.RuntimeMethodHandle.InvokeMethodFast(Object target, Object[] arguments, Signature sig, MethodAttributes methodAttributes, RuntimeTypeHandle typeOwner) +71
System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture, Boolean skipVisibilityChecks) +261
System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture) +29
System.Reflection.MethodBase.Invoke(Object obj, Object[] parameters) +19
Castle.DynamicProxy.Invocation.AbstractInvocation.Proceed(Object[] args) +125
NHibernate.Proxy.CastleLazyInitializer.Intercept(IInvocation invocation, Object[] args) +84
CProxyTypeCuyahoga_Core_DomainSectionDomain_NHibernate_ProxyINHibernateProxy1.CreateModule(String sectionUrl) +115
Cuyahoga.Web.UI.PageEngine.CreateModuleControlForSection(Section section) +112
Cuyahoga.Web.UI.PageEngine.LoadContent() +761
Cuyahoga.Web.UI.PageEngine.OnInit(EventArgs e) +1387
System.Web.UI.Control.InitRecursive(Control namingContainer) +333
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +378

Version Information: Microsoft .NET Framework Version:2.0.50727.3603; ASP.NET Version:2.0.50727.3082
# martijnb 2/3/2010 10:12 AM
If you're using Cuyahoga 1.6: it uses NHibernate 1.2 which requires the follwing namespace in the mapping files.
< hibernate-mapping xmlns="urn:nhibernate-mapping-2.2" >
# 4uiwork 2/4/2010 7:37 AM
Hi, it has been determined that the bug occurs (system crashes) when two people simultaneously access the website. Even if I have two different browsers open and attempt to access the website the crash happens. Do you have any idea what may be causing this. I fear the nhibernate error is not the actual cause of the crash.. any help at all would be greatly appreciated.