Hi,
I am facing one problem when using NHibernate classes. Can anybody please solved than one?
Problem:
In NHibernateSessionManager class, there is Instance property which get the instance of NHibernateSessionManager class by using one of the Nested class declated in NHibernateSessionManager. Now problem is that when time comes to load that Nested class it throws an Exception Type Initializer Exception.... Now why this?
I tried from side, If you know there is one static constructor, when I removed it from there it works fine. But I can not understand how and why this is happeining?
If anybody can have solution please let me know.
Thanks Manesh
|