These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 
Author Message
 Post subject: NHibernate 1.0.3 asp.net(1.1)
PostPosted: Mon Jan 29, 2007 1:26 am 
Newbie

Joined: Thu Jan 25, 2007 4:08 am
Posts: 5
Exception

Could not find schema information for the element 'urn:nhibernate-mapping-2.0:hibernate-mapping'. An error occurred at , (2, 2).
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'. An error occurred at , (2, 2).

Source Error:


Line 45: {
Line 46: Configuration config=new Configuration();
Line 47: config.AddAssembly("NHTrial");
Line 48: }
Line 49:


Source File: c:\inetpub\wwwroot\trialhibernate\login.aspx.cs Line: 47

Stack Trace:


[XmlSchemaException: Could not find schema information for the element 'urn:nhibernate-mapping-2.0:hibernate-mapping'. An error occurred at , (2, 2).]

[MappingException: NHTrial.JLogin.hbm.xml(2,2): XML validation error: Could not find schema information for the element 'urn:nhibernate-mapping-2.0:hibernate-mapping'. An error occurred at , (2, 2).]
NHibernate.Cfg.Configuration.LogAndThrow(MappingException me) in c:\net\nhibernate\nhibernate\src\NHibernate\Cfg\Configuration.cs:246
NHibernate.Cfg.Configuration.ValidationHandler(Object o, ValidationEventArgs args) in c:\net\nhibernate\nhibernate\src\NHibernate\Cfg\Configuration.cs:1631
System.Xml.Schema.ValidationEventHandler.Invoke(Object sender, ValidationEventArgs e) +0
System.Xml.Schema.Validator.SendValidationEvent(XmlSchemaException e, XmlSeverityType severity)
System.Xml.Schema.Validator.SendValidationEvent(String code, String msg, XmlSeverityType severity)
System.Xml.Schema.Validator.ProcessElement()
System.Xml.Schema.Validator.Validate()
System.Xml.Schema.Validator.Validate(ValidationType valType)
System.Xml.XmlValidatingReader.ReadWithCollectTextToken()
System.Xml.XmlValidatingReader.Read()
System.Xml.XmlLoader.LoadCurrentNode() +157
System.Xml.XmlLoader.LoadDocSequence(XmlDocument parentDoc) +49
System.Xml.XmlLoader.Load(XmlDocument doc, XmlReader reader, Boolean preserveWhitespace) +102
System.Xml.XmlDocument.Load(XmlReader reader) +72
NHibernate.Cfg.Configuration.LoadMappingDocument(XmlTextReader hbmReader, String name) in c:\net\nhibernate\nhibernate\src\NHibernate\Cfg\Configuration.cs:1587
NHibernate.Cfg.Configuration.AddXmlReader(XmlTextReader hbmReader, String name) in c:\net\nhibernate\nhibernate\src\NHibernate\Cfg\Configuration.cs:1617
NHibernate.Cfg.Configuration.AddInputStream(Stream xmlInputStream, String name) in c:\net\nhibernate\nhibernate\src\NHibernate\Cfg\Configuration.cs:479
NHibernate.Cfg.Configuration.AddResource(String path, Assembly assembly) in c:\net\nhibernate\nhibernate\src\NHibernate\Cfg\Configuration.cs:516
NHibernate.Cfg.Configuration.AddAssembly(Assembly assembly, Boolean skipOrdering) in c:\net\nhibernate\nhibernate\src\NHibernate\Cfg\Configuration.cs:633
NHibernate.Cfg.Configuration.AddAssembly(Assembly assembly) in c:\net\nhibernate\nhibernate\src\NHibernate\Cfg\Configuration.cs:595
NHibernate.Cfg.Configuration.AddAssembly(String assemblyName) in c:\net\nhibernate\nhibernate\src\NHibernate\Cfg\Configuration.cs:576
JOBS.WebForm1.Page_Load(Object sender, EventArgs e) in c:\inetpub\wwwroot\trialhibernate\login.aspx.cs:47
System.Web.UI.Control.OnLoad(EventArgs e)
System.Web.UI.Control.LoadRecursive()
System.Web.UI.Page.ProcessRequestMain()


Mapping file
<?xml version="1.0" encoding="utf-8" ?>
<hibernate-mapping xmlns="urn:nhibernate-mapping-2.0">
<class name="NHTrial.JLogin, NHTrial" table="jlogin">
<id name="empid" column="empid" type="String(50)">
<generator class="assigned" />
</id>
<property name="username" column="username" type="String(50)"/>
<property name="password" column="password" type="String(50)"/>
</class>
</hibernate-mapping>

--------------------------------------------------------------------------------
Version Information: Microsoft .NET Framework Version


Top
 Profile  
 
 Post subject:
PostPosted: Mon Jan 29, 2007 3:19 am 
Contributor
Contributor

Joined: Wed May 11, 2005 4:59 pm
Posts: 1766
Location: Prague, Czech Republic
Are you really running 1.0.3? If this were NHibernate 1.2, I would advise you to change the xmlns to nhibernate-mapping-2.2, but if this is 1.0.3 then I have no idea why it would not work.


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.