Web.config中的配置项:
<configSections>
 <section name="hibernate-configuration"
                 type="NHibernate.Cfg.ConfigurationSectionHandler, NHibernate" />
</configSections>
 <hibernate-configuration  xmlns="urn:nhibernate-configuration-2.2">
      <session-factory>
      <property name="hibernate.connection.provider">
        NHibernate.Connection.DriverConnectionProvider
      </property>
          <property name="connection.driver_class">NHibernate.Driver.SqlClientDriver</property>
          <property name="connection.connection_string">User id=sa;Password=sa;data source=localhost;persist security info=True;initial catalog=TAMS</property>
          <property name="adonet.batch_size">10</property>
          <property name="show_sql">true</property>
          <property name="dialect">NHibernate.Dialect.MsSql2005Dialect</property>
          <property name="use_outer_join">true</property>
          <property name="command_timeout">10</property>
        <mapping assembly="Leo.NhibernateSample.DAL" />        
    </session-factory>
  </hibernate-configuration>调试的时候出现错误,就是没发现错在哪里了,请高手指教!错误如下:Server Error in '/Sample/NhibernateSample' Application.
--------------------------------------------------------------------------------Configuration Error 
Description: An error occurred during the processing of a configuration file required to service this request. Please review the specific error details below and modify your configuration file appropriately. Parser Error Message: An error occurred creating the configuration section handler for hibernate-configuration: An exception occurred parsing configuration :The element 'hibernate-configuration' in namespace 'urn:nhibernate-configuration-2.2' cannot contain text. List of possible elements expected: 'bytecode-provider, reflection-optimizer, session-factory' in namespace 'urn:nhibernate-configuration-2.2'.Source Error: 
Line 29:   </configSections>
Line 30: 
Line 31:   <hibernate-configuration  xmlns="urn:nhibernate-configuration-2.2">
Line 32:       <session-factory>
Line 33:       <property name="hibernate.connection.provider">
 Source File: D:\Leo's Projects\DotNets\Sample\NhibernateSample\web.config    Line: 31