That is NO bug!
Lords who don't like you will not let you in their castle!!
Check your "Relation" rating with the owner of the castle.
If this solved the confusion pls delete the thread or type SOLVED in the title so Taleworlds won't waste time,
thank you