A foreign business trust doing business in the state may not maintain any action, suit, or proceeding in the state until it has registered in the state, and has paid to the state all fees and penalties for the years or parts thereof, during which it did business in the state without having registered.
SDCL 47-14B-12