Solved

NHibernate schema validation error in VS2005

Posted on 2007-04-06
1
987 Views
Last Modified: 2013-11-26
NHibernate Error within Visual Studio 2005

Message 1 Could not find schema information for the element 'urn:nhibernate-configuration-2.2:hibernate-configuration'.

How can I resolve this, it seems that Visual Studio 2005 does see the correct xsd file or it doesn't not of it at all.

I have added the following references
NHibernate.dll
log4j.net.dll
Nullables.dll

Here is the my Config.xml file


<?xml version="1.0" encoding="utf-8" ?>
<configuration>
 
    <!-- Add this element -->
    <configSections>
      <section
          name="hibernate-configuration"
          type="NHibernate.Cfg.ConfigurationSectionHandler, NHibernate"
        />
    </configSections>



  <hibernate-configuration xmlns='urn:nhibernate-configuration-2.2'      xmlns:xs='http://www.w3.org/2001/XMLSchema'>
    <session-factory>
      <property name="connection.provider">NHibernate.Connection.DriverConnectionProvider</property>
      <property name="connection.driver_class">NHibernate.Driver.SqlClientDriver</property>
      <property name="connection.connection_string">removed</property>
      <property name="show_sql">true</property>
      <property name="dialect">NHibernate.Dialect.MsSql2000Dialect</property>
      <property name="use_outer_join">true</property>
      <mapping assembly="testassembly" />
    </session-factory>
  </hibernate-configuration>
</configuration>
0
Comment
Question by:jeffmc033
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 
LVL 14

Accepted Solution

by:
existenz2 earned 500 total points
ID: 18867704
Have a look at: http://forum.hibernate.org/viewtopic.php?t=970568&view=previous&sid=97bbb70f119269c4332ec9272b812e54

You need to change:
<hibernate-configuration xmlns='urn:nhibernate-configuration-2.2'      xmlns:xs='http://www.w3.org/2001/XMLSchema'>

to

<hibernate-configuration xmlns='urn:nhibernate-configuration-2.0'      xmlns:xs='http://www.w3.org/2001/XMLSchema'>

when you are using NHibernate 1.0.X, 2.2 is for 1.2
0

Featured Post

Online Training Solution

Drastically shorten your training time with WalkMe's advanced online training solution that Guides your trainees to action. Forget about retraining and skyrocket knowledge retention rates.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Today I had a very interesting conundrum that had to get solved quickly. Needless to say, it wasn't resolved quickly because when we needed it we were very rushed, but as soon as the conference call was over and I took a step back I saw the correct …
International Data Corporation (IDC) prognosticates that before the current the year gets over disbursing on IT framework products to be sent in cloud environs will be $37.1B.
Monitoring a network: why having a policy is the best policy? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the enormous benefits of having a policy-based approach when monitoring medium and large networks. Software utilized in this v…
In this brief tutorial Pawel from AdRem Software explains how you can quickly find out which services are running on your network, or what are the IP addresses of servers responsible for each service. Software used is freeware NetCrunch Tools (https…

631 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question