✅ Problems with NHibernate, FluentNHibernate, StructureMap
I have been trying to fix this bug in an older project (which needed to be updated to .net framework 4.6.1, because of some other newer libraries), but I just didn't really make any progress.
I will post some of the stack trace, but please let me know what else should I include (except whole project, lol), so it would be easier to help.
5 Replies
could be something in webconfig? or any other config?
the code which is executing is this:
check what
Unable to load one or more of the requested types. Retrieve the LoaderExceptions property for more information.is telling u.
Holy shit this was depressing...
Finally found it, it was problem with PostSharp reference. I am not entirely sure why do I need it separately, becuase my project doent use it, but looks like the FLuentNHIbernate was using it so my project needed reference to it as well. Actually, it already had it, but looks like it was broken or something, so when I readded it, it worked. 😄
Thanks for the advice, had to improve my exception handling to catch that loadedException 😄
glad that worked out ;p
so in future read the exception messages carefully if they dont explicitly tell the actual issue they usually mention how to get more details ;p
also if this is finished now please $close the thread 😉
Use the
/close
command to mark a forum thread as answered