NHibernate + GoDaddy
By default NHibernate does not play nice with medium trust web host such as GoDaddy. In the case of NHibernate and GoDaddy you can get it up and running if you follow a few simple conventions listed below.
| 1. | Make sure all the properties and FIELDS of your entities are marked public. |
| 2. | Set lazy to false in all of your class mappings. <class name="User" table="User" lazy="false"> |
| 3. | Turn NHibernate optimizer off. <hibernate-configuration xmlns="urn:nhibernate-configuration-2.2"> <reflection-optimizer use="false" /> |




