Jeff-Lewis / codesmith

Automatically exported from code.google.com/p/codesmith
0 stars 0 forks source link

Configuration Problem #73

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. i am folllowing the video for the nhibernate example and all seems to go
very well until i i get

Stack Trace: 

[NullReferenceException: Object reference not set to an instance of an
object.] 
NHibernate.Cfg.Environment.LoadGlobalPropertiesFromAppConfig() +259 
NHibernate.Cfg.Environment..cctor() +172 

[TypeInitializationException: The type initializer for
'NHibernate.Cfg.Environment' threw an exception.] 
NHibernate.Cfg.Environment.get_Properties() +0 
NHibernate.Cfg.Configuration.Reset() +327 
NHibernate.Cfg.Configuration..ctor(SettingsFactory settingsFactory) +52 
NHibernate.Cfg.Configuration..ctor() +22 
PSAML.Core.Domain.NHibernateSessionManager.InitSessionFactory() in
E:\PibasDotNet\Projects\SAML\PSAML.Core\Domain\NHibernateSessionManager.cs:51 
PSAML.Core.Domain.NHibernateSessionManager..ctor() in
E:\PibasDotNet\Projects\SAML\PSAML.Core\Domain\NHibernateSessionManager.cs:35 
PSAML.Core.Domain.Nested..cctor() in
E:\PibasDotNet\Projects\SAML\PSAML.Core\Domain\NHibernateSessionManager.cs:44 

[TypeInitializationException: The type initializer for 'Nested' threw an
exception.] 
PSAML.Core.Domain.NHibernateSessionManager.get_NHibSessionMngr() in
E:\PibasDotNet\Projects\SAML\PSAML.Core\Domain\NHibernateSessionManager.cs:26 
PSAML.Core.Domain.NHibernateSessionModule.CloseAndCommitTransaction(Object
sender, EventArgs e) in
E:\PibasDotNet\Projects\SAML\PSAML.Core\Domain\NHibernateSessionModule.cs:40 
System.Web.SyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Exec
ute()
 +68 
System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean&
completedSynchronously) +75 

2. Web.Config look like this.
    <hibernate-configuration xmlns="urn:nhibernate-configuration-2.2">
      <session-factory>
        <property name="dialect">NHibernate.Dialect.Oracle9Dialect</property>
        <property
name="connection.provider">NHibernate.Connection.DriverConnectionProvider</prope
rty>
        <property
name="connection.driver_class">NHibernate.Driver.OracleClientDriver</property>
        <property
name="connection.connection_string">Password=i1jtMC9meoyH0dyRH0fVb;User
ID=AML;Data Source=Afsar;Persist Security Info=True</property>
        <property name="connection.isolation">ReadCommitted</property>
        <property name="show_sql">true</property>
        <!-- HBM Mapping Files -->
        <mapping assembly="PSAML.Core"/>
      </session-factory>
    </hibernate-configuration>

3. I am working on session Handling.

What is the expected output? What do you see instead?
Web Page for Adding the Customer Table entry.

What version of the product are you using?
2.2

Please provide any additional information below.

Original issue reported on code.google.com by afsar....@gmail.com on 9 Mar 2009 at 5:10

GoogleCodeExporter commented 9 years ago

Original comment by paul.wel...@gmail.com on 9 Mar 2009 at 2:28