The exception is being generated by the code on line 59 of the S#arp Architecture file d:\Builds\SharpArch2\Solutions\SharpArch.NHibernate\NHibernateSession.cs. Here's the source for that file in GitHub
The app code that's apparently indirectly generating the exception is the following (in my app's Global.asax.cs file):
NHibernateSession.ConfigurationCache = new NHibernateConfigurationFileCache();
My app is using multiple databases and it's using a custom session storage class, but what's particularly 'strange' is that neither of those are new. The app is running fine on my local dev computer and in IIS on a dev server. The exception first occurred (immediately?) after deploying to the production server earlier today.
Does anyone have any ideas about how this can be resolved?
I just re-deployed the latest build to the production server and now I'm getting a different error:
"Could not find a getter for property 'BlahBlahBlahId' in class 'Apps.Domain.Something'"
Is there something that needs to be done to 'invalidate' any existing cached configurations when a new version of the app is deployed (if there are changes to the domain entity classes)?