Problem:
You have set up some mappings and you get the following Fluent NHibernate error - "The given key was not present in the dictionary."
Solution:
This error can be generated for multiple reasons. One of the reasons is that you forget to map an entity. Before you go any further, check that you have mapped EVERY entity and check that you have registered every entity if you are using something like StructureMap or any other IOC.
Smooches,
Kila
This blog is for all Microsoft & .net lovers who may find themselves in need of help or information once in a while. We all have questions and we all need to know more than we know right now. When I come across things that I think may be useful, I post it. When I have something to say that I think is important, which is everything, I post it. All of my C#, ASP.NET, VB, AJAX & programming friends around the world are welcome to the info in my blog - Ramblings Of A Crazy DotNet Woman!
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment