Am trying to run my asp.ent web application and it shows the following error
"The requested page cannot be accessed because the related configuration data for the page is invalid."
and in Config Error it says " The configuration section 'hibernate-configuration' cannot be read because it is missing a section declaration"
in web.config file i have the following code
Please help me..Code:<configSections> <!-- For more information on Entity Framework configuration, visit http://go.microsoft.com/fwlink/?LinkID=237468 --> <section name="entityFramework" type="System.Data.Entity.Internal.ConfigFile.EntityFrameworkSection, EntityFramework, Version=5.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" requirePermission="false" /> </configSections> <!-- NHibernate Settings--> <hibernate-configuration xmlns="urn:nhibernate-configuration-2.2"> <session-factory> <property name="connection.provider">NHibernate.Connection.DriverConnectionProvider</property> <property name="dialect">NHibernate.Dialect.MsSql2005Dialect</property> <property name="connection.driver_class">NHibernate.Driver.SqlClientDriver</property> <property name="connection.connection_string">Server=localhost;initial catalog=UserMaintenance;Trusted_Connection=True</property> <property name="show_sql">false</property> <property name="proxyfactory.factory_class">NHibernate.ByteCode.Castle.ProxyFactoryFactory, NHibernate.ByteCode.Castle</property> <property name="current_session_context_class">managed_web</property> <property name="adonet.batch_size">20</property> <property name="cache.provider_class">NHibernate.Cache.HashtableCacheProvider</property> <property name="cache.use_query_cache">true</property> <property name="default_schema">UserMaintenance.dbo</property> <property name="connection.isolation">ReadCommitted</property> </session-factory> </hibernate-configuration>




Reply With Quote