Replies: 1 comment
-
Well, the system still needs to look for appsettings even if there are none to be found. But longer term, I guess this boils down to NHibernate still depending on System.Configuration.ConfigurationManager, even on net6+, and probably needs to be addressed there. nhibernate/nhibernate-core#1402 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Use
PublishSingleFile
(docs) and run the published app I get this exception:After looking around the methods in the stack trace, I found a solution:
Set
ConfigurationProvider.Current = null
before youBuildSessionFactory
, this will prevent NHibernate from trying to load appsettings. Somewhat confusing because you usually don't use appsettings with Fluent NHibernate.Beta Was this translation helpful? Give feedback.
All reactions