Jeff-Lewis / codesmith

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

Configuration Problem #71

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
Issue 72 has been merged into this issue.

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

GoogleCodeExporter commented 9 years ago
Issue 73 has been merged into this issue.

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

GoogleCodeExporter commented 9 years ago

Original comment by shannon....@gmail.com on 12 Mar 2009 at 4:25

GoogleCodeExporter commented 9 years ago

Original comment by tdupont...@gmail.com on 12 Mar 2009 at 4:26

GoogleCodeExporter commented 9 years ago

Original comment by shannon....@gmail.com on 21 Apr 2009 at 3:58

GoogleCodeExporter commented 9 years ago

Original comment by shannon....@gmail.com on 21 Apr 2009 at 4:11

GoogleCodeExporter commented 9 years ago
Hello,

This is the same issue as #45. Please check that issue for more information.

Thanks
-Blake Niemyjski

Original comment by bniemyjski on 2 Jul 2009 at 11:31