Well, that's quicker. Thanks.
There are also some settlements in Leo's Alternative Patch submod that can't be upgraded either, due to how the game is carefully coded (for instance, many Haradrim settlements can't be upgraded, and of course neither can custom settlements). Don't worry about that if it can't be upgraded; focus on other castles.